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: README.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,12 +103,31 @@ This command shows the secret information including the URI. After completing th
103
103
104
104
Open Program.cs file and update the placeholder <YourKeyVaultName> with the name of your Key Vault that you created in Step 3
105
105
106
-
#### 7) Run the app
106
+
#### 7) Set the environment variable for DefaultAzureCredential
107
+
Follow one of the examples below depending on your operating system to create the environment variable. If using Windows close your open IDE or shell and restart it to be able to read the environment variable.
When the browser appears, navigate to the About page. The value for the AppSecret is displayed.
110
129
111
-
#### 8) Publish the web application to Azure
130
+
#### 9) Publish the web application to Azure
112
131
113
132
1. In Visual Studio, select **key-vault-dotnet-core-quickstart** Project.
114
133
2. Select **Publish** then **Start**.
@@ -117,7 +136,7 @@ This command shows the secret information including the URI. After completing th
117
136
5. Select **Create**.
118
137

119
138
120
-
#### 8) Enable Managed Service Identity
139
+
#### 10) Enable Managed Service Identity
121
140
Azure Key Vault provides a way to securely store credentials and other keys and secrets, but your code needs to authenticate to Key Vault to retrieve them. Managed Service Identity (MSI) makes solving this problem simpler by giving Azure services an automatically managed identity in Azure Active Directory (Azure AD). You can use this identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without having any credentials in your code.
0 commit comments