Api Management - Minimum version set to newer than 2021-08-01 causes the function to throw an error. #24940
Labels
API Management
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Investigate 🔍
Service Attention
This issue is responsible by Azure service team.
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
The text was updated successfully, but these errors were encountered: