microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
365 stars 29 forks source link

Storage Accounts getting Created for Azure Container Apps #1313

Open VenkataRKC opened 1 week ago

VenkataRKC commented 1 week ago

Hi,

I see storage accounts getting created and not getting deleted when we delete the container apps...this is for Azure Container Apps hosted in a Azure Container Environment.

Is there a way to check which azure storage account is being used by which Container App ?. Basically trying to identify if the Azure Storage Account is being used or not...because even though the Container App is deleted the Storage Account still persists....unless that is not the expected behavior.

Screen shot for clarity. There are 14 storage accounts that got created even though there are only 8 Container Apps.

Image

anthonychu commented 5 days ago

@VenkataRKC Can you please share more information about how you created these apps and environments? I don't believe Container Apps automatically creates storage accounts by default. Thanks.

VenkataRKC commented 3 days ago

@VenkataRKC Can you please share more information about how you created these apps and environments? I don't believe Container Apps automatically creates storage accounts by default. Thanks.

@anthonychu thanks for the response, the environment is created via the Bicep and we are using the portal to deploy the container apps. Do you think these might get created when we create a azure function in the container app? ...I am trying to figure out what these storage accounts are. I am positive we did not create them and i see that the naming convention for the storage account is getting generated from the resource group....Wondering how to find out whether it is container app or when we create a azure function in container app environment. We have been working on Dev environment and been creating apps from the portal. I can clean delete them but not sure which container apps/functions are mapped to which storage accounts.