az aksarc
Note
This reference is part of the aksarc extension for the Azure CLI (version 2.32.0 or higher). The extension automatically installs the first time you run an az aksarc command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage provisioned clusters.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az aksarc create |
Creates the provisioned cluster. |
Extension | Preview |
| az aksarc delete |
Deletes the provisioned cluster. |
Extension | Preview |
| az aksarc get-credentials |
Gets local kubeconfig of the provisioned cluster. |
Extension | Preview |
| az aksarc list |
Lists the provisioned clusters in a resource group or in a subscription. |
Extension | Preview |
| az aksarc logs |
Collects logs from provisioned clusters. |
Extension | Preview |
| az aksarc logs hci |
Collects logs from provisioned clusters in HCI environment. |
Extension | Preview |
| az aksarc nodepool |
Manages node pools in a provisioned cluster. |
Extension | Preview |
| az aksarc nodepool add |
Adds a node pool in the provisioned cluster. |
Extension | Preview |
| az aksarc nodepool delete |
Deletes the nodepool in the provisioned cluster. |
Extension | Preview |
| az aksarc nodepool list |
Lists all the node pools in the provisioned cluster. |
Extension | Preview |
| az aksarc nodepool scale |
Scales the node pool in the provisioned cluster. |
Extension | Preview |
| az aksarc nodepool show |
Gets the node pool in the provisioned cluster. |
Extension | Preview |
| az aksarc notice |
Outputs NOTICE file to user-specified filepath. |
Extension | Preview |
| az aksarc show |
Gets the provisioned cluster. |
Extension | Preview |
| az aksarc update |
Updates the provisioned cluster. |
Extension | Preview |
| az aksarc vmsize |
Manages virtual machine SKUs for provisioned clusters. |
Extension | Preview |
| az aksarc vmsize list |
Lists the supported virtual machine sizes in the specified custom location. |
Extension | Preview |
| az aksarc vnet |
Manages virtual networks for provisioned clusters. |
Extension | Preview |
| az aksarc vnet create |
Creates the virtual network. |
Extension | Preview |
| az aksarc vnet delete |
Deletes the virtual network. |
Extension | Preview |
| az aksarc vnet list |
Lists the virtual networks by resource group or subscription. |
Extension | Preview |
| az aksarc vnet show |
Gets the virtual network. |
Extension | Preview |
az aksarc create
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Creates the provisioned cluster.
az aksarc create --custom-location
--name
--resource-group
[--aad-admin-group-object-ids]
[--control-plane-count]
[--control-plane-ip]
[--control-plane-vm-size]
[--enable-ahub]
[--enable-azure-rbac]
[--generate-ssh-keys]
[--kubernetes-version]
[--load-balancer-count]
[--location]
[--no-wait]
[--node-count]
[--node-vm-size]
[--pod-cidr]
[--ssh-key-value]
[--tags]
[--vnet-ids]
Examples
PutProvisionedCluster
az aksarc create -g sample-rg --custom-location sample-cl -n sample-aksarccluster --vnet-ids "vnet-arm-id"
Required Parameters
Name or ID of the custom location to use for the provisioned cluster.
Name of the provisioned cluster.
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.
Comma-separated list of aad group object IDs that will be set as cluster admin on the provisioned cluster.
Number of control plane nodes.
API server IP address for the control plane.
VM size of control plane.
Enable Azure Hybrid User Benefits (AHUB) for the provisioned cluster.
| Property | Value |
|---|---|
| Default value: | False |
Enable Azure RBAC to control authorization checks on cluster.
| Property | Value |
|---|---|
| Default value: | False |
Generate ssh key-pair if not present.
| Property | Value |
|---|---|
| Default value: | False |
The Kubernetes version of the provisioned cluster.
Number of load balancer nodes.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Number of nodes to be created in the node pool.
| Property | Value |
|---|---|
| Default value: | 1 |
VM size of the nodes in the node pool.
The CIDR notation IP ranges from which to assign pod IPs.
Path to the SSH public key to be injected into the control plane.
| Property | Value |
|---|---|
| Default value: | ~\.ssh\id_rsa.pub |
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Azure Resource Manager resource ID(s) of the VNets.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc delete
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Deletes the provisioned cluster.
az aksarc delete --name
--resource-group
[--no-wait]
[--yes]
Examples
DeleteProvisionedCluster
az aksarc delete --name "sample-aksarccluster" --resource-group "sample-rg"
Required Parameters
Name of the provisioned cluster.
Name of the 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.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc get-credentials
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Gets local kubeconfig of the provisioned cluster.
az aksarc get-credentials --name
--resource-group
[--admin]
[--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 of the provisioned cluster.
Name of the 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.
Gets cluster administrator credentials.
| Property | Value |
|---|---|
| Default value: | False |
If specified, overwrites the default context name.
Kubernetes configuration file to update. If not provided, updates the file '~/.kube/config'.
| Property | Value |
|---|---|
| Default value: | ~\.kube\config |
Overwrites any existing cluster entry with the same name.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc list
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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.
Name of the resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc notice
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Outputs NOTICE file to user-specified filepath.
az aksarc notice --output-filepath
Examples
GetNoticeFile
az aksarc notice --output-filepath "./Notice"
Required Parameters
Outputs filepath for NOTICE file.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc show
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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 of the provisioned cluster.
Name of the resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az aksarc update
Command group 'aksarc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Updates the provisioned cluster.
az aksarc update --name
--resource-group
[--aad-admin-group-object-ids]
[--control-plane-count]
[--disable-ahub]
[--enable-ahub]
[--tags]
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
Disables the Azure Hybrid User Benefits feature for a provisioned cluster.
az aksarc update --name "sample-aksarccluster" --resource-group "sample-rg"--disable-ahub
Scales up Control Plane nodes.
az aksarc update --name "sample-aksarccluster" --resource-group "sample-rg" --control-plane-node-count 5
Required Parameters
Name of the provisioned cluster.
Name of the 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.
Comma-separated list of aad group object IDs that will be set as cluster admin on the provisioned cluster.
Number of nodes to which to scale the Control Plane.
Disables Azure Hybrid User Benefits (AHUB) for the provisioned cluster.
| Property | Value |
|---|---|
| Default value: | False |
Enables Azure Hybrid User Benefits (AHUB) for the provisioned cluster.
| Property | Value |
|---|---|
| Default value: | False |
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.commands:
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.