az postgres server ad-admin
Manage a postgres server's Active Directory administrator.
Commands
Name | Description | Type | Status |
---|---|---|---|
az postgres server ad-admin create |
Create an Active Directory Administrator for PostgreSQL server. |
Core | GA |
az postgres server ad-admin delete |
Delete an Active Directory Administrator for PostgreSQL server. |
Core | GA |
az postgres server ad-admin list |
List all Active Directory Administrators for PostgreSQL server. |
Core | GA |
az postgres server ad-admin show |
Get Active Directory Administrator information for a PostgreSQL server. |
Core | GA |
az postgres server ad-admin wait |
Place the CLI in a waiting state until a condition of the PostgreSQL server Active Directory Administrator is met. |
Core | GA |
az postgres server ad-admin create
Create an Active Directory Administrator for PostgreSQL server.
az postgres server ad-admin create --resource-group
--server-name
[--display-name]
[--no-wait]
[--object-id]
Examples
Create Active Directory Administrator username@domain.com in server testsvr.
az postgres server ad-admin create --server-name testsvr -g testgroup --display-name username@domain.com --object-id 1FCD6583-267B-4484-BF9B-507E4B62DE79
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 of the Azure AD administrator user or group.
Do not wait for the long-running operation to finish.
The unique ID of the Azure AD administrator.
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 postgres server ad-admin delete
Delete an Active Directory Administrator for PostgreSQL server.
az postgres server ad-admin delete [--ids]
[--resource-group]
[--server-name]
[--subscription]
[--yes]
Examples
Delete Active Directory Administrator in server testsvr.
az postgres server ad-admin delete --server-name testsvr -g testgroup
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 resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 postgres server ad-admin list
List all Active Directory Administrators for PostgreSQL server.
az postgres server ad-admin list [--ids]
[--resource-group]
[--server-name]
[--subscription]
Examples
List all Active Directory Administrators in server testsvr.
az postgres server ad-admin list --server-name testsvr -g testgroup
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 resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
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.
az postgres server ad-admin show
Get Active Directory Administrator information for a PostgreSQL server.
az postgres server ad-admin show [--ids]
[--resource-group]
[--server-name]
[--subscription]
Examples
Get Active Directory Administrator in server testsvr.
az postgres server ad-admin show --server-name testsvr -g testgroup
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 resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
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.
az postgres server ad-admin wait
Place the CLI in a waiting state until a condition of the PostgreSQL server Active Directory Administrator is met.
az postgres 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 postgres server ad-admin wait --server-name testsvr -g testgroup --created
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
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.
Polling interval in seconds.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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