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
Replace inline resource group sections with includes in MHSM quickstarts
Replace inline 'Create a resource group' and 'Clean up resources'
sections with existing reusable includes in quick-create-cli.md and
quick-create-powershell.md. Update placeholders to use concrete
example values (myResourceGroup, EastUS) for consistency.
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: articles/key-vault/managed-hsm/quick-create-cli.md
+12-17Lines changed: 12 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: msmbaldwin
6
6
ms.service: azure-key-vault
7
7
ms.subservice: managed-hsm
8
8
ms.topic: quickstart
9
-
ms.date: 03/30/2026
9
+
ms.date: 04/14/2026
10
10
ms.author: mbaldwin
11
11
ms.custom: mode-api, devx-track-azurecli
12
12
ms.devlang: azurecli
@@ -31,11 +31,7 @@ You also need:
31
31
32
32
## Create a resource group
33
33
34
-
A resource group is a logical container into which you deploy and manage Azure resources. The following example creates a resource group named `<resource-group>` in the `<location>` location.
35
-
36
-
```azurecli-interactive
37
-
az group create --name "<resource-group>" --location <location>
38
-
```
34
+
[!INCLUDE [Create a resource group](~/reusable-content/ce-skilling/azure/includes/create-resource-group-cli.md)]
39
35
40
36
## Create a Managed HSM
41
37
@@ -48,15 +44,20 @@ Creating a Managed HSM is a two-step process:
48
44
Use the `az keyvault create` command to create a Managed HSM. This script has three mandatory parameters: a resource group name, an HSM name, and the geographic location.
49
45
50
46
To create a Managed HSM resource, provide the following inputs:
51
-
- A resource group where you place the Managed HSM in your subscription.
52
-
- An Azure location.
47
+
- Managed HSM name: A string of 3 to 24 characters that can contain only numbers (0-9), letters (a-z, A-Z), and hyphens (-).
48
+
49
+
> [!Important]
50
+
> Each Managed HSM must have a unique name. Replace `<hsm-name>` with your own unique Managed HSM name in the following examples.
51
+
52
+
- Resource group name: **myResourceGroup**.
53
+
- Location: **EastUS**.
53
54
- A list of initial administrators.
54
55
55
-
The following example creates an HSM named `<hsm-name>` in the resource group `<resource-group>`, residing in the specified location, with **the current signed in user** as the only administrator, and a **7-day retention period** for soft-delete. You continue to pay for the Managed HSM until it's purged in a **soft-delete period**. For more information, see [Managed HSM soft-delete and purge protection](recovery.md#what-are-soft-delete-and-purge-protection) and read more about [Managed HSM soft-delete](soft-delete-overview.md).
56
+
The following example creates an HSM named `<hsm-name>` in the resource group *myResourceGroup*, residing in the *EastUS* location, with **the current signed in user** as the only administrator, and a **7-day retention period** for soft-delete. You continue to pay for the Managed HSM until it's purged in a **soft-delete period**. For more information, see [Managed HSM soft-delete and purge protection](recovery.md#what-are-soft-delete-and-purge-protection) and read more about [Managed HSM soft-delete](soft-delete-overview.md).
56
57
57
58
```azurecli-interactive
58
59
oid=$(az ad signed-in-user show --query id -o tsv)
Other quickstarts and tutorials in this collection build upon this quickstart. If you plan to continue on to work with subsequent quickstarts and tutorials, you may wish to leave these resources in place.
94
-
95
-
When no longer needed, you can use the [az group delete](/cli/azure/group) command to remove the resource group, and all related resources. You can delete the resources as follows:
Copy file name to clipboardExpand all lines: articles/key-vault/managed-hsm/quick-create-powershell.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create and retrieve attributes of a managed key in Azure Key Vault – Az
3
3
description: Quickstart showing how to set and retrieve a managed key from Azure Key Vault using Azure PowerShell
4
4
author: msmbaldwin
5
5
ms.author: mbaldwin
6
-
ms.date: 03/30/2026
6
+
ms.date: 04/14/2026
7
7
ms.topic: quickstart
8
8
ms.service: azure-key-vault
9
9
ms.subservice: keys
@@ -22,11 +22,7 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
22
22
23
23
## Create a resource group
24
24
25
-
A resource group is a logical container into which you deploy and manage Azure resources. Use the Azure PowerShell [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) cmdlet to create a resource group named `<resource-group>` in the `<location>` location.
0 commit comments