Skip to content

Commit ac7675f

Browse files
Update keyless-connections.md
The correct audience for Azure Cognitive Search with RBAC is https://search.azure.com (not https://search.windows.net). Old SDKs or legacy code might use .windows.net, but for Azure AD/RBAC, it’s .azure.com.
1 parent 09ec12f commit ac7675f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/search/keyless-connections.md

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

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

190190
service_endpoint = os.environ["AZURE_SEARCH_ENDPOINT"]

0 commit comments

Comments
 (0)