Skip to content

Commit b63d783

Browse files
committed
Update azure key vault quickstart .net doc
1. Made console app name consistent 2. Removed NuGet package versions 3. Add shell script for environment variables
1 parent e4e1e10 commit b63d783

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -138,6 +138,16 @@ setx KEY_VAULT_NAME <your-key-vault-name>
138138

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

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

143153
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)