az postgres flexible-server microsoft-entra-admin
管理服务器Microsoft Entra 管理员。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az postgres flexible-server microsoft-entra-admin create |
创建Microsoft Entra 管理员。 |
Core | GA |
| az postgres flexible-server microsoft-entra-admin delete |
删除Microsoft Entra 管理员。 |
Core | GA |
| az postgres flexible-server microsoft-entra-admin list |
列出所有Microsoft Entra 管理员。 |
Core | GA |
| az postgres flexible-server microsoft-entra-admin show |
获取Microsoft Entra 管理员。 |
Core | GA |
| az postgres flexible-server microsoft-entra-admin wait |
等待Microsoft Entra 管理员满足某些条件。 |
Core | GA |
az postgres flexible-server microsoft-entra-admin create
创建Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-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-0000-00000000000000“和键入”用户“创建Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin create -g testgroup -s testsvr -u john@contoso.com -i 00000000-0000-0000-0000-000000000000 -t User
必需参数
Microsoft Entra 管理员用户或组的显示名称。
Microsoft Entra 管理员的唯一 ID。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Microsoft Entra 管理员的类型。
| 属性 | 值 |
|---|---|
| 默认值: | User |
| 接受的值: | Group, ServicePrincipal, Unknown, User |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az postgres flexible-server microsoft-entra-admin delete
删除Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin delete --object-id
--resource-group
--server-name
[--no-wait]
[--yes]
示例
Microsoft 删除 ID 为“000000000-0000-0000-0000-0000000000000”的 entra 管理员。
az postgres flexible-server microsoft-entra-admin delete -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000
必需参数
Microsoft Entra 管理员的唯一 ID。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az postgres flexible-server microsoft-entra-admin list
列出所有Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin list --resource-group
--server-name
示例
列出Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin list -g testgroup -s testsvr
必需参数
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az postgres flexible-server microsoft-entra-admin show
获取Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin show --object-id
--resource-group
--server-name
示例
Microsoft 获取 ID 为“000000000-0000-0000-0000-0000000000000”的 entra 管理员。
az postgres flexible-server microsoft-entra-admin show -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000
必需参数
Microsoft Entra 管理员的唯一 ID。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az postgres flexible-server microsoft-entra-admin wait
等待Microsoft Entra 管理员满足某些条件。
az postgres flexible-server microsoft-entra-admin wait --object-id
--resource-group
--server-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
示例
等待Microsoft Entra 管理员存在。
az postgres flexible-server microsoft-entra-admin wait -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000 --exists
等待删除Microsoft Entra 管理员。
az postgres flexible-server microsoft-entra-admin wait -g testgroup -s testsvr -i 00000000-0000-0000-0000-000000000000 --deleted
必需参数
Microsoft Entra 管理员的唯一 ID。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
服务器的名称。 名称只能包含小写字母、数字和连字符 (-)。 最少 3 个字符,最多 63 个字符。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |