Closed tang2087 closed 3 months ago
I have temporarily hosted the function in a new container app environment and it is working:
However I still want to be able to do this to use one single env for both my web app containers and Azure function app container.
Having the same issue trying to deploy a powershell func app. I'm using an existing Container App Environment and have specified existing managedEnvironments in the bicep. Any idea what is causing the issue? Is it a setting in the Container App Environment?
Having the same issue trying to deploy a powershell func app. I'm using an existing Container App Environment and have specified existing managedEnvironments in the bicep. Any idea what is causing the issue? Is it a setting in the Container App Environment?
I have added this issue to this bug one: https://github.com/Azure/azure-functions-dotnet-worker/issues/1920
Taking a look into this. @FahaoTang @rphoon
Taking a look into this. @FahaoTang @rphoon
Thanks @v-shenoy . It will be appreciated if you can help to look into another related 'bug': The above worked bicep template will create another resource group with name: container-app-env-nameFunctionApps****
I would expect the function container app itself to be created within the same resource group of the Function app itself.
This is by design. For a given container apps environment, we create a resource group to hold the backing container apps. If you use the same environment to create more function apps, the container apps will be created in the same resource group.
This is to separate the Azure resources managed by the user, and the ones managed by the Microsoft.Web
resource provider.
This is by design. For a given container apps environment, we create a resource group to hold the backing container apps. If you use the same environment to create more function apps, the container apps will be created in the same resource group.
This is to separate the Azure resources managed by the user, and the ones managed by the
Microsoft.Web
resource provider.
This is a strange design to me but I can live with it.
Any update about the original issue I raised?
Hi @v-shenoy just to follow up this again - is the issue fixed now? i.e. we cannot add azure function app to existing managed environment.
Hi, @FahaoTang. Sorry for the delay here. Can you clarify few things for me?
I will get back on this from my end with more info as well.
Hi, @FahaoTang. Sorry for the delay here. Can you clarify few things for me?
When was the managed environment created (if possible)?
Are you able to create FAs on other MEs?
I will get back on this from my end with more info as well.
It was created a few months ago for my website container app. I can create FAs with new MEs just not the ones that already have other web apps.
@FahaoTang This was a known bug in the back end which has been fixed, but the issue is persisting in some cases where function app creation was done before the fix. I will manually run a fix-up operation and see if it resolves it.
Hi @v-shenoy any updates? I am really keen to deploy my containerized function app to the same Azure Contains Apps environment as my website so that I can share the same file share, etc.
@FahaoTang We have verified from our end that the operation has been cleaned up. Could you check again? If not, then something else is causing this and we need to take a look, in which case please share the function app name and error messages.
@FahaoTang We have verified from our end that the operation has been cleaned up. Could you check again? If not, then something else is causing this and we need to take a look, in which case please share the function app name and error messages.
I feel this feature is half-cooked and doesn't align with my expected experience of deploying containerized function app into Azure Container Apps. Hence, I've reverted back to use service plan server farms.
Hello @v-shenoy, I'm running into the same issue when creating an Azure Function on an AppService Plan (that has other web apps) using ARM (I'm using Pulumi).
I'm getting the below error:
autorest/azure: Service returned an error. Status=
However, I can provision the Azure Function manually through the Portal. My FA uses VNet integration. I wonder if this is causing Create action by ARM to run into this kind of deadlock.
Please let me know if you need more info.
This was closed but what is the solution? I'm still facing it when using Azure Function App on Container Deploy via Azure DevOps release pipeline.
I am getting this error deploying Azure Functions App to a Container Apps Environment:
Cannot modify this site because another operation is in progress. Details: Id: ae8c14cd-77da-49bb-b644-77a8851f0a44, OperationName: ContainerAppUpdateSiteConfig, CreatedTime: 9/13/2024 9:01:46 PM, RequestId: b975d295-9e8d-4339-96c6-284b06cb2691, EntityType: 3
It appears that the AzureFunctionAppContainer@1 task is triggering the operation for ContainerAppUpdateSiteConfig twice
I am getting this error deploying Azure Functions App to a Container Apps Environment:
Cannot modify this site because another operation is in progress. Details: Id: ae8c14cd-77da-49bb-b644-77a8851f0a44, OperationName: ContainerAppUpdateSiteConfig, CreatedTime: 9/13/2024 9:01:46 PM, RequestId: b975d295-9e8d-4339-96c6-284b06cb2691, EntityType: 3
It appears that the AzureFunctionAppContainer@1 task is triggering the operation for ContainerAppUpdateSiteConfig twice
I am getting the same thing
When I try to add function app using the bicep template provided into an existing managed environment (Azure Container App), I got the following error:
The bicep is based on the exmaple provided in this repo:
The same error occurs if I use Azure Portal to add the app.
Any suggestions about how to handle this error? The managed environment is hosting another web container app without any errors.