az account lock
管理 Azure 订阅级别锁。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az account lock create |
创建订阅锁。 |
Core | GA |
az account lock delete |
删除订阅锁。 |
Core | GA |
az account lock list |
列出订阅中的锁定信息。 |
Core | GA |
az account lock show |
显示订阅锁的详细信息。 |
Core | GA |
az account lock update |
更新订阅锁。 |
Core | GA |
az account lock create
创建订阅锁。
az account lock create --lock-type {CanNotDelete, ReadOnly}
--name
[--notes]
示例
创建只读订阅级别锁。
az account lock create --lock-type ReadOnly -n lockName
必需参数
锁限制的类型。
属性 | 值 |
---|---|
接受的值: | CanNotDelete, ReadOnly |
锁的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
有关此锁的说明。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account lock delete
删除订阅锁。
az account lock delete [--ids]
[--name]
示例
删除订阅锁
az account lock delete --name lockName
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 如果提供,则不应指定其他“资源 ID”参数。
锁的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account lock list
列出订阅中的锁定信息。
az account lock list [--filter-string]
示例
列出订阅级别上的所有锁
az account lock list
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
用于限制结果的查询筛选器。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account lock show
显示订阅锁的详细信息。
az account lock show [--ids]
[--name]
示例
显示订阅级别锁
az account lock show -n lockname
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 如果提供,则不应指定其他“资源 ID”参数。
锁的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az account lock update
更新订阅锁。
az account lock update [--ids]
[--lock-type {CanNotDelete, ReadOnly}]
[--name]
[--notes]
示例
使用新笔记和类型更新订阅锁
az account lock update --name lockName --notes newNotesHere --lock-type CanNotDelete
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 如果提供,则不应指定其他“资源 ID”参数。
锁限制的类型。
属性 | 值 |
---|---|
接受的值: | CanNotDelete, ReadOnly |
锁的名称。
有关此锁的说明。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |