Cannot set the Minimum API version for API Management instance

Wang, Zheng 35 Reputation points
2024-05-07T03:11:46.66+00:00

Hi,

I have received one email that "All API versions prior to 2021-08-01 will be retired starting 1 June 2024."

According to the instructions, I need to navigate to your API Management instance.

  1. In the left menu, under Deployment + infrastructure, select Management API.
  2. Select the Management API settings tab.
  3. Under Enforce minimum API version, select Yes. The Minimum API version appears.
  4. Select Save.

But it is greyed out, and I cannot change or save it.

My APIM pricing tier is Basic and following good practices.User's image

User's image

May I know do I still need to setup it and how to setup it? Thanks.

Best Regards.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,792 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 18,951 Reputation points Microsoft Employee
    2024-05-07T06:19:51.01+00:00

    @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"
        }
      }
    }
    
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful