Update-AksHciCluster

Synopsis

Update a managed Kubernetes cluster to a newer Kubernetes or OS version.

Syntax

Update-AksHciCluster -name <String>
                    [-kubernetesVersion <String>]
Update-AksHciCluster -name <String>
                    [-operatingSystem]

Description

Update a managed Kubernetes cluster to a newer Kubernetes or OS version.

Examples

Update Kubernetes version

This command updates the Kubernetes version of your workload cluster to the specified Kubernetes version. This command also updates the OS version of your AKS workload cluster to the latest available OS version. You can get the list of available Kubernetes versions using the Get-AksHciKubernetesVersion command.

Update-AksHciCluster -name mycluster -kubernetesVersion v1.18.8 

Perform an operating system upgrade

This command updates the operating system version of your AKS workload cluster without updating the Kubernetes version of your AKS workload cluster.

Update-AksHciCluster -name mycluster -operatingSystem

Parameters

-name

The name of your Kubernetes cluster.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-kubernetesVersion

The version of Kubernetes you want to upgrade to.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-operatingSystem

Use this flag if you want to update to the next version of the operating system.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Next steps

AksHci PowerShell Reference