Skip to content

Commit a449ae2

Browse files
authored
Merge pull request #58064 from prashanthyv/master
Update documents
2 parents d11288d + 02750a2 commit a449ae2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

articles/key-vault/tutorial-net-linux-virtual-machine.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.custom: mvc
1919

2020
Azure Key Vault helps you to protect secrets such as API Keys, Database Connection strings needed to access your applications, services, and IT resources.
2121

22-
In this tutorial, you follow the necessary steps for getting an Azure web application to read information from Azure Key Vault by using managed identities for Azure resources. This tutorial is based on [Azure Web Apps](../app-service/app-service-web-overview.md). In the following you learn how to:
22+
In this tutorial, you follow the necessary steps for getting an Console application to read information from Azure Key Vault by using managed identities for Azure resources. This tutorial is based on [Azure Web Apps](../app-service/app-service-web-overview.md). In the following you learn how to:
2323

2424
> [!div class="checklist"]
2525
> * Create a key vault.
@@ -256,8 +256,7 @@ Then change the class file to contain the below code. It's a 2 step process.
256256
String responseString = reader.ReadToEnd();
257257
258258
JObject joResponse = JObject.Parse(responseString);
259-
JValue ojObject = (JValue)joResponse[tokenName];
260-
Console.WriteLine(ojObject.Value);
259+
JValue ojObject = (JValue)joResponse[tokenName];
261260
token = ojObject.Value.ToString();
262261
}
263262
return token;

articles/key-vault/tutorial-net-windows-virtual-machine.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.custom: mvc
1919

2020
Azure Key Vault helps you to protect secrets such as API Keys, Database Connection strings needed to access your applications, services, and IT resources.
2121

22-
In this tutorial, you follow the necessary steps for getting an Azure web application to read information from Azure Key Vault by using managed identities for Azure resources. This tutorial is based on [Azure Web Apps](../app-service/app-service-web-overview.md). In the following you learn how to:
22+
In this tutorial, you follow the necessary steps for getting an Console application to read information from Azure Key Vault by using managed identities for Azure resources. This tutorial is based on [Azure Web Apps](../app-service/app-service-web-overview.md). In the following you learn how to:
2323

2424
> [!div class="checklist"]
2525
> * Create a key vault.
@@ -47,7 +47,7 @@ Here’s how it works! When you enable MSI for an Azure service such as Virtual
4747

4848
![MSI](media/MSI.png)
4949

50-
Next, Your code calls a local metadata service available on the Azure resource to get an access token.
50+
Next, your code calls a local metadata service available on the Azure resource to get an access token.
5151
Your code uses the access token it gets from the local MSI_ENDPOINT to authenticate to an Azure Key Vault service.
5252

5353
## Log in to Azure
@@ -199,8 +199,7 @@ Then change the class file to contain the below code. It's a 2 step process.
199199
String responseString = reader.ReadToEnd();
200200
201201
JObject joResponse = JObject.Parse(responseString);
202-
JValue ojObject = (JValue)joResponse[tokenName];
203-
Console.WriteLine(ojObject.Value);
202+
JValue ojObject = (JValue)joResponse[tokenName];
204203
token = ojObject.Value.ToString();
205204
}
206205
return token;

0 commit comments

Comments
 (0)