Configure a Linux app service to connect to Azure Container Registry.
- [Instructor] The last step is to configure our Linux App Service to connect to our Azure Container Registry. Open the App Portal and to go to our Resource group, click on our Container Registry, first, we're going to set up our Access keys. Now, Microsoft recommends that, if possible, you use an Azure Active Directory and service principal for this. But for this demo we're going to use the Admin user functionality so let's click Enable under the Admin user. You're going to need these credentials for the next steps so let's Copy are Username and Password for use in the next step.
Also in the next step we're going to need the Login server URL so let's go to the Overview area and let's Copy the Login server. Now, we have everything we need from the Container Registry, let's head over to our Web App. I'm going to go back to our Resource group and open up our Web App. Now, we need to configure our Web App to be able to log in to the Container Registry and pull down the Image of our application. We do that on the left, under Docker Container.
We're going to use a Private registry and this is where we need to enter the information that we Copied from the Registry. Enter the Image name, this will be the Login server URL, followed by the Registry name, and the Image name, and then a Build version. We'll set the Build version to one for now, the release system will update it when we do a release. Set the Server URL to the URL we Copied earlier and make sure to add http:// before it.
The Login username is the username that we Copied from earlier, it was dockerexample. I'm just going to go over and Copy that Password, again, in case and enter the Password that you Copied earlier. Now, that we have everything in we'll click Save. Okay, now that our App Service is configured we're ready to try out the whole process.
- Setting up your environment
- Adding Docker support to an application
- Debugging container-based apps in Visual Studio 2017
- The DevOps life cycle with Visual Studio and VS Team Services
- Configuring release and build
- Azure hosting options
- Using Kubernetes with Azure