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
Copy file name to clipboardExpand all lines: articles/key-vault/keys/quick-create-cli.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
@@ -6,14 +6,14 @@ tags: azure-resource-manager
6
6
ms.service: key-vault
7
7
ms.subservice: keys
8
8
ms.topic: quickstart
9
-
ms.date: 01/27/2021
9
+
ms.date: 01/04/2023
10
10
ms.author: mbaldwin
11
11
ms.custom: devx-track-azurecli, mode-api
12
12
#Customer intent: As a security admin who is new to Azure, I want to use Key Vault to securely store keys and passwords in Azure
13
13
---
14
14
# Quickstart: Set and retrieve a key from Azure Key Vault using Azure CLI
15
15
16
-
In this quickstart, you create a key vault in Azure Key Vault with Azure CLI. Azure Key Vault is a cloud service that works as a secure secrets store. You can securely store keys, passwords, certificates, and other secrets. For more information on Key Vault you may review the [Overview](../general/overview.md). Azure CLI is used to create and manage Azure resources using commands or scripts. Once that you have completed that, you will store a key.
16
+
In this quickstart, you create a key vault in Azure Key Vault with Azure CLI. Azure Key Vault is a cloud service that works as a secure secrets store. You can securely store keys, passwords, certificates, and other secrets. For more information on Key Vault, review the [Overview](../general/overview.md). Azure CLI is used to create and manage Azure resources using commands or scripts. Once that you've completed that, you will store a key.
@@ -33,7 +33,7 @@ In this quickstart, you create a key vault in Azure Key Vault with Azure CLI. Az
33
33
34
34
To add a key to the vault, you just need to take a couple of additional steps. This key could be used by an application.
35
35
36
-
Type the commands below to create a key called **ExampleKey** :
36
+
Type this command to create a key called **ExampleKey** :
37
37
38
38
```azurecli
39
39
az keyvault key create --vault-name "<your-unique-keyvault-name>" -n ExampleKey --protection software
@@ -48,15 +48,15 @@ To view previously stored key:
48
48
az keyvault key show --name "ExampleKey" --vault-name "<your-unique-keyvault-name>"
49
49
```
50
50
51
-
Now, you have created a Key Vault, stored a key, and retrieved it.
51
+
Now, you've created a Key Vault, stored a key, and retrieved it.
52
52
53
53
## Clean up resources
54
54
55
55
[!INCLUDE [Create a key vault](../../../includes/cli-rg-delete.md)]
56
56
57
57
## Next steps
58
58
59
-
In this quickstart you created a Key Vault and stored a key in it. To learn more about Key Vault and how to integrate it with your applications, continue on to the articles below.
59
+
In this quickstart, you created a Key Vault and stored a key in it. To learn more about Key Vault and how to integrate it with your applications, continue on to these articles.
60
60
61
61
- Read an [Overview of Azure Key Vault](../general/overview.md)
62
62
- See the reference for the [Azure CLI az keyvault commands](/cli/azure/keyvault)
# Quickstart: Azure Key Vault Key client library for Java
15
-
Get started with the Azure Key Vault Key client library for Java. Follow the steps below to install the package and try out example code for basic tasks.
15
+
16
+
Get started with the Azure Key Vault Key client library for Java. Follow these steps to install the package and try out example code for basic tasks.
16
17
17
18
Additional resources:
18
19
@@ -27,7 +28,7 @@ Additional resources:
27
28
-[Apache Maven](https://maven.apache.org)
28
29
-[Azure CLI](/cli/azure/install-azure-cli)
29
30
30
-
This quickstart assumes you are running [Azure CLI](/cli/azure/install-azure-cli) and [Apache Maven](https://maven.apache.org) in a Linux terminal window.
31
+
This quickstart assumes you're running [Azure CLI](/cli/azure/install-azure-cli) and [Apache Maven](https://maven.apache.org) in a Linux terminal window.
31
32
32
33
## Setting up
33
34
This quickstart is using the Azure Identity library with Azure CLI to authenticate user to Azure Services. Developers can also use Visual Studio or Visual Studio Code to authenticate their calls, for more information, see [Authenticate the client with Azure Identity client library](/java/api/overview/azure/identity-readme).
The Azure Key Vault Key client library for Java allows you to manage keys. The [Code examples](#code-examples) section shows how to create a client, create a key, retrieve a key, and delete a key.
135
136
136
-
The entire console app is [below](#sample-code).
137
+
The entire console app is supplied in [Sample code](#sample-code).
In this quickstart, a logged in user is used to authenticate to Key Vault, which is preferred method for local development. For applications deployed to Azure, a Managed Identity should be assigned to an App Service or Virtual Machine. For more information, see [Managed Identity Overview](../../active-directory/managed-identities-azure-resources/overview.md).
155
157
156
-
In the example below, the name of your key vault is expanded to the key vault URI, in the format "https://\<your-key-vault-name\>.vault.azure.net". This example is using the ['DefaultAzureCredential()'](/java/api/com.azure.identity.defaultazurecredential) class, which allows to use the same code across different environments with different options to provide identity. For more information, see [Default Azure Credential Authentication](/java/api/overview/azure/identity-readme).
158
+
In this example, the name of your key vault is expanded to the key vault URI, in the format `https://<your-key-vault-name>.vault.azure.net`. This example is using the ['DefaultAzureCredential()'](/java/api/com.azure.identity.defaultazurecredential) class, which allows to use the same code across different environments with different options to provide identity. For more information, see [Default Azure Credential Authentication](/java/api/overview/azure/identity-readme).
@@ -166,7 +168,7 @@ KeyClient keyClient = new KeyClientBuilder()
166
168
```
167
169
168
170
### Create a key
169
-
Now that your application is authenticated, you can create a key in your key vault using the `keyClient.createKey` method. This requires a name for the key and a key type -- we've assigned the value "myKey" to the `keyName` variable and use a an RSA `KeyType` in this sample.
171
+
Now that your application is authenticated, you can create a key in your key vault using the `keyClient.createKey` method. This requires a name for the key and a key type. We've assigned the value "myKey" to the `keyName` variable and use a an RSA `KeyType` in this sample.
170
172
171
173
```java
172
174
keyClient.createKey(keyName, KeyType.RSA);
@@ -262,7 +264,7 @@ public class App {
262
264
```
263
265
264
266
## Next steps
265
-
In this quickstart you created a key vault, created a key, retrieved it, and then deleted it. To learn more about Key Vault and how to integrate it with your applications, continue on to the articles below.
267
+
In this quickstart, you created a key vault, created a key, retrieved it, and then deleted it. To learn more about Key Vault and how to integrate it with your applications, continue on to these articles.
266
268
267
269
- Read an [Overview of Azure Key Vault](../general/overview.md)
268
270
- Read the [Key Vault security overview](../general/security-features.md)
description: Learn how to create, retrieve, and delete keys from an Azure key vault using the .NET client library (version 4)
4
4
author: msmbaldwin
5
5
ms.author: mbaldwin
6
-
ms.date: 09/23/2020
6
+
ms.date: 01/04/2023
7
7
ms.service: key-vault
8
8
ms.subservice: keys
9
9
ms.topic: quickstart
@@ -133,7 +133,7 @@ using Azure.Security.KeyVault.Keys;
133
133
134
134
In this quickstart, logged in user is used to authenticate to key vault, which is preferred method for local development. For applications deployed to Azure, managed identity should be assigned to App Service or Virtual Machine, for more information, see [Managed Identity Overview](/azure/active-directory/managed-identities-azure-resources/overview).
135
135
136
-
In below example, the name of your key vault is expanded to the key vault URI, in the format "https://\<your-key-vault-name\>.vault.azure.net". This example is using ['DefaultAzureCredential()'](/dotnet/api/azure.identity.defaultazurecredential) class from [Azure Identity Library](/dotnet/api/overview/azure/identity-readme), which allows to use the same code across different environments with different options to provide identity. Fore more information about authenticating to key vault, see [Developer's Guide](/azure/key-vault/general/developers-guide#authenticate-to-key-vault-in-code).
136
+
In this example, the name of your key vault is expanded to the key vault URI, in the format `https://<your-key-vault-name>.vault.azure.net`. This example is using ['DefaultAzureCredential()'](/dotnet/api/azure.identity.defaultazurecredential) class from [Azure Identity Library](/dotnet/api/overview/azure/identity-readme), which allows to use the same code across different environments with different options to provide identity. Fore more information about authenticating to key vault, see [Developer's Guide](/azure/key-vault/general/developers-guide#authenticate-to-key-vault-in-code).
The code sample below will show you how to create a client, set a key, retrieve a key, and delete a key.
113
+
This code sample demonstrates how to create a client, set a key, retrieve a key, and delete a key.
114
114
115
115
### Set up the app framework
116
116
@@ -232,7 +232,7 @@ The Azure SDK provides a helper method, [parseKeyVaultKeyIdentifier](/javascript
232
232
233
233
## Next steps
234
234
235
-
In this quickstart, you created a key vault, stored a key, and retrieved that key. To learn more about Key Vault and how to integrate it with your applications, continue on to the articles below.
235
+
In this quickstart, you created a key vault, stored a key, and retrieved that key. To learn more about Key Vault and how to integrate it with your applications, continue on to these articles.
236
236
237
237
- Read an [Overview of Azure Key Vault](../general/overview.md)
238
238
- Read an [Overview of Azure Key Vault Keys](about-keys.md)
Copy file name to clipboardExpand all lines: articles/key-vault/keys/quick-create-portal.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
@@ -8,7 +8,7 @@ ms.service: key-vault
8
8
ms.subservice: keys
9
9
ms.topic: quickstart
10
10
ms.custom: mvc, mode-ui
11
-
ms.date: 03/24/2020
11
+
ms.date: 01/04/2023
12
12
ms.author: mbaldwin
13
13
#Customer intent: As a security admin who is new to Azure, I want to use Key Vault to securely store keys in Azure
14
14
---
@@ -31,15 +31,15 @@ Sign in to the Azure portal at https://portal.azure.com.
31
31
To add a key to the vault, you just need to take a couple of additional steps. In this case, we add a key that could be used by an application. The key is called **ExampleKey**.
32
32
33
33
1. On the Key Vault properties pages, select **Keys**.
34
-
2.Click on**Generate/Import**.
34
+
2.Select**Generate/Import**.
35
35
3. On the **Create a key** screen choose the following values:
36
36
-**Options**: Generate.
37
37
-**Name**: ExampleKey.
38
-
- Leave the other values to their defaults. Click**Create**.
38
+
- Leave the other values to their defaults. Select**Create**.
39
39
40
40
## Retrieve a key from Key Vault
41
41
42
-
Once that you receive the message that the key has been successfully created, you may click on it on the list. You can then see some of the properties and click**Download public key** to retrieve the key.
42
+
Once that you receive the message that the key has been successfully created, you may click on it on the list. You can then see some of the properties and select**Download public key** to retrieve the key.
@@ -55,7 +55,7 @@ When no longer needed, delete the resource group, which deletes the Key Vault an
55
55
56
56
## Next steps
57
57
58
-
In this quickstart, you created a Key Vault and stored a key in it. To learn more about Key Vault and how to integrate it with your applications, continue on to the articles below.
58
+
In this quickstart, you created a Key Vault and stored a key in it. To learn more about Key Vault and how to integrate it with your applications, continue on to these articles.
59
59
60
60
- Read an [Overview of Azure Key Vault](../general/overview.md)
61
61
- See the [Azure Key Vault developer's guide](../general/developers-guide.md)
Copy file name to clipboardExpand all lines: articles/key-vault/keys/quick-create-powershell.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,20 @@ tags: azure-resource-manager
7
7
ms.service: key-vault
8
8
ms.subservice: keys
9
9
ms.topic: quickstart
10
-
ms.date: 01/27/2021
10
+
ms.date: 01/04/2023
11
11
ms.author: mbaldwin
12
12
ms.custom: devx-track-azurepowershell, mode-api
13
13
#Customer intent: As a security admin who is new to Azure, I want to use Key Vault to securely store keys and passwords in Azure
14
14
---
15
15
# Quickstart: Set and retrieve a key from Azure Key Vault using Azure PowerShell
16
16
17
-
In this quickstart, you create a key vault in Azure Key Vault with Azure PowerShell. Azure Key Vault is a cloud service that works as a secure secrets store. You can securely store keys, passwords, certificates, and other secrets. For more information on Key Vault you may review the [Overview](../general/overview.md). Azure PowerShell is used to create and manage Azure resources using commands or scripts. Once that you have completed that, you will store a key.
17
+
In this quickstart, you create a key vault in Azure Key Vault with Azure PowerShell. Azure Key Vault is a cloud service that works as a secure secrets store. You can securely store keys, passwords, certificates, and other secrets. For more information on Key Vault, review the [Overview](../general/overview.md). Azure PowerShell is used to create and manage Azure resources using commands or scripts. Once that you've completed that, you will store a key.
18
18
19
19
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
If you choose to install and use PowerShell locally, this tutorial requires Azure PowerShell module version 1.0.0 or later. Type `$PSVersionTable.PSVersion` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you are running PowerShell locally, you also need to run `Login-AzAccount` to create a connection with Azure.
23
+
If you choose to install and use PowerShell locally, this tutorial requires Azure PowerShell module version 1.0.0 or later. Type `$PSVersionTable.PSVersion` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you're running PowerShell locally, you also need to run `Login-AzAccount` to create a connection with Azure.
24
24
25
25
```azurepowershell-interactive
26
26
Login-AzAccount
@@ -38,7 +38,7 @@ Login-AzAccount
38
38
39
39
To add a key to the vault, you just need to take a couple of additional steps. This key could be used by an application.
40
40
41
-
Type the commands below to create a called **ExampleKey** :
41
+
Type this command to create a called **ExampleKey** :
Now, you have created a Key Vault, stored a key, and retrieved it.
55
+
Now, you've created a Key Vault, stored a key, and retrieved it.
56
56
57
57
## Clean up resources
58
58
59
59
[!INCLUDE [Create a key vault](../../../includes/powershell-rg-delete.md)]
60
60
61
61
## Next steps
62
62
63
-
In this quickstart you created a Key Vault and stored a certificate in it. To learn more about Key Vault and how to integrate it with your applications, continue on to the articles below.
63
+
In this quickstart, you created a Key Vault and stored a certificate in it. To learn more about Key Vault and how to integrate it with your applications, continue on to these articles.
64
64
65
65
- Read an [Overview of Azure Key Vault](../general/overview.md)
66
66
- See the reference for the [Azure PowerShell Key Vault cmdlets](/powershell/module/az.keyvault/)
0 commit comments