Pushing the Docker image to Azure Container Registry
ACR is offered by Microsoft to securely store and manage container images. It provides integrated security with Azure Active Directory authentication and role-based access control. It can connect to Azure Kubernetes Service and Azure App Service environments, which help in enabling continuous integration and deployment (CI/CD). Let's see how to provision Azure resources and create a container registry that can be used to store our Docker container image created in the previous section:
Note
You can learn about ACR in detail here: https://azure.microsoft.com/en-in/services/container-registry/#overview.
- Define the variables and values:
$resourceGroup = "distelrg" $location = "westus" $storageAccount = "distelstorage" $clusterName = "distelwebhost" $containerRegistry = "distelwebhostacr"
- Log in to the Azure CLI by running the following command, which takes you to...