Skip to content

Commit d78cfe7

Browse files
committed
fix list
1 parent 2bbf068 commit d78cfe7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/cognitive-services/rotate-keys.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ Each Cognitive Services resource has two API keys to enable secret rotation. Thi
2020
Keys can be rotated using the following procedure:
2121

2222
1. If you're using both keys in production, change your code so that only one key is in use. In this guide, assume it's key 1.
23+
2324
This is a necessary step because once a key is regenerated, the older version of that key will stop working immediately. This would cause clients using the older key to get 401 access denied errors.
2425
1. Once you have only key 1 in use, you can regenerate the key 2. Go to your resource's page on the Azure portal, select the **Keys and Endpoint** tab, and select the **Regenerate Key 2** button at the top of the page.
2526
1. Next, update your code to use the newly generated key 2.
27+
2628
It will help to have logs or availability to check that users of the key have successfully swapped from using key 1 to key 2 before you proceed.
2729
1. Now you can regenerate the key 1 using the same process.
2830
1. Finally, update your code to use the new key 1.

0 commit comments

Comments
 (0)