title | description | author | ms.topic | ms.date | ms.author | ms.service |
---|---|---|---|---|---|---|
Attach to Azure Container Registry (ACR) using the Azure Kubernetes Service (AKS) extension for Visual Studio Code |
Learn how to attach to Azure Container Registry (ACR) using the Azure Kubernetes Service (AKS) extension for Visual Studio Code. |
qpetraroia |
how-to |
07/15/2024 |
qpetraroia |
azure-kubernetes-service |
Attach to Azure Container Registry (ACR) using the Azure Kubernetes Service (AKS) extension for Visual Studio Code
In this article, you learn how to attach to Azure Container Registry (ACR) using the Azure Kubernetes Service (AKS) extension for Visual Studio Code.
Before you begin, make sure you have the following resources:
- An Azure container registry. If you don't have one, create one using the steps in Quickstart: Create a private container registry.
- An AKS cluster. If you don't have one, create one using the steps in Quickstart: Deploy an AKS cluster.
- The Azure Kubernetes Service (AKS) extension for Visual Studio Code downloaded. For more information, see Install the Azure Kubernetes Service (AKS) extension for Visual Studio Code.
You can access the screen for attaching your container registry to your AKS cluster using the command palette or the Kubernetes view.
-
On your keyboard, press
Ctrl+Shift+P
to open the command palette. -
Enter the following information:
- Subscription: Select the Azure subscription that holds your resources.
- ACR Resource Group: Select the resource group for your container registry.
- Container Registry: Select the container registry you want to attach to your cluster.
- Cluster Resource Group: Select the resource group for your cluster.
- Cluster: Select the cluster you want to attach to your container registry.
-
Select Attach.
You should see a green checkmark, which means your container registry is attached to your AKS cluster.
-
In the Kubernetes tab, under Clouds > Azure > your subscription > Automated Deployments, right click on your cluster and select Attach ACR to Cluster.
-
Enter the following information:
- Subscription: Select the Azure subscription that holds your resources.
- ACR Resource Group: Select the resource group for your container registry.
- Container Registry: Select the container registry you want to attach to your cluster.
- Cluster Resource Group: Select the resource group for your cluster.
- Cluster: Select the cluster you want to attach to your container registry.
-
Select Attach.
You should see a green checkmark, which means your container registry is attached to your AKS cluster.
For more information, see AKS extension for Visual Studio Code features.
If you have a question or want to offer product feedback, please open an issue on the AKS extension GitHub repository.
To learn more about other AKS add-ons and extensions, see Add-ons, extensions, and other integrations for AKS.