你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
az automanage configuration-profile-assignment cluster
注意
此参考是 Azure CLI(版本 2.44.1 或更高版本)的自动管理扩展的一部分。 该扩展将在首次运行 az automanage configuration-profile-assignment cluster 命令时自动安装。 详细了解扩展。
管理 AzureStackHCI 群集与 Automanage 配置文件之间的关联。
命令
名称 | 说明 | 类型 | 状态 |
---|---|---|---|
az automanage configuration-profile-assignment cluster create |
在 AzureStackHCI 群集与 Automanage 配置文件之间创建关联。 |
扩展 | GA |
az automanage configuration-profile-assignment cluster delete |
删除 AzureStackHCI 群集与 Automanage 配置文件之间的关联。 |
扩展 | GA |
az automanage configuration-profile-assignment cluster report |
在给定的 AzureStackHCI 群集配置文件分配中管理报表。 |
分机 | GA |
az automanage configuration-profile-assignment cluster report list |
列出给定 AzureStackHCI 群集配置文件分配中的报表。 |
分机 | GA |
az automanage configuration-profile-assignment cluster report show |
获取与 AzureStackHCI 群集配置文件分配运行关联的报表的信息。 |
分机 | GA |
az automanage configuration-profile-assignment cluster show |
获取有关 AzureStackHCI 群集与 Automanage 配置文件之间的关联的信息。 |
分机 | GA |
az automanage configuration-profile-assignment cluster update |
更新 AzureStackHCI 群集与 Automanage 配置文件之间的关联。 |
扩展 | GA |
az automanage configuration-profile-assignment cluster create
在 AzureStackHCI 群集与 Automanage 配置文件之间创建关联。
az automanage configuration-profile-assignment cluster create --cluster-name
--configuration-profile-assignment-name
--resource-group
[--configuration-profile]
示例
为群集创建 configuration-profile-assignment
az automanage configuration-profile-assignment cluster create -n default -g {rg} --cluster-name {cluster_name} --configuration-profile {profile_id}
必需参数
Arc 计算机的名称。
配置文件分配的名称。 仅支持默认值。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
Automanage configurationProfile ARM 资源 URI。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az automanage configuration-profile-assignment cluster delete
删除 AzureStackHCI 群集与 Automanage 配置文件之间的关联。
az automanage configuration-profile-assignment cluster delete [--cluster-name]
[--configuration-profile-assignment-name]
[--ids]
[--resource-group]
[--subscription]
[--yes]
示例
删除 configuration-profile-assignment 群集
az automanage configuration-profile-assignment cluster delete -n default -g {rg} --cluster-name {cluster_name}
可选参数
Arc 计算机的名称。
配置文件分配的名称。
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
不提示确认。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az automanage configuration-profile-assignment cluster show
获取有关 AzureStackHCI 群集与 Automanage 配置文件之间的关联的信息。
az automanage configuration-profile-assignment cluster show [--cluster-name]
[--configuration-profile-assignment-name]
[--ids]
[--resource-group]
[--subscription]
示例
显示群集的 configuration-profile-assignment
az automanage configuration-profile-assignment cluster show -n default -g {rg} --cluster-name {cluster_name}
可选参数
Arc 计算机的名称。
配置文件分配名称。
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az automanage configuration-profile-assignment cluster update
更新 AzureStackHCI 群集与 Automanage 配置文件之间的关联。
az automanage configuration-profile-assignment cluster update [--add]
[--cluster-name]
[--configuration-profile]
[--configuration-profile-assignment-name]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--remove]
[--resource-group]
[--set]
[--subscription]
示例
更新 configuration-profile-assignment 群集
az automanage configuration-profile-assignment cluster update --n default -g {rg} --cluster-name {cluster_name} --configuration-profile {profile_id_2}
可选参数
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value、string 或 JSON 字符串>。
Arc 计算机的名称。
Automanage configurationProfile ARM 资源 URI。
配置文件分配名称。
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
从列表中删除属性或元素。 示例:--remove property.list OR --remove propertyToRemove。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。