Support custom api-version
Read api version from configuration to allow use of different api versions.
This commit is contained in:
Родитель
927a0afdda
Коммит
3cd352963d
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче