Skip to content

API Management API versions prior to 2021-08-01 will be retired#

Operational Excellence · API Management · 2022_12

API Management instances should limit control plane API calls to API Management with version '2021-08-01' or newer.

Description#

On 30 September 2023, all API versions prior to 2021-08-01 will be retired and API calls using those API versions will fail. This means you'll no longer be able to create or manage your API Management services using your existing templates, tools, scripts, and programs until they've been updated. Data operations (such as accessing the APIs or Products configured on Azure API Management) will be unaffected by this update, including after 30 September 2023.

From now through 30 September 2023, you can continue to use the templates, tools, and programs without impact. You can transition to API version 2021-08-01 or later at any point prior to 30 September 2023.

Recommendation#

Limit control plane API calls to API Management with version '2021-08-01' or newer.

Examples#

Configure with Azure template#

To deploy API Management instances that pass this rule:

  • Set the apiVersion property to '2021-08-01' or newer.
  • Set the properties.apiVersionConstraint.minApiVersion property to '2021-08-01' or newer.

For example:

Azure Template snippet
{
  "type": "Microsoft.ApiManagement/service",
  "apiVersion": "2021-12-01-preview",
  "name": "[parameters('apiManagementServiceName')]",
  "location": "[parameters('location')]",
  "sku": {
    "name": "[parameters('sku')]",
    "capacity": "[parameters('skuCount')]"
  },
  "properties": {
    "apiVersionConstraint": {
      "minApiVersion": "2021-08-01"
    }
  }
}

Configure with Bicep#

To deploy API Management instances that pass this rule:

  • Set the apiVersion property to '2021-08-01' or newer.
  • Set the properties.apiVersionConstraint.minApiVersion property to '2021-08-01' or newer.

For example:

Azure Bicep snippet
resource apiManagementService 'Microsoft.ApiManagement/service@2021-12-01-preview' = {
  name: apiManagementServiceName
  location: location
  sku: {
    name: sku
    capacity: skuCount
  }
  properties: {
    apiVersionConstraint: {
      minApiVersion: '2021-08-01'
    }
  }
}

Notes#

This rule fails:

  • When the properties.apiVersionConstraint.minApiVersion property is not configured.
  • When the properties.apiVersionConstraint.minApiVersion property value is less than the default value 2021-08-01 and no configuration option property value is set to overwrite the default value.
  • When the properties.apiVersionConstraint.minApiVersion property value is less than the configuration option property value specified.

Important Currently, depending on how you delete an API Management instance, the instance is either soft-deleted and recoverable during a retention period, or it's permanently deleted:

  • When you use the Azure portal or REST API version 2020-06-01-preview or later to delete an API Management instance, it's soft-deleted.
  • An API Management instance deleted using a REST API version before 2020-06-01-preview is permanently deleted.

Configure AZURE_APIM_MIN_API_VERSION to set the minimum API version used for control plane API calls to the API Management instance.

# YAML: The default AZURE_APIM_MIN_API_VERSION configuration option
configuration:
  AZURE_APIM_MIN_API_VERSION: '2021-08-01'

Last update: 2022-12-03

Comments