แชร์ผ่าน


az mysql flexible-server identity

Manage server user assigned identities.

Commands

Name Description Type Status
az mysql flexible-server identity assign

Add user asigned managed identities to the server.

Core GA
az mysql flexible-server identity list

List all user assigned managed identities from the server.

Core GA
az mysql flexible-server identity remove

Remove user asigned managed identites from the server.

Core GA
az mysql flexible-server identity show

Get an user assigned managed identity from the server.

Core GA

az mysql flexible-server identity assign

Add user asigned managed identities to the server.

az mysql flexible-server identity assign --identity
                                         --resource-group
                                         --server-name
                                         [--no-wait]

Examples

Add identities 'test-identity' and 'test-identity-2' to server 'testsvr'.

az mysql flexible-server identity assign -g testgroup -s testsvr --identity test-identity test-identity-2

Required Parameters

--identity -n

Space-separated names or ID's of identities.

--resource-group -g

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

--server-name -s

Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

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 mysql flexible-server identity list

List all user assigned managed identities from the server.

az mysql flexible-server identity list --resource-group
                                       --server-name

Examples

List all identities from server 'testsvr'.

az mysql flexible-server identity list -g testgroup -s testsvr

Required Parameters

--resource-group -g

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

--server-name -s

Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.

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 mysql flexible-server identity remove

Remove user asigned managed identites from the server.

az mysql flexible-server identity remove --identity
                                         --resource-group
                                         --server-name
                                         [--no-wait]
                                         [--yes]

Examples

Remove identity 'test-identity' from server 'testsvr'.

az mysql flexible-server identity remove -g testgroup -s testsvr --identity test-identity

Required Parameters

--identity -n

Space-separated names or ID's of identities.

--resource-group -g

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

--server-name -s

Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--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 mysql flexible-server identity show

Get an user assigned managed identity from the server.

az mysql flexible-server identity show --identity
                                       --resource-group
                                       --server-name

Examples

Get identity 'test-identity' from server 'testsvr'.

az mysql flexible-server identity show -g testgroup -s testsvr --identity test-identity

Required Parameters

--identity -n

Name or ID of identity to show.

--resource-group -g

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

--server-name -s

Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.

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.