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
必要參數
KeyVaultProperties 對象的清單。
命名空間的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
選擇性參數
布爾值,指出基礎結構加密是否為雙重加密。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --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
必要參數
KeyVaultProperties 對象的清單。
命名空間的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。