Azure / azure-functions-on-container-apps

Docs , samples and issues for Azure Functions on Azure Container Apps
MIT License
74 stars 18 forks source link

Can't update docker image #94

Open Mara-Li opened 1 week ago

Mara-Li commented 1 week ago

Which trigger/binding are you using? HTPP

Which language are you using? Typescript /NodeJS

Provide resource details

  1. archivette
  2. e40d0a43-943e-458b-9967-40dac7f289c0

Expected behavior Upgrading should work without any deny assignment in ACA and CLI / not crash happen when upgrading with Portal on the function app directly (configuration → upgrading the number)

Actual behavior

  1. On portail, with function app → Configuration, got:
    {"error":{"code":"ResourceNotProvisioned","message":"The ContainerApp 'archivette' has not been provisioned successfully. ProvisioningState: 'Failed'."}}

    I can't even stop or restart the app.

  2. When tried using ACA by ACA > container > edit and deploy I got the deny assignment error.
  3. When tried using az containerapp update --name <functionAppName> -g <group> --image "<name>/<image>:<tag>" i get the same deny assignment :
    (DenyAssignmentAuthorizationFailed) The client '@client' with object id 'd74c0f8c-3730-4fcd-a30c-de3b7ea2ef2e' has permission to perform action 'Microsoft.App/containerApps/write' on scope '/subscriptions/e40d0a43-943e-458b-9967-40dac7f289c0/resourceGroups/managedEnvironment-Archivette-9cdd_FunctionApps_46c02ae9-3f8f-419a-8cf3-962483c84148/providers/Microsoft.App/containerApps/archivette'; however, the access is denied because of the deny assignment with name '46c02ae9-3f8f-419a-8cf3-962483c84148' and Id '46c02ae93f8f419a8cf3962483c84148' at scope '/subscriptions/e40d0a43-943e-458b-9967-40dac7f289c0/resourceGroups/managedEnvironment-Archivette-9cdd_FunctionApps_46c02ae9-3f8f-419a-8cf3-962483c84148'.

To Reproduce For context, by error, the old docker image was deleted before changing it in ACA.

But we could at last create a new revision and change using the managed environnement without any deny assignment.

Screenshots

image

Logs /

Additional context /

raorugan commented 1 week ago

Hi @Mara-Li , recommend you not to change/update from Azure container app resource portal pages. Can you please try update of images from Azure Functions resource portal pages, configuration tab and try start/stop from Azure functions resource itself

Image

If above does not work , can you redeploy the image and check?