CmdID

CmdID / az / az servicebus / az servicebus namespace / az servicebus namespace encryption

az servicebus namespace encryption add

Add Encryption properties to a namespace. Azure CLI reference

1 example 2 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Set 2 different encryption properties for a namespace that has User Assigned Identity already enabled

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/MSIName2Identify
--namespace-nameName of the Namespace
-gName of resource group.
--encryption-configList of KeyVaultProperties objects.

Options

2 in the Azure CLI reference
--encryption-configList of KeyVaultProperties objects.
--infra-encryptionA boolean value that indicates whether Infrastructure Encryption (Double Encryption)