Skip to content

Commit aad9c17

Browse files
authored
Use newer containerApp API version (#2114)
## Why make this change? To avoid the WorkloadProfilePropertyNotSupportedInApiVersion that can occur with containerApp API version 2022-10-01 when deploying with the bicep file. Error with the [az deployment group create command](https://github.com/Azure/data-api-builder/blob/31429e504132843914bf84409fbdd1cddf571751/samples/azure/azure-container-apps-deploy.sh#L107) in the azure-container-apps-deploy.sh file: > ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/xx-xx-xx-xx-xx/resourceGroups/Alpha_API_Tests_Auto_6/providers/Microsoft.Resources/deployments/dab-on-aca","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"WorkloadProfilePropertyNotSupportedInApiVersion","message":"WorkloadProfiles configuration is not supported in 2022-10-01 api version. Use 2022-11-01-preview or above."}]}} ## What is this change? Upgrade the containerApp API version in the bicep file to the last stable version. ## How was this tested? Manual testing ## Sample Request(s) azure-container-apps-deploy.sh
1 parent 6a75c76 commit aad9c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/azure/bicep/dab-on-aca.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ param tag string = 'latest'
1717

1818
var dabConfigFilePath='--ConfigFileName=./${mountedStorageName}/${dabConfigFileName}'
1919

20-
resource containerApp 'Microsoft.App/containerApps@2022-10-01' = {
20+
resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
2121
name: appName
2222
location: location
2323
properties: {

0 commit comments

Comments
 (0)