az servicebus queue authorization-rule keys
Servicebus 队列授权规则密钥。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az servicebus queue authorization-rule keys list |
队列的主连接字符串和辅助连接字符串。 |
Core | GA |
| az servicebus queue authorization-rule keys renew |
将主连接字符串或辅助连接字符串重新生成到队列。 |
Core | GA |
az servicebus queue authorization-rule keys list
队列的主连接字符串和辅助连接字符串。
az servicebus queue authorization-rule keys list --authorization-rule-name --name
--namespace-name
--queue-name
--resource-group
示例
列出给定服务总线队列的授权规则的密钥和连接字符串
az servicebus queue authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule
必需参数
授权规则名称。
命名空间名称。
队列名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az servicebus queue authorization-rule keys renew
将主连接字符串或辅助连接字符串重新生成到队列。
az servicebus queue authorization-rule keys renew --key {PrimaryKey, SecondaryKey}
[--authorization-rule-name --name]
[--ids]
[--key-value]
[--namespace-name]
[--queue-name]
[--resource-group]
[--subscription]
示例
为服务总线队列重新生成授权规则的密钥
az servicebus queue authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule --key PrimaryKey
必需参数
要重新生成的访问密钥。
| 属性 | 值 |
|---|---|
| Parameter group: | Parameters Arguments |
| 接受的值: | PrimaryKey, SecondaryKey |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
授权规则名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
(如果提供的键值)为 KeyType 值重置,则为 KeyType 值重置,或者为 keyType 设置自动生成密钥值。
| 属性 | 值 |
|---|---|
| Parameter group: | Parameters Arguments |
命名空间名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
队列名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |