Skip to content

Commit 26ea236

Browse files
committed
Added more powershell steps for parity
1 parent fca5ab8 commit 26ea236

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/search/search-security-api-keys.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@ You can view and manage API keys in the [Azure portal](https://portal.azure.com)
9999

100100
:::image type="content" source="media/search-manage/azure-search-view-keys.png" alt-text="Screenshot of a portal page showing API keys." border="true":::
101101

102+
### [**PowerShell**](#tab/azure-ps-find)
103+
104+
1. Install the Az.Search module:
105+
106+
```azurepowershell
107+
Install-Module Az.Search
108+
```
109+
110+
1. Return admin keys:
111+
112+
```azurepowershell
113+
Get-AzSearchAdminKeyPair -ResourceGroupName <resource-group-name> -ServiceName <search-service-name>
114+
```
115+
116+
1. Return query keys:
117+
118+
```azurepowershell
119+
Get-AzSearchQueryKey -ResourceGroupName <resource-group-name> -ServiceName <search-service-name>
120+
```
121+
102122
### [**Azure CLI**](#tab/azure-cli-find)
103123

104124
Use the following commands to return admin and query API keys, respectively:

0 commit comments

Comments
 (0)