Use manual (offline) download in AKS enabled by Azure Arc (preview)

Applies to: Azure Stack HCI, version 23H2

Note

This feature is currently in limited preview. If you want to try it, contact your Microsoft account representative.

If you have unreliable internet connectivity at your deployment location or need to scan files and images for security and compliance before you deploy, you can manually download images to use to create and update Kubernetes workload clusters. You can issue a command to download the images to a convenient computer with good internet connectivity, and then you can use your preferred tool to move them to the target Azure Stack system. You then save them for the system to use when you need to create or update a Kubernetes cluster.

Before you begin

Before you begin the download process, the following prerequisites are required:

  • The latest release of Azure CLI. For more information, see how to update the Azure CLI.
  • The latest release of the Azure CLI AKS Arc extension.
  • Make sure you satisfied all the system requirement prerequisites.
  • The name of the resource group that contains your system's Arc Resource Bridge and the name of the Resource Bridge resource instance. You can get this information by visiting the Azure portal. This information should be under your Azure subscription.

Use manual download to create or update a Kubernetes cluster

You can use the following procedure to create or update a Kubernetes cluster on AKS enabled by Arc.

  1. If you have not installed the Azure CLI AKS Arc extension, run the following command:

    az extension add --name aksarc
    
  2. If you already had the CLI installed, ensure it's running the latest version of the extension by issuing the following command:

    az extension update --name aksarc
    
  3. Sign in into your Azure subscription that has access to Azure Resource Bridge, and that corresponds to the target Azure Stack HCI. Run the following command:

    az login
    
  4. Retrieve the name of the AKS extension from the Arc Resource Bridge by running the following command:

    $hybridAksExtensionName = az k8s-extension list -g "myResouceGroup" -c "myArcResourceBridge" --cluster-type appliances --query "[?extensionType=='microsoft.hybridaksoperator'].name" -o tsv
    
  5. Update the configuration of the AKS extension to enable "offline download" of the images. Keep it separate from the automatic download of the VM images used to create Kubernetes clusters. Run the following command:

    az k8s-extension update -g $rgName -c "myArcResourceBridge" --name $hybridAksExtensionName -t appliances --config offline-download="true"
    
  6. On a computer with reliable internet connectivity, download the required files by running the following command:

    az aksarc release download --staging-folder 'C:\staging_folder'
    
  7. Use your preferred tool to move the file to the desired Azure Stack HCI system used for Kubernetes clusters.

  8. Save the new files into the target Azure Stack HCI system by running the following command:

    az aksarc release save--staging-folder 'C:\staging_folder' --config-file <applica_config_file>
    
  9. You can now create a Kubernetes cluster by following these instructions.

Next steps