Skip to content

Commit e8b7bdd

Browse files
committed
Updates
1 parent 494033c commit e8b7bdd

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

articles/key-vault/general/tutorial-net-create-vault-azure-web-app.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Tutorial - Use Azure Key Vault with an Azure web app in .NET | Microsoft Docs
2+
title: Tutorial - Use Azure Key Vault with an Azure webapp in .NET | Microsoft Docs
33
description: In this tutorial, you configure an ASP.NET core application to read a secret from your key vault.
44
services: key-vault
55
author: msmbaldwin
@@ -13,7 +13,7 @@ ms.author: mbaldwin
1313
ms.custom: mvc
1414
#Customer intent: As a developer I want to use Azure Key Vault to store secrets for my app, so that they are kept secure.
1515
---
16-
# Tutorial: Use Azure Key Vault with an Azure web app in .NET
16+
# Tutorial: Use Azure Key Vault with an Azure webapp in .NET
1717

1818
Get started with the Azure Key Vault client library for .NET. Follow the steps below to install the package and try out example code for basic tasks.
1919

@@ -50,7 +50,7 @@ This quickstart assumes you are running `dotnet`, [Azure CLI](/cli/azure/install
5050

5151
A resource group is a logical container into which Azure resources are deployed and managed.
5252

53-
Your first step is to create a resource group to house both your key vault and your web app. You can do so with the [az group create](/cli/azure/group?view=azure-cli-latest#az-group-create) command:
53+
Your first step is to create a resource group to house both your key vault and your webapp. You can do so with the [az group create](/cli/azure/group?view=azure-cli-latest#az-group-create) command:
5454

5555
```azurecli
5656
az group create --name "myResourceGroup" -l "EastUS"
@@ -75,7 +75,7 @@ You can now place a secret in your key vault with the [az keyvault secret set](/
7575
az keyvault secret set --vault-name <your-unique-keyvault-name> -name "MySecret" -value "Success!"
7676
```
7777

78-
## Create a .NET web app
78+
## Create a .NET webapp
7979

8080
### Create a local app
8181

@@ -116,7 +116,7 @@ git commit -m "first commit"
116116

117117
### Configure a deployment user
118118

119-
FTP and local Git can deploy to an Azure web app by using a *deployment user*. Once you configure your deployment user, you can use it for all your Azure deployments. Your account-level deployment username and password are different from your Azure subscription credentials.
119+
FTP and local Git can deploy to an Azure webapp by using a *deployment user*. Once you configure your deployment user, you can use it for all your Azure deployments. Your account-level deployment username and password are different from your Azure subscription credentials.
120120

121121
To configure the deployment user, run the [az webapp deployment user set](/cli/azure/webapp/deployment/user?view=azure-cli-latest#az-webapp-deployment-user-set) command in Azure Cloud Shell. Replace \<username> and \<password> with a deployment user username and password.
122122

@@ -129,7 +129,7 @@ az webapp deployment user set --user-name <username> --password <password>
129129

130130
The JSON output shows the password as `null`. If you get a `'Conflict'. Details: 409` error, change the username. If you get a `'Bad Request'. Details: 400` error, use a stronger password.
131131

132-
Record your username and password to use to deploy your web apps.
132+
Record your username and password to use to deploy your webapps.
133133

134134
### Create an app service plan
135135

@@ -162,18 +162,18 @@ When the App Service plan has been created, the Azure CLI shows information simi
162162
</pre>
163163

164164

165-
### Create a remote web app
165+
### Create a remote webapp
166166

167-
Create a [web app](../articles/app-service/containers/app-service-linux-intro.md) in the `myAppServicePlan` App Service plan.
167+
Create a [webapp](../../app-service/containers/app-service-linux-intro.md) in the `myAppServicePlan` App Service plan.
168168

169169
```azurecli-interactive
170-
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --deployment-local-git
170+
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <your-webapp-name> --deployment-local-git
171171
```
172172

173-
When the web app has been created, the Azure CLI shows output similar to the following example:
173+
When the webapp has been created, the Azure CLI shows output similar to the following example:
174174

175175
<pre>
176-
Local git is configured with url of 'https://&lt;username&gt;@&lt;app-name&gt;.scm.azurewebsites.net/&lt;app-name&gt;.git'
176+
Local git is configured with url of 'https://&lt;username&gt;@&lt;your-webapp-name&gt;.scm.azurewebsites.net/&lt;ayour-webapp-name&gt;.git'
177177
{
178178
"availabilityState": "Normal",
179179
"clientAffinityEnabled": true,
@@ -182,30 +182,29 @@ Local git is configured with url of 'https://&lt;username&gt;@&lt;app-name&gt;.s
182182
"cloningInfo": null,
183183
"containerSize": 0,
184184
"dailyMemoryTimeQuota": 0,
185-
"defaultHostName": "&lt;app-name&gt;.azurewebsites.net",
186-
"deploymentLocalGitUrl": "https://&lt;username&gt;@&lt;app-name&gt;.scm.azurewebsites.net/&lt;app-name&gt;.git",
185+
"defaultHostName": "&lt;your-webapp-name&gt;.azurewebsites.net",
186+
"deploymentLocalGitUrl": "https://&lt;username&gt;@&lt;your-webapp-name&gt;.scm.azurewebsites.net/&lt;your-webapp-name&gt;.git",
187187
"enabled": true,
188188
&lt; JSON data removed for brevity. &gt;
189189
}
190190
</pre>
191191

192192
> [!NOTE]
193-
> The URL of the Git remote is shown in the `deploymentLocalGitUrl` property, with the format `https://<username>@<app-name>.scm.azurewebsites.net/<app-name>.git`. Save this URL as you need it later.
193+
> The URL of the Git remote is shown in the `deploymentLocalGitUrl` property, with the format `https://<username>@<your-webapp-name>.scm.azurewebsites.net/<your-webapp-name>.git`. Save this URL as you need it later.
194194
>
195195
196-
197-
Browse to your newly created app. Replace _&lt;app-name>_ with your app name.
196+
Browse to your newly created app. Replace _&lt;your-webapp-name>_ with your app name.
198197

199198
```bash
200-
https://<app-name>.azurewebsites.net
199+
https://<your-webapp-name>.azurewebsites.net
201200
```
202201

203202
Here is what your new app should look like:
204203

205204
![Empty app page](media/quickstart-dotnetcore/dotnet-browse-created.png)
206205

207206

208-
Back in the local terminal window, add an Azure remote to your local Git repository. Replace *\<deploymentLocalGitUrl-from-create-step>* with the URL of the Git remote that you saved from [Create a web app](#create-a-web-app).
207+
Back in the local terminal window, add an Azure remote to your local Git repository. Replace *\<deploymentLocalGitUrl-from-create-step>* with the URL of the Git remote that you saved from [Create a remote webapp](#create-a-remote-webapp).
209208

210209
```bash
211210
git remote add azure <deploymentLocalGitUrl-from-create-step>
@@ -240,8 +239,8 @@ remote: Repository Commit : d6b54472f7e8e9fd885ffafaa64522e74cf370e1
240239
.
241240
.
242241
remote: Deployment successful.
243-
remote: Deployment Logs : 'https://&lt;app-name&gt;.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/d6b54472f7e8e9fd885ffafaa64522e74cf370e1/log'
244-
To https://&lt;app-name&gt;.scm.azurewebsites.net:443/&lt;app-name&gt;.git
242+
remote: Deployment Logs : 'https://&lt;your-webapp-name&gt;.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/d6b54472f7e8e9fd885ffafaa64522e74cf370e1/log'
243+
To https://&lt;your-webapp-name&gt;.scm.azurewebsites.net:443/&lt;your-webapp-name&gt;.git
245244
d87e6ca..d6b5447 master -> master
246245
</pre>
247246

@@ -250,7 +249,7 @@ To https://&lt;app-name&gt;.scm.azurewebsites.net:443/&lt;app-name&gt;.git
250249
Browse to the deployed application using your web browser.
251250

252251
```bash
253-
http://<your-unique-webapp-name>.azurewebsites.net
252+
http://<your-webapp-name>.azurewebsites.net
254253
```
255254

256255
The .NET Core sample code is running in App Service on Linux with a built-in image.
@@ -300,7 +299,7 @@ dotnet add package Azure.Security.KeyVault.Secrets
300299
Find and open the Startup.cs file in your akvwebapp project. Add these three lines before the `app.UseEndpoints` call, updating the URI to reflect your unique webapp name:
301300

302301
```cpp
303-
var client = new SecretClient(new Uri("https://<your-unique-webapp-name>.vault.azure.net/"), new DefaultAzureCredential());
302+
var client = new SecretClient(new Uri("https://<your-webapp-name>.vault.azure.net/"), new DefaultAzureCredential());
304303
KeyVaultSecret secret = client.GetSecret("mySecret");
305304
string secretValue = secret.Value;
306305
```
@@ -320,7 +319,7 @@ git push azure master
320319
## Visit your completed webapp
321320

322321
```bash
323-
http://<your-unique-webapp-name>.azurewebsites.net
322+
http://<your-webapp-name>.azurewebsites.net
324323
```
325324

326325
Where before you saw "Hello world!", you shoukd now see the value of your secret displayed:

articles/key-vault/secrets/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
- name: PowerShell
1515
href: quick-create-powershell.md
1616
- name: Portal
17+
href: quick-create-portal.md
1718
- name: .NET (SDK v4)
1819
href: quick-create-net.md
19-
href: quick-create-portal.md
2020
- name: .NET (SDK v3)
2121
href: quick-create-net-v3.md
2222
- name: Node.js

0 commit comments

Comments
 (0)