az managedservices assignment
在 Azure 中管理注册分配。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az managedservices assignment create |
创建注册分配。 |
Core | GA |
az managedservices assignment delete |
删除注册分配。 |
Core | GA |
az managedservices assignment list |
列出所有注册分配。 |
Core | GA |
az managedservices assignment show |
显示注册分配。 |
Core | GA |
az managedservices assignment wait |
将 CLI 置于等待状态,直到满足条件。 |
Core | GA |
az managedservices assignment create
创建注册分配。
az managedservices assignment create --definition
[--assignment-id]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
示例
在默认订阅范围下创建分配。
az managedservices assignment create --definition "/subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationDefinitions/0c3e9687-b461-4615-b6e4-74d54998d6e4"
在给定的资源组范围下创建分配。
az managedservices assignment create --definition "/subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationDefinitions/0c3e9687-b461-4615-b6e4-74d54998d6e4" --resource-group mygroup
必需参数
注册定义的完全限定路径。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
可用于替代生成的注册分配 ID。
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az managedservices assignment delete
删除注册分配。
az managedservices assignment delete --assignment
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--yes]
示例
在默认订阅范围下删除给定其标识符的分配。
az managedservices assignment delete --assignment d3087cf0-e180-4cca-b147-54ae00c7b504
删除给定其完全限定资源 ID 的分配
az managedservices assignment delete --assignment /subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationAssignments/0c3e9687-b461-4615-b6e4-74d54998d6e4
必需参数
注册分配的标识符(guid)或完全限定的资源 ID。 使用资源 ID 时,将忽略订阅 ID 和资源组参数。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
不要提示确认。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az managedservices assignment list
列出所有注册分配。
az managedservices assignment list [--include-definition {0, 1, f, false, n, no, t, true, y, yes}]
[--max-items]
[--next-token]
[--resource-group]
示例
列出默认范围下的所有注册分配。
az managedservices assignment list
列出给定资源组下的所有注册分配。
az managedservices assignment list --resource-group mygroup
列出默认范围下的所有注册分配以及关联的注册定义详细信息。
az managedservices assignment list --include-definition true
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
告知是否还返回注册定义详细信息以及注册分配详细信息。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token
参数中提供令牌值。
属性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
属性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az managedservices assignment show
显示注册分配。
az managedservices assignment show --assignment
[--include-definition {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
示例
在默认订阅范围下显示给定其标识符的分配。
az managedservices assignment show --assignment d3087cf0-e180-4cca-b147-54ae00c7b504
显示给定其完全限定的资源 ID 的分配。
az managedservices assignment show --assignment /subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationAssignments/0c3e9687-b461-4615-b6e4-74d54998d6e4
使用注册定义详细信息在默认订阅范围下显示给定标识符的分配。
az managedservices assignment show --assignment d3087cf0-e180-4cca-b147-54ae00c7b504 --include-definition true
必需参数
注册分配的标识符(guid)或完全限定的资源 ID。 使用资源 ID 时,将忽略订阅 ID 和资源组参数。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
告知是否还返回注册定义详细信息以及注册分配详细信息。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az managedservices assignment wait
将 CLI 置于等待状态,直到满足条件。
az managedservices assignment wait --assignment
--scope
[--created]
[--custom]
[--deleted]
[--exists]
[--include-definition {0, 1, f, false, n, no, t, true, y, yes}]
[--interval]
[--timeout]
[--updated]
必需参数
注册分配的标识符(guid)或完全限定的资源 ID。 使用资源 ID 时,将忽略订阅 ID 和资源组参数。
资源的范围。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
等待在“Succeeded”中使用“provisioningState”创建。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
等到删除为止。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
等待资源存在。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
告知是否还返回注册定义详细信息以及注册分配详细信息。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
轮询间隔(以秒为单位)。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | 30 |
最大等待(以秒为单位)。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |