Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

storage account add function-releases container as default

Open andersson09 opened this issue 3 years ago • 7 comments

Hey,

Not really a bug but can we add an empty function-releases container when a function app is created? It makes it easier for CI jobs to check for previous deployments without worrying about errors / checking if the container exists or not.

Thanks!

andersson09 avatar Feb 17 '22 20:02 andersson09

Hi @andersson09 , Thank you for your feedback! We will check for the possibilities internally and update you with the findings.

v-bbalaiagar avatar Feb 22 '22 10:02 v-bbalaiagar

Hi @pragnagopa , Could you please provide any inputs for this issue.

v-bbalaiagar avatar Mar 08 '22 14:03 v-bbalaiagar

this is a feature request. Assigning to @amamounelsayed and @kulkarnisonia16 for triage. Thanks!

pragnagopa avatar Mar 08 '22 14:03 pragnagopa

Any update?

andersson09 avatar Apr 01 '22 13:04 andersson09

@andersson09 I agree a simple mechanism to check for previous deployments is a good ask. But using the presence/absence of a container might not be the most reliable way to do that.

Some potential issues with this approach - the container cannot always be created at the time of app creation if the storage account is using private endpoints. There are some deployment mechanisms that dont rely on the presence of that container (Ex: local build)

Would you mind describing your exact scenario. Would an api work? There is already a /api/deployments endpoint on the scm hostname that should have some of these details. Let us know if that helps

balag0 avatar Apr 04 '22 16:04 balag0

Exact scenario:

I'm running zip deploy using: az functionapp deployment source config-zip -g $RESOURCE_GROUP -n $FUNCTION --src package.zip

However, this will break if there is no 'function-releases' container in the generated storage account. So I have to create it manually.

image

The other three containers are generated automatically so why can't the function-releases also be?

I want to avoid the CI script having to check if this container exists, if not then create. It adds more complexity to the CI script. Otherwise, can the CLI command do this instead perhaps?

andersson09 avatar Apr 14 '22 10:04 andersson09

Please share the appname (and approx. timestamp )which experienced the failure when running az functionapp deployment source config-zip -g $RESOURCE_GROUP -n $FUNCTION --src package.zip

https://github.com/Azure/azure-functions-host/wiki/Sharing-Your-Function-App-name-privately

balag0 avatar Apr 17 '22 03:04 balag0