Open SebastianClaesson opened 5 months ago
Please investigate why the API version is not avail for this user.
Hey @dolauli, any update on this?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97.
Description
Running the command "Get-AzApiManagementApi" towards an API Management instance with the attribute "Minimum API Version" set to anything newer than 2021-08-01 causes the following error:
Get-AzApiManagementApi: Error Code: MissingOrIncorrectVersionParameter Error Message: API version query parameter is not specified or was specified incorrectly. Supported versions: 2022-08-01,2022-09-01-preview,2023-03-01-preview,2023-05-01-preview,2023-09-01-preview Example query param format: api-version=SupportedVersion
As the context does not allow the api-version being set and seems it defaults to the 2021-08-01 version. According to the documentation for the rest api it's required but it's unable to be set anywhere using the PowerShell module.
ref: https://learn.microsoft.com/en-us/rest/api/apimanagement/apis/get?view=rest-apimanagement-2022-08-01&tabs=HTTP
Issue script & Debug output
Environment data
Module versions
Error output
No response