@Wang, Zheng Thank you for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
- Could you please check whether you have appropriate permissions (Like contributor) to update the Api Management service? Also, check whether the APIM Instance status is in Online or not?
If you have the appropriate permissions and your APIM instance is Online and if you are still not able to change the Management API settings through portal.
I would suggest you choose any of the below alternative methods to set the minimum api version of APIM instance.
Using Api Management Service - Update Rest API with the below request body.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}?api-version=2022-08-01
{
"properties": {
"apiVersionConstraint": {
"minApiVersion": "2021-08-01"
}
}
}
- Using az apim update cmdlet as shown below.
customPropertiesUpdated=$(az apim show -n <APIM NAME> -g <APIM RESOURCE GROUP> --query customProperties | jq '."minApiVersion" = "2021-08-01"')
az apim update -n <APIM NAME> -g <APIM RESOURCE GROUP> --set customProperties="$customPropertiesUpdated"
Hope this helps, let me know if you still have further questions on this.