File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ from azure.search.documents import SearchClient
185185from 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"
189189authority = AzureAuthorityHosts.AZURE_PUBLIC_CLOUD
190190
191191service_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
You can’t perform that action at this time.
0 commit comments