Retired API version#
Operational Excellence · Container App · Rule · 2023_09 · Important
Migrate from retired API version to a supported version.
Description#
The API Azure Container Apps control plane API versions 2022-06-01-preview
and 2022-11-01-preview
are deprecated.
These API versions will be retired on the November 16, 2023.
This means you'll no longer be able to create or update your Azure Container Apps using your existing templates, tools, scripts and programs until they've been updated to a supported API version.
Recommendation#
Consider migrating from a retired API version to a newer supported version by updating your Infrastructure as Code.
Examples#
Configure with Azure template#
To deploy Container Apps that pass this rule:
- Set
apiVersion
to a newer supported version such as2024-03-01
.
For example:
{
"type": "Microsoft.App/containerApps",
"apiVersion": "2024-03-01",
"name": "[parameters('appName')]",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"environmentId": "[resourceId('Microsoft.App/managedEnvironments', parameters('envName'))]",
"template": {
"revisionSuffix": "[parameters('revision')]",
"containers": "[variables('containers')]",
"scale": {
"minReplicas": 2
}
},
"configuration": {
"ingress": {
"allowInsecure": false,
"external": false,
"ipSecurityRestrictions": "[variables('ipSecurityRestrictions')]",
"stickySessions": {
"affinity": "none"
}
}
}
},
"dependsOn": [
"[resourceId('Microsoft.App/managedEnvironments', parameters('envName'))]"
]
}
Configure with Bicep#
To deploy Container Apps that pass this rule:
- Set
apiVersion
to a newer supported version such as2024-03-01
.
For example:
resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
name: appName
location: location
identity: {
type: 'SystemAssigned'
}
properties: {
environmentId: containerEnv.id
template: {
revisionSuffix: revision
containers: containers
scale: {
minReplicas: 2
}
}
configuration: {
ingress: {
allowInsecure: false
external: false
ipSecurityRestrictions: ipSecurityRestrictions
stickySessions: {
affinity: 'none'
}
}
}
}
}
Configure with Azure Verified Modules
A pre-validated module supported by Microsoft is available from the Azure Bicep public registry. To reference the module, please use the following syntax:
For example:
To use the latest version:
Links#
- OE:04 Tools and processes
- Azure Container Apps API versions retirements
- Azure Container Apps latest API versions
- Azure Container Apps API change log
- Azure deployment reference