Skip to content

Commit 0a6a922

Browse files
committed
fixed tabbing
1 parent 6b55410 commit 0a6a922

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

articles/service-bus-messaging/configure-customer-managed-key.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ After you enable customer-managed keys, you need to associate the customer manag
3636
# [Key Vault](#tab/Key-Vault)
3737
3838
1. To create a new Key Vault, follow the Azure Key Vault [Quickstart](/azure/key-vault/general/quick-create-cli).
39-
40-
# [Key Vault Managed HSM](#tab/Key-Vault-Managed-HSM)
41-
42-
1. To create a new Managed HSM, follow the Managed HSM [Quickstart](/azure/key-vault/managed-hsm/quick-create-cli).
43-
44-
---
45-
46-
For more information about importing existing keys, see [About keys, secrets, and certificates](/azure/key-vault/general/about-keys-secrets-certificates).
47-
48-
> [!IMPORTANT]
49-
> Using customer-managed keys with Azure Service Bus requires that the vault have two required properties configured. They are: **Soft Delete** and **Do Not Purge**. The Soft Delete property is enabled by default when you create a new vault in the Azure portal whereas the Purge Protection is optional so make sure to select it when creating the vault. Also, if you need to enable these properties on an existing key vault, you must use either PowerShell or Azure CLI.
50-
51-
# [Key Vault](#tab/Key-Vault)
52-
5339
2. To turn on both soft delete and purge protection when creating a vault, use the [az keyvault create](/cli/azure/keyvault#az-keyvault-create) command.
5440

5541
```azurecli-interactive
@@ -63,11 +49,12 @@ az keyvault update --name contoso-SB-BYOK-keyvault --resource-group ContosoRG --
6349
```
6450
6551
# [Key Vault Managed HSM](#tab/Key-Vault-Managed-HSM)
66-
52+
53+
1. To create a new Managed HSM, follow the Managed HSM [Quickstart](/azure/key-vault/managed-hsm/quick-create-cli).
6754
2. To turn on both soft delete and purge protection when creating a vault, use the [az keyvault create](/cli/azure/keyvault#az-keyvault-create) command.
6855

6956
```azurecli-interactive
70-
az keyvault create --hsm-name contoso-SB-BYOK-keyvault --resource-group ContosoRG --location westus --enable-purge-protection true --retention-days 90 --administrators 86a8f506-bb1c-4964-839a-78287daf85b1
57+
az keyvault create --hsm-name contoso-SB-BYOK-keyvault --resource-group ContosoRG --location westus --enable-purge-protection true --retention-days 90 --administrators aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
7158
```
7259

7360
After creation, you need to [activate the Managed HSM](/azure/key-vault/managed-hsm/quick-create-cli#activate-your-managed-hsm) and ensure that you have the correct permissions to generate keys by [assigning an RBAC role and local RBAC role](/azure/key-vault/managed-hsm/secure-your-managed-hsm) with the correct permissions.
@@ -77,8 +64,14 @@ After creation, you need to [activate the Managed HSM](/azure/key-vault/managed-
7764
```azurecli-interactive
7865
az keyvault update --hsm-name contoso-SB-BYOK-keyvault --resource-group ContosoRG --enable-purge-protection true
7966
```
67+
8068
---
8169

70+
For more information about importing existing keys, see [About keys, secrets, and certificates](/azure/key-vault/general/about-keys-secrets-certificates).
71+
72+
> [!IMPORTANT]
73+
> Using customer-managed keys with Azure Service Bus requires that the vault have two required properties configured. They are: **Soft Delete** and **Do Not Purge**. The Soft Delete property is enabled by default when you create a new vault in the Azure portal whereas the Purge Protection is optional so make sure to select it when creating the vault. Also, if you need to enable these properties on an existing key vault, you must use either PowerShell or Azure CLI.
74+
8275
Create keys by following these steps:
8376

8477
1. To create a new key, select **Generate/Import** from the **Keys** menu under **Settings**.

0 commit comments

Comments
 (0)