az servicebus namespace encryption

管理 servicebus 命名空間加密屬性。

命令

名稱 Description 類型 狀態
az servicebus namespace encryption add

將加密屬性新增至命名空間。

核心 GA
az servicebus namespace encryption remove

從命名空間中移除一或多個 Encryption 屬性。

核心 GA

az servicebus namespace encryption add

將加密屬性新增至命名空間。

az servicebus namespace encryption add --encryption-config
                                       --namespace-name
                                       --resource-group
                                       [--infra-encryption {false, true}]

範例

為已啟用使用者指派身分識別的命名空間設定 2 個不同的加密屬性

az servicebus namespace encryption add --namespace-name mynamespace -g MyResourceGroup --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName2

必要參數

--encryption-config

KeyVaultProperties 對象的清單。

--namespace-name

命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--infra-encryption

布爾值,指出基礎結構加密是否為雙重加密。

接受的值: false, true
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace encryption remove

從命名空間中移除一或多個 Encryption 屬性。

az servicebus namespace encryption remove --encryption-config
                                          --namespace-name
                                          --resource-group

範例

拿掉已啟用使用者指派身分識別之命名空間的加密屬性

az servicebus namespace encryption remove --namespace-name mynamespace -g MyResourceGroup --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName

必要參數

--encryption-config

KeyVaultProperties 對象的清單。

--namespace-name

命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。