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
185
185
from azure.identity import DefaultAzureCredential, AzureAuthorityHosts
186
186
187
187
# Azure Public Cloud
188
- audience = " [ https://search.windows.net](https://search. azure.com) "
188
+ audience = " https://search.azure.com"
189
189
authority = AzureAuthorityHosts.AZURE_PUBLIC_CLOUD
190
190
191
191
service_endpoint = os.environ[" AZURE_SEARCH_ENDPOINT" ]
@@ -204,6 +204,12 @@ search_index_client = SearchIndexClient(
204
204
audience = audience)
205
205
```
206
206
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
+
207
213
---
208
214
209
215
## Local development
You can’t perform that action at this time.
0 commit comments