az stack-hci cluster
Note
This reference is part of the stack-hci extension for the Azure CLI (version 2.54.0 or higher). The extension will automatically install the first time you run an az stack-hci cluster command. Learn more about extensions.
Manage cluster with stack hci.
Commands
Name | Description | Type | Status |
---|---|---|---|
az stack-hci cluster create |
Create an HCI cluster. |
Extension | GA |
az stack-hci cluster create-identity |
Create cluster identity. |
Extension | GA |
az stack-hci cluster delete |
Delete an HCI cluster. |
Extension | GA |
az stack-hci cluster extend-software-assurance-benefit |
Extend Software Assurance Benefit to a cluster. |
Extension | GA |
az stack-hci cluster identity |
Manage identity. |
Extension | GA |
az stack-hci cluster identity assign |
Assign identities. |
Extension | GA |
az stack-hci cluster identity remove |
Remove identities. |
Extension | GA |
az stack-hci cluster list |
List all HCI clusters in a subscription. |
Extension | GA |
az stack-hci cluster show |
Get HCI cluster. |
Extension | GA |
az stack-hci cluster update |
Update an HCI cluster. |
Extension | GA |
az stack-hci cluster wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az stack-hci cluster create
Create an HCI cluster.
az stack-hci cluster create --cluster-name
--resource-group
[--aad-application-object-id]
[--aad-client-id]
[--aad-service-principal-object-id]
[--aad-tenant-id]
[--desired-properties]
[--endpoint]
[--location]
[--mi-system-assigned {0, 1, f, false, n, no, t, true, y, yes}]
[--tags]
Examples
Create cluster
az stack-hci cluster create --location "East US" --aad-client-id "24a6e53d-04e5-44d2-b7cc-1b732a847dfc" --aad-tenant-id "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" --endpoint "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com" --name "myCluster" --resource- group "test-rg"
Required Parameters
The name of the cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Object id of cluster AAD identity.
App id of cluster AAD identity.
Id of cluster identity service principal.
Tenant id of cluster AAD identity.
Desired properties of the cluster. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Endpoint configured for management from the Azure portal.
The geo-location where the resource lives When not specified, the location of the resource group will be used.
Enable system assigned identity.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster create-identity
Create cluster identity.
az stack-hci cluster create-identity [--cluster-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
Examples
Create cluster identity
az stack-hci cluster create-identity --name "myCluster" --resource-group "test-rg"
Optional Parameters
The name of the cluster.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster delete
Delete an HCI cluster.
az stack-hci cluster delete [--cluster-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete cluster
az stack-hci cluster delete --name "myCluster" --resource-group "test-rg"
Optional Parameters
The name of the cluster.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster extend-software-assurance-benefit
Extend Software Assurance Benefit to a cluster.
az stack-hci cluster extend-software-assurance-benefit [--cluster-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--software-assurance-intent {Disable, Enable}]
[--subscription]
Examples
Extend software assurance benefit
az stack-hci cluster extend-software-assurance-benefit --cluster-name name -g rg --software-assurance-intent enable
Optional Parameters
The name of the cluster.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Customer Intent for Software Assurance Benefit.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster list
List all HCI clusters in a subscription.
az stack-hci cluster list [--max-items]
[--next-token]
[--resource-group]
Examples
List clusters in a given resource group
az stack-hci cluster list --resource-group "test-rg"
List clusters in a given subscription
az stack-hci cluster list
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Name of 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.
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 stack-hci cluster show
Get HCI cluster.
az stack-hci cluster show [--cluster-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Get cluster
az stack-hci cluster show --name "myCluster" --resource-group "test-rg"
Optional Parameters
The name of the cluster.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster update
Update an HCI cluster.
az stack-hci cluster update [--aad-client-id]
[--aad-tenant-id]
[--add]
[--cluster-name]
[--desired-properties]
[--endpoint]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
Examples
Update cluster
az stack-hci cluster update --endpoint "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com" --desired-properties "{diagnosticLevel:Basic,windowsServerSubscription:Enabled}" --tags "tag:"value" --name "myCluster" --resource-group "test-rg"
Optional Parameters
App id of cluster AAD identity.
Tenant id of cluster AAD identity.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
The name of the cluster.
Desired properties of the cluster. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Endpoint configured for management from the Azure portal.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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 stack-hci cluster wait
Place the CLI in a waiting state until a condition is met.
az stack-hci cluster wait [--cluster-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The name of the cluster.
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.