Skip to content

Commit 18a3a9d

Browse files
committed
Use new CLI includes in Managed HSM articles
- Use cli-prerequisites.md include in key-management.md and role-management.md - Use cli-sign-in.md include in how-to-secure-access.md, key-management.md, quick-create-cli.md, and role-management.md This reduces duplicate CLI setup content across articles.
1 parent 61249c7 commit 18a3a9d

4 files changed

Lines changed: 6 additions & 38 deletions

File tree

articles/key-vault/managed-hsm/how-to-secure-access.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ You also need:
3030

3131
[!INCLUDE [cloud-shell-try-it.md](~/reusable-content/ce-skilling/azure/includes/cloud-shell-try-it.md)]
3232

33-
## Sign in to Azure
34-
35-
To sign in to Azure by using the CLI, enter:
36-
37-
```azurecli
38-
az login
39-
```
40-
41-
For more information about authentication options through the CLI, see [sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
33+
[!INCLUDE [Sign in to Azure](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-sign-in.md)]
4234

4335
## Understand the example scenario
4436

articles/key-vault/managed-hsm/key-management.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,12 @@ For an overview of Managed HSM, see [What is Managed HSM?](overview.md)
2626

2727
You also need:
2828

29-
* The Azure CLI version 2.25.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install the Azure CLI]( /cli/azure/install-azure-cli).
30-
* A managed HSM in your subscription. See [Quickstart: Provision and activate a managed HSM using Azure CLI](quick-create-cli.md) to provision and activate a managed HSM.
29+
[!INCLUDE [CLI prerequisites](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-prerequisites.md)]
3130
* To access keys using Azure SDKs, see [.NET](quickstart-dotnet.md) | [Python](quickstart-python.md) | [JavaScript](quickstart-javascript.md)
3231

3332
[!INCLUDE [cloud-shell-try-it.md](~/reusable-content/ce-skilling/azure/includes/cloud-shell-try-it.md)]
3433

35-
## Sign in to Azure
36-
37-
Sign in to Azure by using the CLI and typing the following command:
38-
39-
```azurecli
40-
az login
41-
```
42-
43-
For more information about sign-in options through the CLI, see [sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
34+
[!INCLUDE [Sign in to Azure](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-sign-in.md)]
4435

4536
> [!NOTE]
4637
> All the following commands show two usage methods. One method uses the `--hsm-name` and `--name` (for key name) parameters. The other method uses the `--id` parameter, where you can specify the entire URL including the key name when appropriate. The latter method is useful when the caller (a user or an application) has no read access on the control plane and only restricted access on the data plane.

articles/key-vault/managed-hsm/quick-create-cli.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ You also need:
2727

2828
[!INCLUDE [cloud-shell-try-it.md](~/reusable-content/ce-skilling/azure/includes/cloud-shell-try-it.md)]
2929

30-
## Sign in to Azure
31-
32-
To sign in to Azure by using the CLI, type:
33-
34-
```azurecli
35-
az login
36-
```
30+
[!INCLUDE [Sign in to Azure](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-sign-in.md)]
3731

3832
## Create a resource group
3933

articles/key-vault/managed-hsm/role-management.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,11 @@ For a list of all Managed HSM built-in roles and the operations they permit, see
2929

3030
You also need:
3131

32-
* Azure CLI version 2.25.0 or later. Run `az --version` to find the version. To install or upgrade, see [Install the Azure CLI]( /cli/azure/install-azure-cli).
33-
* A managed HSM in your subscription. To provision and activate a managed HSM, see [Quickstart: Provision and activate a managed HSM using Azure CLI](quick-create-cli.md).
32+
[!INCLUDE [CLI prerequisites](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-prerequisites.md)]
3433

3534
[!INCLUDE [cloud-shell-try-it.md](~/reusable-content/ce-skilling/azure/includes/cloud-shell-try-it.md)]
3635

37-
## Sign in to Azure
38-
39-
To sign in to Azure using the CLI you can type:
40-
41-
```azurecli
42-
az login
43-
```
44-
45-
For more information on sign in options via the CLI, see [sign in with Azure CLI](/cli/azure/authenticate-azure-cli)
36+
[!INCLUDE [Sign in to Azure](~/reusable-content/ce-skilling/azure/includes/managed-hsm/cli-sign-in.md)]
4637

4738
## Create a new role assignment
4839

0 commit comments

Comments
 (0)