az disk-encryption-set identity
Manage identities of a disk encryption set.
Commands
Name | Description | Type | Status |
---|---|---|---|
az disk-encryption-set identity assign |
Add managed identities to an existing disk encryption set. |
Core | GA |
az disk-encryption-set identity remove |
Remove managed identities from an existing disk encryption set. |
Core | GA |
az disk-encryption-set identity show |
Display managed identities of a disk encryption set. |
Core | GA |
az disk-encryption-set identity assign
Add managed identities to an existing disk encryption set.
az disk-encryption-set identity assign [--ids]
[--name]
[--resource-group]
[--subscription]
[--system-assigned {false, true}]
[--user-assigned]
Examples
Add a system assigned managed identity to an existing disk encryption set.
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned
Add a user assigned managed identity to an existing disk encryption set.
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId
Add system assigned identity and a user assigned managed identity to an existing disk encryption set.
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned --user-assigned MyAssignedId
Optional Parameters
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 disk encryption set.
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
.
Provide this flag to use system assigned identity for disk encryption set. Check out help for more examples.
User Assigned Identity ids to be used for disk encryption set. Check out help for more examples.
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 disk-encryption-set identity remove
Remove managed identities from an existing disk encryption set.
az disk-encryption-set identity remove [--ids]
[--name]
[--resource-group]
[--subscription]
[--system-assigned {false, true}]
[--user-assigned]
[--yes]
Examples
Remove a system assigned managed identity from an existing disk encryption set.
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned
Remove a user assigned managed identity from an existing disk encryption set.
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId
Remove all user assigned managed identities from an existing disk encryption set.
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned
Optional Parameters
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 disk encryption set.
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
.
Provide this flag to use system assigned identity for disk encryption set. Check out help for more examples.
User Assigned Identity ids to be used for disk encryption set. Check out help for more examples.
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 disk-encryption-set identity show
Display managed identities of a disk encryption set.
az disk-encryption-set identity show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Display managed identities of a disk encryption set.
az disk-encryption-set identity show --name MyDiskEncryptionSet --resource-group MyResourceGroup
Optional Parameters
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 disk encryption set.
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.
Azure CLI