Azure functionapp unable to update container
I'm working with azure cli and I'm deploying a function app with a container - I'm tagging it like so:
appName:test
And I call az functionapp create to create the app with the specified container.
When I deploy for the first time, it's fine, but when I try to deploy again, the function won't update - how do I make the function download and use the new container I created? The docs don't mention it at all, and I'm not sure if this is a BUG|DOCS|FEATURE...
I did find this: https://docs.microsoft.com/en-us/cli/azure/functionapp?view=azure-cli-latest#az-functionapp-update But it's confusing since I have no idea what it's supposed to update, it doesn't seem to do anything.
** az functionapp config container set does nothing either.
you will probably have to use dedicated tag names for updated versions (e.g. appName:1.0.0,appName:1.1.0,...)
But then I will have a shitload of tags in my ACR, how will I clean them after that?
@liron-navon - did you ever find a solution to this? I'm having the same problem. Thanks.
I'm also stuck scratching my head on this. Has anyone found a solution that doesn't involve creating a new tag each and every time?
FYI I've got this working recently.
Once I've pushed my image, I run:
az webapp config container set
Note the cmd is for webapp, but this works for my Function App.
I then make a point of manually restarting the Function App.
This is working for me now.
Hi we are also having the same issue here @obiii
Hi, We were also facing the same issue. After trying different things we found out that the functionapp picks the latest container build only if the app is restarted. This is a bit weird because we don't have to restart the functionapp in dev and test when we update the container.