I have an app in Azure Web Apps which was connected to GitHub Actions. For a while, when I went into the Deployment Center, I was able to disconnect this deployment option and go back to choosing some other alternative if I wanted to. It looked like this:
But recently, when I go to the deployment center, I see a screen like this:
Here I seem unable to change anything in the deployment settings. I am basically stuck with this. No option to Disconnect or edit the settings if I wanted to switch to some other container registry or so.
I see that if I add in a container to the list, that I have to manually choose the tag of the image. And although it says "Running" in the status, the main page shows a completely different tagged image as being selected for the web app container.
I find this thing very confusing and don't understand how I can edit these settings. I've checked things out, and since I am deploying from GitHub actions I can see that it is still the result of that workflow that is driving what container is being deployed to the web app, which is of course what I want. But then what are these options to "Add" a container in the UI for, and when I add one, why does it say Type "Main" and Status "Running" (and why can I also not delete the container when I select it either).
Confused about the Azure Web App Deployment Center when using GitHub Actions
When you create an Azure Web Application with the Publish: Container
option, you can only deploy container images to Azure Web App.
After successfully creating a Web App in Azure with the Container option, go to the Deployment Center, where you can find Container Registry, GitHub Actions, and Azure Pipelines options in the Source
.
On the above page, you can see the Start Update
button. Once you click this button, your configuration will be updated as shown below. After opting for this update, the GitHub and Azure Pipeline options will no longer be available.
I changed the Container Registry by clicking on the web app name in the Deployment Center page, then selecting Edit Container
, updating the Registry, Image, and Image Tag
, and clicking Apply
as shown below.
First Container Registry Output:
Second Container Registry Output: