|
| 1 | +--- |
| 2 | +title: Azure Search Query |
| 3 | +--- |
| 4 | + |
| 5 | +_This tutorial provides step-by-step instructions on how to rotate an Azure Search Query Key._ |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Generate a new Azure Search Query Key |
| 10 | + |
| 11 | +### Step 1 - Navigate to the Azure Search Keys page |
| 12 | + |
| 13 | +#### 1a. Navigate to `Azure AI` |
| 14 | + |
| 15 | +Navigate to the `AI search` under `Azure AI services` page and click on the relevant `Azure Search service`. |
| 16 | + |
| 17 | + |
| 18 | +#### 1b. Navigate to `Keys` page |
| 19 | + |
| 20 | +Under `Settings`, click on `Keys`. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +### Step 2 - Generate a new key |
| 25 | + |
| 26 | +#### 2a. Create a new key |
| 27 | + |
| 28 | +Under `Manage query keys`, click `Add` buttton and provide name of the new query key. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +#### 2b. Copy the new token |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## Replace the Leaked Azure Search Query Key |
| 39 | + |
| 40 | +Replace the leaked Azure Search Query Key with the new one in all impacted applications and services. |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +## Revoke the Leaked Azure Search Query Key |
| 45 | + |
| 46 | +Hover and mark check the leaked key to enable the `Delete` button. Ensure you're deleting the correct leaked key. |
| 47 | + |
| 48 | + |
| 49 | +Confirm the key deletion action by clicking `Yes`. |
| 50 | + |
| 51 | +> Note: Clicking `Yes` will revoke the existing key. |
| 52 | +
|
| 53 | +## Resources |
| 54 | + |
| 55 | +- [Azure Search Query Keys Documentation](https://learn.microsoft.com/en-us/rest/api/searchservice/index-preview) |
0 commit comments