az aksarc

Note

This reference is part of the aksarc extension for the Azure CLI (version 2.77.0 or higher). The extension will automatically install the first time you run an az aksarc command. Learn more about extensions.

Manage provisioned clusters.

Commands

Name Description Type Status
az aksarc create

Creates the provisioned cluster.

Extension GA
az aksarc delete

Deletes the provisioned cluster.

Extension GA
az aksarc deploy

Deploy a full AKS baremetal cluster onto one or more existing Arc-for-Servers (BareMetal) hosts.

Extension GA
az aksarc get-credentials

Get local kubeconfig of the provisioned cluster.

Extension GA
az aksarc get-logs

Collect logs from provisioned clusters and the underlying infrastructure.

Extension GA
az aksarc get-upgrades

Get the upgrade versions available for the provisioned cluster.

Extension GA
az aksarc get-versions

List the supported Kubernetes versions in the specified custom location.

Extension GA
az aksarc list

Lists the provisioned clusters in a resource group or in a subscription.

Extension GA
az aksarc logs

Deprecated. Use 'az aksarc get-logs' instead.

Extension GA
az aksarc logs hci

Collect logs from provisioned clusters and the underlying infrastructure.

Extension Deprecated
az aksarc nodepool

Manage nodepools in a provisioned cluster.

Extension GA
az aksarc nodepool add

Adds a nodepool in the provisioned cluster.

Extension GA
az aksarc nodepool delete

Deletes the nodepool in the provisioned cluster.

Extension GA
az aksarc nodepool list

Lists all the nodepools in the provisioned cluster.

Extension GA
az aksarc nodepool scale

Scales the nodepool in the provisioned cluster.

Extension GA
az aksarc nodepool show

Gets the nodepool in the provisioned cluster.

Extension GA
az aksarc nodepool update

Update a nodepool in the provisioned cluster.

Extension GA
az aksarc notice

Output NOTICE file to user specified filepath.

Extension GA
az aksarc release

Manage VHD images for provisioned clusters.

Extension Preview
az aksarc release download

Downloads the VHD images from a release.

Extension Preview
az aksarc release save

Provisions the downloaded VHD images to the arc resource bridge.

Extension Preview
az aksarc show

Gets the provisioned cluster.

Extension GA
az aksarc undeploy

Tear down an AKS baremetal cluster previously created by 'az aksarc deploy'.

Extension GA
az aksarc update

Updates the provisioned cluster.

Extension GA
az aksarc upgrade

Upgrades the provisioned cluster.

Extension GA
az aksarc vmsize

Manage virtual machine SKUs for provisioned clusters.

Extension GA
az aksarc vmsize list

Lists the supported virtual machine sizes in the specified custom location.

Extension GA
az aksarc vnet

Manage virtual networks for provisioned clusters.

Extension GA
az aksarc vnet create

Creates the virtual network.

Extension GA
az aksarc vnet delete

Deletes the virtual network.

Extension GA
az aksarc vnet list

Lists the virtual networks by resource group or subscription.

Extension GA
az aksarc vnet show

Gets the virtual network.

Extension GA

az aksarc create

Creates the provisioned cluster.

az aksarc create --custom-location
                 --name
                 --resource-group
                 --vnet-id --vnet-ids
                 [--aad-admin-group-object-ids]
                 [--acquire-policy-token]
                 [--ca-certs --custom-ca-trust-certificates]
                 [--ca-profile --cluster-autoscaler-profile]
                 [--change-reference]
                 [--control-plane-count --control-plane-node-count]
                 [--control-plane-ip]
                 [--control-plane-vm-size]
                 [--disable-nfs-driver]
                 [--disable-smb-driver]
                 [--enable-ahub]
                 [--enable-ai-toolchain-operator --enable-kaito]
                 [--enable-azure-rbac]
                 [--enable-cluster-autoscaler]
                 [--enable-oidc-issuer]
                 [--enable-wi --enable-workload-identity]
                 [--gateway-id]
                 [--generate-ssh-keys]
                 [--gpu-count-per-node]
                 [--kubernetes-version]
                 [--load-balancer-count]
                 [--location]
                 [--max-count]
                 [--max-pods]
                 [--min-count]
                 [--no-wait]
                 [--node-count]
                 [--node-vm-size]
                 [--nodepool-labels]
                 [--nodepool-taints]
                 [--pod-cidr]
                 [--ssh-auth-ips --ssh-authorized-ip-ranges]
                 [--ssh-key-value]
                 [--tags]
                 [--validate]

Examples

PutProvisionedCluster

az aksarc create --resource-group sample-rg --custom-location sample-cl --name sample-aksarccluster --vnet-ids "vnet-arm-id"

Required Parameters

--custom-location

Name or ID of the custom location to use for the provisioned cluster.

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vnet-id --vnet-ids

ARM resource ID of aksarc virtual network or Azure Local logical network.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--aad-admin-group-object-ids -i

Comma-separated list of aad group object IDs that will be set as cluster admin on the provisioned cluster.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ca-certs --custom-ca-trust-certificates

Path to a file containing custom CA trust certificates for the security profile. The file can contain multiple PEM format certificates (up to 10). Each certificate will be base64 encoded and added to the trust store on all nodes.

--ca-profile --cluster-autoscaler-profile

Space-separated list of key=value pairs for configuring cluster autoscaler. Pass an empty string to clear the profile.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--control-plane-count --control-plane-node-count

Number of control plane nodes.

--control-plane-ip

Kubernetes APIServer IPAddress. The IPAddress should be routable from Azure Resource Bridge Appliance VM.It should be part of the Network subnet being referenced.The cluster creation may fail or timeout if a non-routable IPAddress is passed.

--control-plane-vm-size

VM Size of control plane.

--disable-nfs-driver

Disable NFS driver for the provisioned cluster.

Property Value
Default value: False
--disable-smb-driver

Disable SMB driver for the provisioned cluster.

Property Value
Default value: False
--enable-ahub

Enable Azure Hybrid User Benefits (AHUB) for the provisioned cluster.

Property Value
Default value: False
--enable-ai-toolchain-operator --enable-kaito

Enable AI Toolchain Operator for the provisioned cluster.

Property Value
Default value: False
--enable-azure-rbac

Enable Azure RBAC to control authorization checks on cluster.

Property Value
Default value: False
--enable-cluster-autoscaler -e

Enable cluster auto-scaler for the provisioned cluster.

Property Value
Default value: False
--enable-oidc-issuer

Enable OIDC issuer.

Property Value
Default value: False
--enable-wi --enable-workload-identity

Enable workload identity addon.

Property Value
Default value: False
--gateway-id

Gateway Arm ID of the provisioned cluster.

--generate-ssh-keys

Generate ssh key-pair if not present.

Property Value
Default value: False
--gpu-count-per-node

Number of gpus attached to a node.

--kubernetes-version -k

The kubernetes version of the provisioned cluster.

--load-balancer-count

Number of load balancer nodes.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--max-count

The maximum number of nodes for auto-scaling.

--max-pods -m

Maximum number of pods that can run on a node.

--min-count

The minimum number of nodes for auto-scaling.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--node-count -c

Number of nodes to be created in the nodepool.

Property Value
Default value: 1
--node-vm-size

VM Size of the nodes in the nodepool.

--nodepool-labels

Space-separated labels: key[=value] [key[=value] ...].

--nodepool-taints

Comma-separated list of nodepool taints.

--pod-cidr

The CIDR notation IP ranges from which to assign pod IPs.

--ssh-auth-ips --ssh-authorized-ip-ranges

Comma-separated list of IP addresses or CIDR that are allowed to ssh to the cluster vm.

--ssh-key-value

Path to the ssh public key to be injected into the control plane.

Property Value
Default value: ~\.ssh\id_rsa.pub
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--validate

Validate the cluster's input parameters without actually creating the cluster.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc delete

Deletes the provisioned cluster.

az aksarc delete --name
                 --resource-group
                 [--acquire-policy-token]
                 [--change-reference]
                 [--no-wait]
                 [--yes]

Examples

DeleteProvisionedCluster

az aksarc delete --name "sample-aksarccluster" --resource-group "sample-rg"

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc deploy

Deploy a full AKS baremetal cluster onto one or more existing Arc-for-Servers (BareMetal) hosts.

Deploys a complete AKS baremetal cluster onto one or more existing Arc-for-Servers (BareMetal) hosts. The only required input is the list of Arc-enabled machine names that make up the cluster. The hosts must already be Arc-for-Servers enabled.

az aksarc deploy --arc-machine-name --arc-machine-names --machine-names
                 --resource-group
                 [--acquire-policy-token]
                 [--change-reference]
                 [--enable-wi --enable-workload-identity]
                 [--hci-rp-object-id]
                 [--kubernetes-version]
                 [--no-wait]
                 [--validate]
                 [--yes]

Examples

Deploy a single-node AKS baremetal cluster

az aksarc deploy --resource-group sample-rg --arc-machine-names myArcHost

Deploy a multi-node AKS baremetal cluster

az aksarc deploy --resource-group sample-rg --arc-machine-names host1 host2 host3

Deploy with WorkloadIdentity support enabled

az aksarc deploy --resource-group sample-rg --arc-machine-names myArcHost --enable-workload-identity

Deploy a specific Kubernetes versioned bundle

az aksarc deploy --resource-group sample-rg --arc-machine-names myArcHost --kubernetes-version 1.35.5-20260701

Deploy without Microsoft Graph lookup

az aksarc deploy --resource-group sample-rg --arc-machine-names myArcHost --hci-rp-object-id <hci-rp-object-id>

Validate without deploying

az aksarc deploy --resource-group sample-rg --arc-machine-names host1 host2 --validate

Required Parameters

--arc-machine-name --arc-machine-names --machine-names -m

Space-separated names of the existing Arc-enabled (Arc-for-Servers) machines in the resource group to form the cluster device pool. Provide one for a single-node pool or several for a multi-node pool. This is the only required input; all other cluster resources are auto-derived.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--enable-wi --enable-workload-identity

Enable workload identity and the OIDC issuer required for Azure IoT Operations.

Property Value
Default value: False
--hci-rp-object-id

Tenant-specific object ID of the Microsoft.AzureStackHCI resource provider service principal. When omitted, the CLI uses HCI_RP_OBJECT_ID if set, then falls back to Microsoft Graph.

--kubernetes-version -k

Kubernetes versioned bundle for the cluster, such as 1.35.5-20260701. When omitted, the AKS Arc operator selects its current default version.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--validate

Validate the deployment template without actually deploying.

Property Value
Default value: False
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc get-credentials

Get local kubeconfig of the provisioned cluster.

az aksarc get-credentials --name
                          --resource-group
                          [--acquire-policy-token]
                          [--admin]
                          [--change-reference]
                          [--context]
                          [--file]
                          [--overwrite-existing]

Examples

GetAdminCredential

az aksarc get-credentials --name "sample-aksarccluster" --resource-group "sample-rg" --admin

GetAADUserCredential

az aksarc get-credentials --name "sample-aksarccluster" --resource-group "sample-rg"

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--admin -a

Get cluster administrator credentials.

Property Value
Default value: False
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--context

If specified, overwrite the default context name.

--file -f

Kubernetes configuration file to update. If not provided, updates the file '~/.kube/config'.

Property Value
Default value: ~\.kube\config
--overwrite-existing

Overwrite any existing cluster entry with the same name.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc get-logs

Collect logs from provisioned clusters and the underlying infrastructure.

az aksarc get-logs [--acquire-policy-token]
                   [--change-reference]
                   [--credentials-dir --ssh-key]
                   [--ip --ips]
                   [--kubeconfig]
                   [--out-dir]

Examples

Collect logs with IP address and SSH credentials

az aksarc get-logs --ip 192.168.200.31 192.168.200.32 --ssh-key ~/.ssh --out-dir ./logs

Collect logs with kubeconfig and SSH credentials, kubeconfig is only used to collect IP addresses, and ssh-key file path is used instead of directory

az aksarc get-logs --kubeconfig ~/.kube/config --ssh-key ~/.ssh/id_rsa --out-dir ./logs

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--credentials-dir --ssh-key

Path to SSH credentials to connect to nodes, either id_rsa file or directory is accepted.

--ip --ips

IP addresses of nodes (control plane nodes or worker nodes) from which logs need to be collected.

--kubeconfig

Path to kubeconfig file to connect to the cluster.

--out-dir

Output directory to store collected logs. If not specified, logs will be stored in the current directory.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc get-upgrades

Get the upgrade versions available for the provisioned cluster.

az aksarc get-upgrades --name
                       --resource-group
                       [--acquire-policy-token]
                       [--change-reference]

Examples

Get the upgrade versions available for the Hybrid AKS provisioned cluster

az aksarc get-upgrades --name "samplecluster" --resource-group "sample-rg"

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc get-versions

List the supported Kubernetes versions in the specified custom location.

az aksarc get-versions --custom-location
                       [--acquire-policy-token]
                       [--change-reference]
                       [--resource-group]

Examples

VMListSkus

az aksarc get-versions -g sample-rg --custom-location sample-cl

Required Parameters

--custom-location

Name of the custom location to use for displaying the supported k8s versions.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc list

Lists the provisioned clusters in a resource group or in a subscription.

az aksarc list [--resource-group]

Examples

ListProvisionedClusterByResourceGroup

az aksarc list --resource-group "sample-rg"

ListProvisionedClusterBySubscription

az aksarc list

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc notice

Output NOTICE file to user specified filepath.

az aksarc notice --output-filepath
                 [--acquire-policy-token]
                 [--change-reference]

Examples

GetNoticeFile

az aksarc notice --output-filepath "./Notice"

Required Parameters

--output-filepath

Output filepath for NOTICE file.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc show

Gets the provisioned cluster.

az aksarc show --name
               --resource-group

Examples

GetProvisionedCluster

az aksarc show --name "sample-aksarccluster" --resource-group "sample-rg"

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc undeploy

Tear down an AKS baremetal cluster previously created by 'az aksarc deploy'.

Tears down an AKS baremetal cluster previously created by 'az aksarc deploy', removing all of its associated resources. If the teardown is left incomplete, re-run the command to retry.

az aksarc undeploy --arc-machine-name --arc-machine-names --machine-names
                   --resource-group
                   [--acquire-policy-token]
                   [--change-reference]
                   [--yes]

Examples

Undeploy AKS Arc resources for the given Arc machines

az aksarc undeploy --resource-group sample-rg --arc-machine-names host1 host2 host3

Required Parameters

--arc-machine-name --arc-machine-names --machine-names -m

Space-separated names of the Arc machines whose AKS Arc deployment should be torn down. Resource names are auto-derived from them.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc update

Updates the provisioned cluster.

az aksarc update --name
                 --resource-group
                 [--aad-admin-group-object-ids]
                 [--acquire-policy-token]
                 [--ca-certs --custom-ca-trust-certificates]
                 [--ca-profile --cluster-autoscaler-profile]
                 [--change-reference]
                 [--control-plane-count --control-plane-node-count]
                 [--control-plane-vm-size]
                 [--disable-ahub]
                 [--disable-ai-toolchain-operator --disable-kaito]
                 [--disable-cluster-autoscaler]
                 [--disable-gateway]
                 [--disable-nfs-driver]
                 [--disable-smb-driver]
                 [--enable-ahub]
                 [--enable-ai-toolchain-operator --enable-kaito]
                 [--enable-cluster-autoscaler]
                 [--enable-nfs-driver]
                 [--enable-smb-driver]
                 [--gateway-id]
                 [--max-count]
                 [--min-count]
                 [--tags]
                 [--update-cluster-autoscaler]
                 [--yes]

Examples

UpdateProvisionedCluster

az aksarc update --tags additionalProperties="sample" --name "sample-aksarccluster" --resource-group "sample-rg"

Enable Azure Hybrid User Benefits feature for a provisioned cluster.

az aksarc update --name "sample-aksarccluster" --resource-group "sample-rg" --enable-ahub

Disable Azure Hybrid User Benefits feature for a provisioned cluster.

az aksarc update --name "sample-aksarccluster" --resource-group "sample-rg"--disable-ahub

Scale Up Control Plane Nodes.

az aksarc update --name "sample-aksarccluster" --resource-group "sample-rg" --control-plane-node-count 5

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--aad-admin-group-object-ids -i

Comma-separated list of aad group object IDs that will be set as cluster admin on the provisioned cluster.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ca-certs --custom-ca-trust-certificates

Path to a file containing custom CA trust certificates for the security profile. The file can contain multiple PEM format certificates (up to 10). Each certificate will be base64 encoded and added to the trust store on all nodes.

--ca-profile --cluster-autoscaler-profile

Space-separated list of key=value pairs for configuring cluster autoscaler. Pass an empty string to clear the profile.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--control-plane-count --control-plane-node-count

Number of nodes to scale the Control Plane to.

--control-plane-vm-size

VM Size of control plane.

--disable-ahub

Disable Azure Hybrid User Benefits (AHUB) for the provisioned cluster.

Property Value
Default value: False
--disable-ai-toolchain-operator --disable-kaito

Disable AI Toolchain Operator for the provisioned cluster.

Property Value
Default value: False
--disable-cluster-autoscaler -d

Disable cluster auto-scaler for the provisioned cluster.

Property Value
Default value: False
--disable-gateway

Disable gateway for the provisioned cluster.

Property Value
Default value: False
--disable-nfs-driver

Disable NFS driver for the provisioned cluster.

Property Value
Default value: False
--disable-smb-driver

Disable SMB driver for the provisioned cluster.

Property Value
Default value: False
--enable-ahub

Enable Azure Hybrid User Benefits (AHUB) for the provisioned cluster.

Property Value
Default value: False
--enable-ai-toolchain-operator --enable-kaito

Enable AI Toolchain Operator for the provisioned cluster.

Property Value
Default value: False
--enable-cluster-autoscaler -e

Enable cluster auto-scaler for the provisioned cluster.

Property Value
Default value: False
--enable-nfs-driver

Enable NFS driver for the provisioned cluster.

Property Value
Default value: False
--enable-smb-driver

Enable SMB driver for the provisioned cluster.

Property Value
Default value: False
--gateway-id

Gateway Arm ID of the provisioned cluster.

--max-count

The maximum number of nodes for auto-scaling.

--min-count

The minimum number of nodes for auto-scaling.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--update-cluster-autoscaler -u

Update cluster auto-scaler for the provisioned cluster.

Property Value
Default value: False
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az aksarc upgrade

Upgrades the provisioned cluster.

az aksarc upgrade --name
                  --resource-group
                  [--acquire-policy-token]
                  [--change-reference]
                  [--kubernetes-version]
                  [--no-wait]
                  [--yes]

Examples

UpgradeProvisionedCluster

az aksarc upgrade --name "sample-aksarccluster" --resource-group "sample-rg" --kubernetes-version "1.22.2"

Required Parameters

--name -n

Name of the provisioned cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--kubernetes-version -k

The kubernetes version of the provisioned cluster.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--yes

Flag to disable confirmation prompts.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False