Closed ucheNkadiCode closed 3 weeks ago
Otherwise the only way to redeploy the image is to go to the Azure App Service Extension and hit refresh according to this guide for Python Devs
To be clear, the "Deploy Image to Azure App" command, in addition to creating a new app service, also sets up an ACR web hook so that pushes to the same repository/tag will cause a redeployment to that app service. (@ucheNkadiCode It would be great if you could verify that. We likely need to ensure that the referenced guide is updated with that fact.)
That said, it seems like it could be useful for the user to push to existing app services, in cases where that web hook is not (or no longer) in place (such as when the user's hit their maximum number of web hooks for their Azure tier of usage). We may then also want to warn the user if they choose to deploy an altogether different image (rather than just a new version of a given tag) to that app service.
...in cases where that web hook is not (or no longer) in place (such as when the user's hit their maximum number of web hooks for their Azure tier of usage).
Or regardless of if a Web Hook may or may not be set, a developer would now get a "Manual Refresh" feedback loop wherein the user does a Build -> Push to registry of choice -> Deploy to existing Azure App. From your description, I recognize what "Deploy Image to Azure App" does, but unless we make plans to also allow users to hit the equivalent of "Manual Refresh" for their Azure App, wording could be changed to "Create New App Web App from Image" to be more clear
Closing stale issue as it is not planned
From within Docker Extension in Visual Studio Code:
Steps to reproduce:
From here you will see that although this app has already been deployed, it is assumed this command is only used for creating an entirely new web app. This is not desired behavior. As a user, I would expect an option to deploy to an existing web app (Created in step 4) or to create a new web app. Otherwise the only way to redeploy the image is to go to the Azure App Service Extension and hit refresh according to this guide for Python Devs