From 3cd352963d70b653001d212c03b2ccc1363b5eb5 Mon Sep 17 00:00:00 2001 From: JDinisHiscox <128595815+JDinisHiscox@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:26:16 +0100 Subject: [PATCH] Support custom api-version Read api version from configuration to allow use of different api versions. --- tools/code/publisher/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/code/publisher/Program.cs b/tools/code/publisher/Program.cs index b15f0d1..0a79555 100644 --- a/tools/code/publisher/Program.cs +++ b/tools/code/publisher/Program.cs @@ -285,7 +285,7 @@ public static class Program .AppendPathSegment(configuration.GetValue("AZURE_RESOURCE_GROUP_NAME")) .AppendPathSegment("providers/Microsoft.ApiManagement/service") .AppendPathSegment(serviceName) - .SetQueryParam("api-version", "2022-04-01-preview") + .SetQueryParam("api-version", configuration.GetValue("ARM-API-VERSION", "2022-04-01-preview")) .ToUri(); return new ServiceUri(uri);