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: articles/key-vault/tutorial-rotation.md
+69-65Lines changed: 69 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Function app requires below components and configuration:
66
66
- Storage Account
67
67
- Access policy to access secrets in Key Vault using Function App Managed Identity
68
68
69
-
Use the Azure Resource Manager template to create components by selecting this link: [Deploy](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fjlichwa%2Fazure-keyvault-basicrotation-tutorial%2Fmaster%2Farm-templates%2Ffunction-app%2Fazuredeploy.json)
69
+
1.Use the Azure Resource Manager template to create components by selecting this link: [Deploy](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fjlichwa%2Fazure-keyvault-basicrotation-tutorial%2Fmaster%2Farm-templates%2Ffunction-app%2Fazuredeploy.json)
70
70
1. For "Resource Group", select "simplerotation".
71
71
1. Select "Purchase".
72
72
@@ -92,12 +92,12 @@ For information how to create Function App and using Managed Identity to access
92
92
93
93
### Rotation function and deployment
94
94
95
-
Rotation function is using event grid as a trigger, retrieves secret information and executes rotation:
95
+
Create a rotation function that retrieves the secret and executes rotation, using event grid as a trigger:
az keyvault secret set --name sqluser --vault-name simplerotation-kv --value "Simple123" --tags "UserID=azureuser" "DataSource=simplerotation-sql.database.windows.net" --expires $tomorrowDate
205
205
```
206
206
207
-
Creating secret with short expiration date would immediately publish SecretNearExpiry event which would trigger function to rotate the secret.
207
+
Creating a secret with a short expiration date will immediately publish a SecretNearExpiry event, which will in turn trigger the function to rotate the secret.
208
208
209
209
### Test and verify
210
-
After few minutes sqluser secret should automatically rotate.
210
+
After few minutes, sqluser secret should automatically rotate.
211
211
212
-
To verify secret rotation verification, go to Key Vault>Secrets
212
+
To verify secret rotation verification, go to Key Vault > Secrets
213
213
214
214

215
215
216
-
Open sqluser secret to see initial and rotated version
216
+
Open the "sqluser" secret and view the original and rotated version
217
217
218
218

219
219
220
-
To verify SQL credentials, use a web application. The web application will get secret from key vault, extract sql database information and credentials from secret and test connection to sql.
221
-
222
220
## Create Web App
223
221
224
-
Web app requires below components and configuration:
222
+
To verify SQL credentials, create a web application. This web application will get the secret from key vault, extract sql database information and credentials from the secret, and test the connection to sql.
223
+
224
+
The web app requires below components and configuration:
225
225
- Web App with System Managed Identity
226
226
- Access policy to access secrets in Key Vault using Web App Managed Identity
227
227
228
-
Azure Resource Manager template to create components:
1. Use the Azure Resource Manager template to create components by selecting this link: [Deploy](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fjlichwa%2Fazure-keyvault-basicrotation-tutorial%2Fmaster%2Farm-templates%2Fweb-app%2Fazuredeploy.json)
Source code for the web app is at https://github.com/jlichwa/azure-keyvault-basicrotation-tutorial/tree/master/test-webapp.To deploy the web app, do the following:
0 commit comments