Skip to content

Commit 059e6ed

Browse files
Merge pull request #6525 from HeidiSteen/heidist-freshness
custom audience for azure cloud
2 parents 6da4130 + b5f6786 commit 059e6ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/search/keyless-connections.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ from azure.search.documents import SearchClient
185185
from azure.identity import DefaultAzureCredential, AzureAuthorityHosts
186186

187187
# Azure Public Cloud
188-
audience = "[https://search.windows.net](https://search.azure.com)"
188+
audience = "https://search.azure.com"
189189
authority = AzureAuthorityHosts.AZURE_PUBLIC_CLOUD
190190

191191
service_endpoint = os.environ["AZURE_SEARCH_ENDPOINT"]
@@ -204,6 +204,12 @@ search_index_client = SearchIndexClient(
204204
audience=audience)
205205
```
206206

207+
The default authority is Azure public cloud. Custom `audience` values for sovereign or specialized clouds include:
208+
209+
* `https://search.azure.us` for Azure Government
210+
* `https://search.azure.cn` for Azure China
211+
* `https://search.microsoftazure.de` for Azure Germany
212+
207213
---
208214

209215
## Local development

0 commit comments

Comments
 (0)