az account management-group
管理 Azure 管理组。
命令
az account management-group check-name-availability
检查管理组名称是否有效。
az account management-group check-name-availability --name
示例
检查管理组名称是否有效。
az account management-group check-name-availability --name GroupName
必需参数
管理组的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account management-group create
创建新的管理组。
az account management-group create --name
[--display-name]
[--no-register]
[--parent]
示例
创建新的管理组。
az account management-group create --name GroupName
创建具有特定显示名称的新管理组。
az account management-group create --name GroupName --display-name DisplayName
使用特定父级创建新的管理组。
az account management-group create --name GroupName --parent ParentId/ParentName
创建具有特定显示名称和父级的新管理组。
az account management-group create --name GroupName --display-name DisplayName --parent ParentId/ParentName
必需参数
管理组的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
设置管理组的显示名称。 如果为 null,则组名称设置为显示名称。
跳过资源提供程序 Microsoft.Management 的注册。
属性 | 值 |
---|---|
默认值: | False |
设置管理组的父级。 可以是完全限定的 ID 或管理组的名称。 如果为 null,则将根租户组设置为父级。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account management-group delete
删除现有管理组。
az account management-group delete --name
[--no-register]
示例
删除现有管理组
az account management-group 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.
跳过资源提供程序 Microsoft.Management 的注册。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account management-group list
列出当前租户中的所有管理组。
az account management-group list [--no-register]
示例
列出所有管理组
az account management-group list
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
跳过资源提供程序 Microsoft.Management 的注册。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account management-group show
获取管理组的详细信息。
az account management-group show --name
[--expand]
[--no-register]
[--recurse]
示例
获取管理组。
az account management-group show --name GroupName
获取具有层次结构第一级子级的管理组。
az account management-group show --name GroupName -e
获取层次结构的所有级别的子级的管理组。
az account management-group show --name GroupName -e -r
必需参数
管理组的名称(资源 ID 的最后一段)。 请勿使用显示名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
如果给定,则列出层次结构的第一个级别的子级。
属性 | 值 |
---|---|
默认值: | False |
跳过资源提供程序 Microsoft.Management 的注册。
属性 | 值 |
---|---|
默认值: | False |
如果给定,则列出层次结构的所有级别的子级。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account management-group update
更新现有管理组。
az account management-group update --name
[--add]
[--display-name]
[--force-string]
[--parent]
[--remove]
[--set]
示例
使用特定的显示名称更新现有管理组。
az account management-group update --name GroupName --display-name DisplayName
使用特定父级更新现有管理组。
az account management-group update --name GroupName --parent ParentId/ParentName
使用特定的显示名称和父级更新现有管理组。
az account management-group update --name GroupName --display-name DisplayName --parent ParentId/ParentName
必需参数
管理组的名称。
可选参数
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 |
默认值: | [] |
更新管理组的显示名称。 如果为 null,则不进行更改。
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | False |
更新管理组的父级。 可以是完全限定的 ID 或管理组的名称。 如果为 null,则不进行更改。
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | [] |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>
。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | [] |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |