az account management-group hierarchy-settings
为管理组级别定义的层次结构设置提供作。 只能在层次结构的根管理组上设置设置。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az account management-group hierarchy-settings create |
创建在管理组级别定义的层次结构设置。 |
Core | GA |
| az account management-group hierarchy-settings delete |
删除管理组级别定义的层次结构设置。 |
Core | GA |
| az account management-group hierarchy-settings list |
获取管理组级别定义的所有层次结构设置。 |
Core | GA |
| az account management-group hierarchy-settings update |
更新管理组级别定义的层次结构设置。 |
Core | GA |
az account management-group hierarchy-settings create
创建在管理组级别定义的层次结构设置。
az account management-group hierarchy-settings create --name
[--default-management-group]
[--require-authorization-for-group-creation]
示例
创建在管理组级别定义的层次结构设置。
az account management-group hierarchy-settings create --name GroupName
设置默认的管理组新订阅置于其下。
az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup
要求用户对根目录具有 Microsoft.Management/managementGroups/write 访问权限,以在根目录下创建新的管理组。
az account management-group hierarchy-settings create --name GroupName -r True
更新这两个层次结构设置。
az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True
必需参数
管理组的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
设置在此租户中添加新订阅的默认管理组。 默认设置为根管理组。
指示在根管理组下创建组时是否需要 RBAC 访问。 True 表示用户需要对根管理组执行 Microsoft.Management/managementGroups/write作。 默认设置为 false。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az account management-group hierarchy-settings delete
删除管理组级别定义的层次结构设置。
az account management-group hierarchy-settings delete --name
[--yes]
示例
删除管理组级别定义的所有层次结构设置。
az account management-group hierarchy-settings delete --name GroupName
必需参数
管理组的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az account management-group hierarchy-settings list
获取管理组级别定义的所有层次结构设置。
az account management-group hierarchy-settings list --name
示例
获取管理组级别定义的所有层次结构设置。
az account management-group hierarchy-settings list --name GroupName
必需参数
管理组的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az account management-group hierarchy-settings update
更新管理组级别定义的层次结构设置。
az account management-group hierarchy-settings update --name
[--add]
[--default-management-group]
[--force-string]
[--remove]
[--require-authorization-for-group-creation]
[--set]
示例
创建在管理组级别定义的层次结构设置。
az account management-group hierarchy-settings update --name GroupName
设置默认的管理组新订阅置于其下。
az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup
要求用户对根目录具有 Microsoft.Management/managementGroups/write 访问权限,以在根目录下创建新的管理组。
az account management-group hierarchy-settings update --name GroupName -r True
更新这两个层次结构设置。
az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True
必需参数
管理组的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
设置在此租户中添加新订阅的默认管理组。 默认设置为根管理组。
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | False |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
指示在根管理组下创建组时是否需要 RBAC 访问。 True 表示用户需要对根管理组执行 Microsoft.Management/managementGroups/write作。 默认设置为 false。
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |