Skip to content

Commit e43af74

Browse files
authored
Merge pull request #107471 from justinyoo/kv-quick-net
Azure Key Vault Quickstart .NET (v4) part 1
2 parents fdc1087 + 719f139 commit e43af74

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

articles/key-vault/quick-create-net.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Quickstart - Azure Key Vault client library for .NET (v4)
33
description: Learn how to create, retrieve, and delete secrets from an Azure key vault using the .NET client library (v4)
44
author: msmbaldwin
55
ms.author: mbaldwin
6-
ms.date: 05/20/2019
6+
ms.date: 03/12/2020
77
ms.service: key-vault
88
ms.subservice: secrets
99
ms.topic: quickstart
@@ -36,7 +36,7 @@ This quickstart assumes you are running `dotnet`, [Azure CLI](/cli/azure/install
3636

3737
### Create new .NET console app
3838

39-
In a console window, use the `dotnet new` command to create a new .NET console app with the name `akv-dotnet`.
39+
In a console window, use the `dotnet new` command to create a new .NET console app with the name `key-vault-console-app`.
4040

4141
```console
4242
dotnet new console -n key-vault-console-app
@@ -61,13 +61,13 @@ Build succeeded.
6161
From the console window, install the Azure Key Vault client library for .NET:
6262

6363
```console
64-
dotnet add package Azure.Security.KeyVault.Secrets --version 4.0.0
64+
dotnet add package Azure.Security.KeyVault.Secrets
6565
```
6666

6767
For this quickstart, you will need to install the following packages as well:
6868

6969
```console
70-
dotnet add package Azure.Identity --version 1.0.0
70+
dotnet add package Azure.Identity
7171
```
7272

7373
### Create a resource group and key vault
@@ -137,6 +137,16 @@ setx KEY_VAULT_NAME <your-key-vault-name>
137137

138138
Each time you call `setx`, you should get a response of "SUCCESS: Specified value was saved."
139139

140+
```shell
141+
AZURE_CLIENT_ID=<your-clientID>
142+
143+
AZURE_CLIENT_SECRET=<your-clientSecret>
144+
145+
AZURE_TENANT_ID=<your-tenantId>
146+
147+
KEY_VAULT_NAME=<your-key-vault-name>
148+
```
149+
140150
## Object model
141151

142152
The Azure Key Vault client library for .NET allows you to manage keys and related assets such as certificates and secrets. The code samples below will show you how to create a client, set a secret, retrieve a secret, and delete a secret.

0 commit comments

Comments
 (0)