az stack-hci extension
Note
This reference is part of the stack-hci extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az stack-hci extension command. Learn more about extensions.
Manage extension with stack hci.
Commands
| az stack-hci extension create |
Create Extension for HCI cluster. |
| az stack-hci extension delete |
Delete particular Arc Extension of HCI Cluster. |
| az stack-hci extension list |
List all Extensions under ArcSetting resource. |
| az stack-hci extension show |
Get particular Arc Extension of HCI Cluster. |
| az stack-hci extension wait |
Place the CLI in a waiting state until a condition of the stack-hci extension is met. |
az stack-hci extension create
Create Extension for HCI cluster.
az stack-hci extension create --arc-setting-name
--cluster-name
--extension-name
--resource-group
[--auto-upgrade {false, true}]
[--created-at]
[--created-by]
[--created-by-type {Application, Key, ManagedIdentity, User}]
[--force-update-tag]
[--last-modified-at]
[--last-modified-by]
[--last-modified-by-type {Application, Key, ManagedIdentity, User}]
[--no-wait]
[--protected-settings]
[--publisher]
[--settings]
[--type]
[--type-handler-version]
Examples
Create Arc Extension
az stack-hci extension create --arc-setting-name "default" --cluster-name "myCluster" --type "MicrosoftMonitoringAgent" --protected-settings "{\"workspaceKey\":\"xx\"}" --publisher "Microsoft.Compute" --settings "{\"workspaceId\":\"xx\"}" --type-handler-version "1.10" --name "MicrosoftMonitoringAgent" --resource-group "test-rg"
Required Parameters
The name of the proxy resource holding details of HCI ArcSetting information.
The name of the cluster.
The name of the machine extension.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
The timestamp of resource creation (UTC).
The identity that created the resource.
The type of identity that created the resource.
How the extension handler should be forced to update even if the extension configuration has not changed.
The timestamp of resource last modification (UTC).
The identity that last modified the resource.
The type of identity that last modified the resource.
Do not wait for the long-running operation to finish.
Protected settings (may contain secrets). Expected value: json-string/json-file/@json-file.
The name of the extension handler publisher.
Json formatted public settings for the extension. Expected value: json-string/json-file/@json-file.
Specifies the type of the extension; an example is "CustomScriptExtension".
Specifies the version of the script handler.
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 extension delete
Delete particular Arc Extension of HCI Cluster.
az stack-hci extension delete --arc-setting-name
--cluster-name
--extension-name
--resource-group
[--no-wait]
[--yes]
Examples
Delete Arc Extension
az stack-hci extension delete --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" --resource-group "test-rg"
Required Parameters
The name of the proxy resource holding details of HCI ArcSetting information.
The name of the cluster.
The name of the machine extension.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
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 extension list
List all Extensions under ArcSetting resource.
az stack-hci extension list --arc-setting-name
--cluster-name
--resource-group
Examples
List Extensions under ArcSetting resource
az stack-hci extension list --arc-setting-name "default" --cluster-name "myCluster" --resource-group "test-rg"
Required Parameters
The name of the proxy resource holding details of HCI ArcSetting information.
The name of the cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 extension show
Get particular Arc Extension of HCI Cluster.
az stack-hci extension show --arc-setting-name
--cluster-name
--extension-name
--resource-group
Examples
Get ArcSettings Extension
az stack-hci extension show --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" --resource-group "test-rg"
Required Parameters
The name of the proxy resource holding details of HCI ArcSetting information.
The name of the cluster.
The name of the machine extension.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 extension wait
Place the CLI in a waiting state until a condition of the stack-hci extension is met.
az stack-hci extension wait --arc-setting-name
--cluster-name
--extension-name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the stack-hci extension is successfully created.
az stack-hci extension wait --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" --resource-group "test-rg" --created
Pause executing next line of CLI script until the stack-hci extension is successfully updated.
az stack-hci extension wait --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" --resource-group "test-rg" --updated
Pause executing next line of CLI script until the stack-hci extension is successfully deleted.
az stack-hci extension wait --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" --resource-group "test-rg" --deleted
Required Parameters
The name of the proxy resource holding details of HCI ArcSetting information.
The name of the cluster.
The name of the machine extension.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
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.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.
Feedback
Submit and view feedback for