I'm trying to update Azure container app startup probe using Az Cli. Below is the command
az containerapp update --name $containerAppName --resource-group $resourceGroup --set `
properties.template.containers.probes.type="Startup" `
properties.template.containers.probes.httpGet.path="/" `
properties.template.containers.probes.httpGet.port=80 `
properties.template.containers.probes.initialDelaySeconds=20 `
properties.template.containers.probes.periodSeconds=3
After running the above command, when we query the container app for changes
az containerapp show --name $containerAppName --resource-group $resourceGroup --query "properties.template.containers[0].probes"
we still see the old configuration for the startup probes (even after allowing the revision to be up and running).
Could you please suggest is there any way we can update the probes in Azure Container apps using cli.
Thanks in advance.
Here is the command to update Azure Container App probe settings using Azure CLI.
Note: Ensure that the container app is running. If it is not running, please start the application
az containerapp update --name "venkat-container" --resource-group "Venkat-RG" --set properties.template.containers.probes.type="Startup" properties.template.containers.probes.httpGet.path="/" properties.template.containers.probes.httpGet.port=80 properties.template.containers.probes.initialDelaySeconds=20 properties.template.containers.probes.periodSeconds=3
Output
az containerapp show --name "venkat-container" --resource-group "Venkat-RG" --query "properties.template.containers[0]"
After running the command, the Azure Container App probe settings have been updated with given values.