Azure / functions-container-action

Enable GitHub developers to deploy to Azure Function Apps Containers using GitHub Actions
MIT License
26 stars 14 forks source link

`Resource doesn't exist` error deploying Function App container on infrastructure created via Bicep #42

Open akordowski opened 1 year ago

akordowski commented 1 year ago

When deploying a Function App container, I get the error Resource doesn't exist. even though the resource definitely exists. In my attempts it seems to me that the error occurs arbitrarily.

Attempt 1

I created an empty resource group via the Azure CLI. Via the Azure Portal I created manually a new Function App Container and Container Registry with all required dependencies. I created the service principal rights via the Azure CLI, as described in the tutorial. After that, I ran the GitHub Actions workflow.

Usually the deployment always worked, but today I had some attempts where the deployment failed. After that the deployment worked again, without changing anything.

Attempt 2

Like the first attempt, but here the resources are created by a Bicep file. After that, I ran the GitHub Actions workflow. In this case I always get the Resource doesn't exist. error. Last week it worked once, since then I couldn’t get it to work anymore.

I've been trying to find the cause for the problem for days now and just can't find any solution. What am I missing?

The repository with all the code and scripts I used for the tests, you can find here.

patelchandni commented 1 year ago

Sorry for inconvenience, but issue is not with this action. This is an Azure resource manager issue affecting multiple actions like: https://github.com/Azure/functions-action/issues/116 . Investigation is still on going.

akordowski commented 1 year ago

@patelchandni Thank you very much for the answer. I was beginning to wonder if I had done something wrong.