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.
Prerequisites
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.
Attach your Azure container registry to your AKS cluster
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.
For more information, see AKS extension for Visual Studio Code features.
Product support and feedback
If you have a question or want to offer product feedback, please open an issue on the AKS extension GitHub repository.
Next steps
To learn more about other AKS add-ons and extensions, see Add-ons, extensions, and other integrations for AKS.
Azure Kubernetes Service