Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: AKS on Azure Local 22H2, AKS on Windows Server
If you have unreliable internet connectivity at your deployment location or you need to scan files and images for security and compliance before deploying, you can use offline downloading to install or update from a local path. There are two ways that you can use this feature: onsite or offsite. Onsite means that you download the AKS on Azure Local images at the same location in which you deploy. Offsite means that you download the AKS on Azure Local images to a different location (where you may have better internet connectivity), use a tool of your choice to transfer the images to your deployment site, and then install or update locally.
In both onsite and offsite scenarios, the latest change ensures that all the zip/cab files of different versions are extracted during the install/update process. This process takes less space than before, which required files to be extracted prior to install/upgrade and stored on the cluster storage.
The following prerequisites are required:
Run the following command to check every physical node to see if all the requirements to install AKS on Azure Local are satisfied.
Initialize-AksHciNode
In the configuration step, use Set-AksHciConfig to enable offline downloading with the -offlineDownload
parameter. Then, specify the local path with the -stagingShare
parameter. This is where the images are downloaded.
Set-AksHciConfig -offlineDownload $true -mode full -stagingShare c:\akshciimages -imageDir c:\clusterstorage\volume1\Images -workingDir c:\ClusterStorage\Volume1\ImageStore -cloudConfigLocation c:\clusterstorage\volume1\Config -vnet $vnet -cloudservicecidr "172.16.10.10/16"
Note
This command is an example. You must replace the parameter arguments with those that fit your deployment. You must also set your vnet
settings. See step 2 in this quickstart. This example downloads in full mode. For more download modes, see the descriptions for the -mode
parameter in Set-AksHciConfig.
You can make sure that offline download is enabled and that the local path is correct by running the following command:
Get-AksHciConfig | ConvertTo-Json
The output shows that offlineDownload
is set to true
, and the stagingShare
value is the local path.
Run the following command with your Azure subscription information:
Set-AksHciRegistration -subscriptionId "<subscriptionId>" -resourceGroupName "<resourceGroupName>"
Run the following command to start the deployment:
Install-AksHci
Check if there is an available update by running the following command:
Get-AksHciUpdates
If you do not already have offline downloading turned on, run the following command with the local path to which you want the images to be downloaded. You can check if offline downloading is set to true
with the correct local path by running Get-AksHciConfig | ConvertToJson
and checking the values. If it is set to true
and the local path is correct, skip to step 3.
Enable-AksHciOfflineDownload -stagingShare <your path>
Run the following command to download the images. This example downloads in full mode. For more download modes, see the descriptions of the -mode
parameter in Get-AksHCiRelease.
Get-AksHciRelease -mode full
Run the following command to start the update:
Update-AksHci
With the offsite functionality, you download the images to a different location of your choice. This could be a location where you have a more reliable and secure connection.
Run the following command at your offsite location with the version of AKS on Azure Local that you need:
Set-AksHciOffsiteConfig -version <String> -stagingShare <String>
Run the following command to download the images. This example downloads in full mode. For more download modes, see the descriptions of the -mode
parameter in Get-AksHCiRelease.
Get-AksHciRelease -mode full
In this step, use your tool of choice to transfer the images so that they are available in a local directory onsite where AKS on Azure Local are deployed.
Set your configuration, make sure to use the -offlineDownload
flag, and set your path to where AKS on Azure Local looks for the images during install:
Set-AksHciConfig -offlineDownload $true -offsiteTransferCompleted $true -stagingShare c:\akshciimages -imageDir c:\clusterstorage\volume1\Images -workingDir c:\ClusterStorage\Volume1\ImageStore -cloudConfigLocation c:\clusterstorage\volume1\Config -vnet $vnet -cloudservicecidr "172.16.10.10/16"
Note
This command is an example. Replace the parameter arguments to ones that fit your deployment. You must also set your vnet
settings. See step 2 in this quickstart.
You can make sure that offline download is enabled, and that the local path is correct by running the following command:
Get-AksHciConfig | ConvertTo-Json
The output shows that offlineDownload
is set to true
, and the stagingShare
value is the local path.
Run the following command with your Azure subscription information:
Set-AksHciRegistration -subscriptionId "<subscriptionId>" -resourceGroupName "<resourceGroupName>"
Run the following command to start the deployment:
Install-AksHci
With the offsite functionality, you download the images to a different location of your choice. This could be a location where you have a more reliable and secure connection.
Run the following command at your offsite location with the version of AKS on Azure Local that you need:
Set-AksHciOffsiteConfig -version <String> -stagingShare <String>
Run the following command with the upgrade version that you need to download the images. This example downloads in full mode. For more download modes, see the descriptions of the -mode
parameter in Get-AksHCiRelease.
Get-AksHciRelease -mode full
In this step, use your tool of choice to transfer the images so that they are available in a local directory onsite where AKS on Azure Local is deployed.
If you do not already have offline downloading enabled, run the following command to enable offline downloading, and provide the correct path to where the images are located:
Enable-AksHciOfflineDownload -stagingShare <your path> -offsiteTransferCompleted $true
Run the following command below to start the update:
Update-AksHci
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now