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:

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.

  1. On your keyboard, press Ctrl+Shift+P to open the command palette.

  2. 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.
  3. 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.