az mysql server ad-admin

Manage a MySQL server's Active Directory administrator.

Commands

az mysql server ad-admin create

Create an Active Directory administrator for MySQL server.

az mysql server ad-admin delete

Delete an Active Directory Administrator for MySQL server.

az mysql server ad-admin list

List all Active Directory Administrators for MySQL server.

az mysql server ad-admin show

Get Active Directory Administrator information for a MySQL server.

az mysql server ad-admin wait

Place the CLI in a waiting state until a condition of the MySQL server Active Directory Administrator is met.

az mysql server ad-admin create

Create an Active Directory administrator for MySQL server.

az mysql server ad-admin create --resource-group
                                --server-name
                                [--display-name]
                                [--no-wait]
                                [--object-id]
                                [--subscription]

Examples

Crate Active Directory Administrator username@domain.com in the server testsvr.

az mysql server ad-admin create --server-name testsvr -g testgroup --display-name username@domain.com --object-id 1FCD6583-267B-4484-BF9B-507E4B62DE79

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.

Optional Parameters

--display-name -u

Display name of the Azure AD administrator user or group.

--no-wait

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

--object-id -i

The unique ID of the Azure AD administrator.

--subscription

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

az mysql server ad-admin delete

Delete an Active Directory Administrator for MySQL server.

az mysql server ad-admin delete [--ids]
                                [--resource-group]
                                [--server-name]
                                [--subscription]
                                [--yes]

Examples

Delete Active Directory Administrator in the server testsvr.

az mysql server ad-admin delete --server-name testsvr -g testgroup

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.

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

--subscription

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

--yes -y

Do not prompt for confirmation.

az mysql server ad-admin list

List all Active Directory Administrators for MySQL server.

az mysql server ad-admin list [--ids]
                              [--query-examples]
                              [--resource-group]
                              [--server-name]
                              [--subscription]

Examples

List all Active Directory Administrators in the server testsvr.

az mysql server ad-admin list --server-name testsvr -g testgroup

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.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

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

--subscription

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

az mysql server ad-admin show

Get Active Directory Administrator information for a MySQL server.

az mysql server ad-admin show [--ids]
                              [--query-examples]
                              [--resource-group]
                              [--server-name]
                              [--subscription]

Examples

Get Active Directory Administrator in the server testsvr.

az mysql server ad-admin show --server-name testsvr -g testgroup

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.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

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

--subscription

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

az mysql server ad-admin wait

Place the CLI in a waiting state until a condition of the MySQL server Active Directory Administrator is met.

az mysql server ad-admin wait [--created]
                              [--custom]
                              [--deleted]
                              [--exists]
                              [--ids]
                              [--interval]
                              [--resource-group]
                              [--server-name]
                              [--subscription]
                              [--timeout]
                              [--updated]

Examples

Place the CLI in a waiting state until a creation of Active Directory Administrator in server testsvr.

az mysql server ad-admin wait --server-name testsvr -g testgroup --created

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

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

--interval

Polling interval in seconds.

default value: 30
--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.

--subscription

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

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.