你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az postgres flexible-server ad-admin

管理服务器 Active Directory 管理员。

命令

名称 说明 类型 状态
az postgres flexible-server ad-admin create

创建 Active Directory 管理员。

核心 GA
az postgres flexible-server ad-admin delete

删除 Active Directory 管理员。

核心 GA
az postgres flexible-server ad-admin list

列出所有 Active Directory 管理员。

核心 GA
az postgres flexible-server ad-admin show

获取 Active Directory 管理员。

核心 GA
az postgres flexible-server ad-admin wait

等待 Active Directory 管理员满足某些条件。

核心 GA

az postgres flexible-server ad-admin create

创建 Active Directory 管理员。

az postgres flexible-server ad-admin create --display-name
                                            --object-id
                                            --resource-group
                                            --server-name
                                            [--no-wait]
                                            [--type {Group, ServicePrincipal, Unknown, User}]

示例

使用用户“john@contoso.com”、“管理员 ID 为”00000000-0000-0000-0000-0000000000000“创建 Active Directory 管理员,并键入”用户”。

az postgres flexible-server ad-admin create -g testgroup -s testsvr -u john@contoso.com -i 00000000-0000-0000-0000-000000000000 -t User

必需参数

--display-name -u

Azure AD 管理员用户或组的显示名称。

--object-id -i

Azure AD 管理员的唯一 ID。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--server-name -s

服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。

可选参数

--no-wait

不等待长时间运行的操作完成。

默认值: False
--type -t

Azure AD 管理员的类型。

接受的值: Group, ServicePrincipal, Unknown, User
默认值: User
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az postgres flexible-server ad-admin delete

删除 Active Directory 管理员。

az postgres flexible-server ad-admin delete --object-id
                                            --resource-group
                                            --server-name
                                            [--no-wait]
                                            [--yes]

示例

删除 ID 为“000000000-0000-0000-0000-000000000000”的 Active Directory 管理员。

az postgres flexible-server ad-admin delete -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000

必需参数

--object-id -i

Azure AD 管理员的唯一 ID。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--server-name -s

服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。

可选参数

--no-wait

不等待长时间运行的操作完成。

默认值: False
--yes -y

不提示确认。

默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az postgres flexible-server ad-admin list

列出所有 Active Directory 管理员。

az postgres flexible-server ad-admin list --resource-group
                                          --server-name

示例

列出 Active Directory 管理员。

az postgres flexible-server ad-admin list -g testgroup -s testsvr

必需参数

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--server-name -s

服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az postgres flexible-server ad-admin show

获取 Active Directory 管理员。

az postgres flexible-server ad-admin show --object-id
                                          --resource-group
                                          --server-name

示例

获取 ID 为“000000000-0000-0000-0000-000000000000”的 Active Directory 管理员。

az postgres flexible-server ad-admin show -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000

必需参数

--object-id -i

Azure AD 管理员的唯一 ID。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--server-name -s

服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az postgres flexible-server ad-admin wait

等待 Active Directory 管理员满足某些条件。

az postgres flexible-server ad-admin wait --object-id
                                          --resource-group
                                          --server-name
                                          [--created]
                                          [--custom]
                                          [--deleted]
                                          [--exists]
                                          [--interval]
                                          [--timeout]
                                          [--updated]

示例

等待 Active Directory 管理员存在。

az postgres flexible-server ad-admin wait -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000 --exists

等待 Active Directory 管理员删除。

az postgres flexible-server ad-admin wait -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000 --deleted

必需参数

--object-id -i

Azure AD 管理员的唯一 ID。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--server-name -s

服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。

可选参数

--created

等待在“Succeeded”中使用“provisioningState”创建。

默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到删除为止。

默认值: False
--exists

等待资源存在。

默认值: False
--interval

轮询间隔(以秒为单位)。

默认值: 30
--timeout

最大等待(以秒为单位)。

默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。