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 [--disk-encryption-set-name --name]
[--ids]
[--resource-group]
[--subscription]
[--system-assigned {0, 1, f, false, n, no, t, true, y, yes}]
[--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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of disk encryption set.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Provide this flag to use system assigned identity.
Property | Value |
---|---|
Parameter group: | Managed Identity Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Managed Identity Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
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.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az disk-encryption-set identity remove
Remove managed identities from an existing disk encryption set.
az disk-encryption-set identity remove [--disk-encryption-set-name --name]
[--ids]
[--resource-group]
[--subscription]
[--system-assigned {0, 1, f, false, n, no, t, true, y, yes}]
[--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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of disk encryption set.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Provide this flag to use system assigned identity.
Property | Value |
---|---|
Parameter group: | Managed Identity Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Managed Identity Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
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.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of disk encryption set.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
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.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |