You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,35 +36,34 @@ After you enable customer-managed keys, you need to associate the customer manag
36
36
> [!IMPORTANT]
37
37
> Using customer-managed keys with Azure Event Hubs requires that the key vault have two required properties configured. They are: **Soft Delete** and **Do Not Purge**. These properties are enabled by default when you create a new key vault in the Azure portal. However, if you need to enable these properties on an existing key vault, you must use either PowerShell or Azure CLI.
38
38
39
-
# [Key Vault](#tab/Key-Vault)
39
+
# [Key Vault](#tab/Key-Vault)
40
40
41
-
1. 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.
41
+
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.
1. To add purge protection to an existing vault (that already has soft delete enabled), use the [az keyvault update](/cli/azure/keyvault#az-keyvault-update) command.
3. To add purge protection to an existing vault (that already has soft delete enabled), use the [az keyvault update](/cli/azure/keyvault#az-keyvault-update) command.
47
47
48
-
```azurecli-interactive
49
-
az keyvault update --name ContosoVault --resource-group ContosoRG --enable-purge-protection true
50
-
```
48
+
```azurecli-interactive
49
+
az keyvault update --name ContosoVault --resource-group ContosoRG --enable-purge-protection true
1. 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.
54
+
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.
1. To add purge protection to an existing vault (that already has soft delete enabled), use the [az keyvault update](/cli/azure/keyvault#az-keyvault-update) command.
3. To add purge protection to an existing vault (that already has soft delete enabled), use the [az keyvault update](/cli/azure/keyvault#az-keyvault-update) command.
60
60
61
-
```azurecli-interactive
62
-
az keyvault update --hsm-name ContosoVault --resource-group ContosoRG --enable-purge-protection true
63
-
```
61
+
```azurecli-interactive
62
+
az keyvault update --hsm-name ContosoVault --resource-group ContosoRG --enable-purge-protection true
63
+
```
64
+
---
64
65
65
-
---
66
-
67
-
1. Create keys by following these steps:
66
+
4. Create keys by following these steps:
68
67
1. To create a new key, select **Generate/Import** from the **Keys** menu under **Settings**.
@@ -87,15 +86,13 @@ There are two types of managed identities that you can assign to an Event Hubs n
87
86
88
87
For more information, see [What are managed identities for Azure resources?](../active-directory/managed-identities-azure-resources/overview.md).
89
88
90
-
91
89
## Encrypt using system-assigned identities (template)
92
90
This section shows how to do the following tasks using **Azure Resource Manager templates**.
93
91
94
92
1. Create an **Event Hubs namespace** with a managed service identity.
95
93
2. Create a **key vault** and grant the service identity access to the key vault.
96
94
3. Update the Event Hubs namespace with the key vault information (key/value).
97
95
98
-
99
96
### Create an Event Hubs cluster and namespace with managed service identity
100
97
This section shows you how to create an Azure Event Hubs namespace with managed service identity by using an Azure Resource Manager template and PowerShell.
101
98
@@ -204,13 +201,13 @@ This section shows you how to create an Azure Event Hubs namespace with managed
204
201
205
202
### Grant Event Hubs namespace identity access to key vault
206
203
207
-
1. Set the key vault access policy so that the managed identity of the Event Hubs namespace can access key value in the key vault. Use the ID of the Event Hubs namespace from the previous section.
204
+
Set the key vault access policy so that the managed identity of the Event Hubs namespace can access key value in the key vault. Use the ID of the Event Hubs namespace from the previous section.
3. Run the following PowerShell command to deploy the Resource Manager template. Replace `{MyRG}` with the name of your resource group before running the command.
357
353
@@ -509,65 +505,64 @@ This section gives you an example that shows you how to do the following tasks u
509
505
]
510
506
}
511
507
```
512
-
1. Create a template parameter file: **CreateEventHubsNamespaceWithUserIdentityAndEncryptionParams.json**.
## Use both user-assigned and system-assigned identities
592
586
A namespace can have both system-assigned and user-assigned identities at the same time. In this case, the `type` property would be `SystemAssigned`, `UserAssigned` as shown in the following example.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/configure-customer-managed-key.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,11 +198,11 @@ This section shows you how to create an Azure Service Bus namespace with managed
198
198
199
199
Set the key vault access policy so that the managed identity of the Service Bus namespace can access key value in the key vault. Use the ID of the Service Bus namespace from the previous section.
0 commit comments