API version retirements (June 2024)
APPLIES TO: Consumption | Developer | Basic | Standard | Premium
Azure API Management uses Azure Resource Manager (ARM) to configure your API Management instances. The API version is embedded in your use of templates that describe your infrastructure, tools that are used to configure the service, and programs that you write to manage your Azure API Management services.
Starting June 1, 2024, all API versions for the Azure API Management service prior to 2021-08-01 are being retired (disabled). The previously communicated retirement date was September 30, 2023. At any time after June 1, 2024, API calls using an API version prior to 2021-08-01 may fail without further notice. You'll no longer be able to create or manage your API Management services with existing templates, tools, scripts, and programs using a retired API version until they've been updated to use API version 2021-08-01 or later. Data plane operations (such as mediating API requests in the gateway) will be unaffected by this update, including after June 1, 2024.
Is my service affected by this?
While your service isn't affected by this change, any tool, script, or program that uses the Azure Resource Manager (such as the Azure CLI, Azure PowerShell, Azure API Management DevOps Resource Kit, or Terraform) to interact with the API Management service and calls an API Management API version prior to 2021-08-01 is affected by this change. After an API version is retired, you'll be unable to run any affected tools successfully unless you update the tools.
What is the deadline for the change?
The affected API versions will be retired gradually starting June 1, 2024.
After an API version is retired, if you prefer not to update your affected tools, scripts, and programs, your services will continue to run. However, you won't be able to add or remove APIs, change API policy, or otherwise configure your API Management service with affected tools.
Required action
Update your tools, scripts, and programs using the details in the following section.
We also recommend setting the Minimum API version in your API Management instance.
Update your tools, scripts, and programs
ARM, Bicep, or Terraform templates - Update the template to use API version 2021-08-01 or later.
Azure CLI - Run
az version
to check your version. If you're running version 2.42.0 or later, no action is required. Use theaz upgrade
command to upgrade the Azure CLI if necessary. For more information, see How to update the Azure CLI.Azure PowerShell - Run
Get-Module -ListAvailable -Name Az
to check your version. If you're running version 8.1.0 or later, no action is required. UseUpdate-Module -Name Az -Repository PSGallery
to update the module if necessary. For more information, see Install the Azure Az PowerShell module.Other tools - Use the following versions (or later):
- API Management DevOps Resource Kit: 1.0.0
- Terraform azurerm provider: 3.0.0
Azure SDKs - Update the Azure API Management SDKs to the latest versions or at least the following versions:
- .NET: v1.1.0
- Go: 1.0.0
- Python: 3.0.0
- JavaScript: 8.0.1
- Java: 1.0.0-beta3
Update Minimum API version setting on your API Management instance
We recommend setting the Minimum API version for your API Management instance using the Azure portal or using the REST API or other tools. This setting limits control plane API calls to your instance to an API version equal to or newer than this value. By setting this value to 2021-08-01, you can assess the impact of the API version retirements on your tooling.
To set the Minimum API version in the portal:
- In the Azure portal, navigate to your API Management instance.
- In the left menu, under Deployment + infrastructure, select Management API.
- Select the Management API settings tab.
- Under Enforce minimum API version, select Yes. The Minimum API version appears.
- Select Save.
Important
If the Minimum API version in the portal is grayed out, you can only update the setting programmatically, for example, using the REST API or the az apim update command in the Azure CLI.
More information
- Supported API Management API versions
- Azure CLI
- Azure PowerShell
- Azure Resource Manager
- Terraform on Azure
- Bicep
- Microsoft Q&A