You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set the targetPort argument in the GitHub Action for deploying Container Apps on Azure, the initial deployment succeeds, but subsequent updates fail.
Here's an example configuration that triggers the issue:
The root of the problem seems to be the Azure CLI command az containerapp update, which lacks support for the target-port argument. Consequently, this Action defaults to using the up command for both initial deployments and updates. However, if the app is already running, attempting an update with the up command and a specified target-port results in a Forbidden error:
/usr/bin/az containerapp up [...] --target-port 8080
ERROR: Operation returned an invalid status 'Forbidden'
As the ingress setup is only needed during creation, this Action should skip the targetPort and only update the container or (if specified) delete and re-create the container if the targetPort changed
The text was updated successfully, but these errors were encountered:
When you set the
targetPort
argument in the GitHub Action for deploying Container Apps on Azure, the initial deployment succeeds, but subsequent updates fail.Here's an example configuration that triggers the issue:
Identified Issue:
The root of the problem seems to be the Azure CLI command
az containerapp update
, which lacks support for thetarget-port
argument. Consequently, this Action defaults to using theup
command for both initial deployments and updates. However, if the app is already running, attempting an update with theup
command and a specifiedtarget-port
results in aForbidden
error:As the ingress setup is only needed during creation, this Action should skip the
targetPort
and only update the container or (if specified) delete and re-create the container if thetargetPort
changedThe text was updated successfully, but these errors were encountered: