Κοινή χρήση μέσω


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

--ids

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 -n

Name of disk encryption set.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--system-assigned

Provide this flag to use system assigned identity for disk encryption set. Check out help for more examples.

Accepted values: false, true
--user-assigned

User Assigned Identity ids to be used for disk encryption set. Check out help for more examples.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--ids

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 -n

Name of disk encryption set.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--system-assigned

Provide this flag to use system assigned identity for disk encryption set. Check out help for more examples.

Accepted values: false, true
--user-assigned

User Assigned Identity ids to be used for disk encryption set. Check out help for more examples.

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--ids

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 -n

Name of disk encryption set.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.