az dedicated-hsm
Note
This reference is part of the hardware-security-modules extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az dedicated-hsm command. Learn more about extensions.
Dedicated-hsm to create, update, list, show, and delete HSMs.
Commands
| az dedicated-hsm create |
Create a dedicated HSM in the specified subscription. |
| az dedicated-hsm delete |
Deletes the specified Azure Dedicated HSM. |
| az dedicated-hsm list |
The List operation gets information about the dedicated HSMs associated with the subscription. |
| az dedicated-hsm show |
Gets the specified Azure dedicated HSM. |
| az dedicated-hsm update |
Update a dedicated HSM in the specified subscription. |
| az dedicated-hsm wait |
Waits for operation to complete. |
az dedicated-hsm create
Create a dedicated HSM in the specified subscription.
az dedicated-hsm create --location
--name
--resource-group
[--network-profile-network-interfaces]
[--no-wait]
[--sku]
[--stamp-id]
[--subnet]
[--tags]
[--zones]
Examples
Create a new dedicated HSM
az dedicated-hsm create -n "hsm1" -l "japanwest" -i private-ip-address="1.0.0.1" -s id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/hsm/subnets/hsm" --stamp-id "stamp1" --sku name="SafeNet Luna Network HSM A790" --tags Dept="hsm" Environment="dogfood" -g "hsm-group"
Required Parameters
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Name of the dedicated Hsm.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Specifies a list of ip address from the specfied subnet for the network interfaces associated with the dedicated HSM. Expected value: -i private-ip-address=xx.
Do not wait for the long-running operation to finish.
The HSM device SKU if a non-standard HSM is wanted (default is: SafeNet Luna Network HSM A790).
This field will be used when RP does not support Availability zones.
Specifies the identifier of the subnet. Expected value: id=xx.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
The Dedicated Hsm zones.
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 dedicated-hsm delete
Deletes the specified Azure Dedicated HSM.
az dedicated-hsm delete --name
--resource-group
[--no-wait]
[--yes]
Examples
Delete a dedicated HSM
az dedicated-hsm delete -n "hsm1" -g "hsm-group"
Required Parameters
The name of the dedicated HSM to delete.
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 dedicated-hsm list
The List operation gets information about the dedicated HSMs associated with the subscription.
az dedicated-hsm list [--resource-group]
[--top]
Examples
List dedicated HSM devices in a subscription
az dedicated-hsm list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Maximum number of results to return.
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 dedicated-hsm show
Gets the specified Azure dedicated HSM.
az dedicated-hsm show --name
--resource-group
Examples
Get a dedicated HSM
az dedicated-hsm show -n "hsm1" -g "hsm-group"
Required Parameters
The name of the dedicated HSM.
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 dedicated-hsm update
Update a dedicated HSM in the specified subscription.
az dedicated-hsm update --name
--resource-group
[--no-wait]
[--tags]
Examples
Update an existing dedicated HSM
az dedicated-hsm update -n "hsm1" --tags Dept="hsm" Environment="dogfood" Slice="A" -g "hsm-group"
Required Parameters
Name of the dedicated HSM.
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.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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 dedicated-hsm wait
Waits for operation to complete.
az dedicated-hsm wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Delete a dedicated HSM
az dedicated-hsm wait --created -g "hsm-group" --name "hsm1"
Required Parameters
The name of the dedicated HSM.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ