Skip to content

There is no examples of authenticating with EntraID on this page #32177

Open
@khowling

Description

@khowling

Type of issue

Missing information

Description

I'm trying to get AI Search to Auth with EntraID, as that is the best recommended way of authenitcating into all azure services. I feel all the api key based examples should be updated with entra id examples.

I've been trying for a while now to do this, but just keep getting 403, despite having the the required roles, so would be great to have a code example

const indexClient = new SearchIndexClient(
  process.env.AISEARCH_ENDPOINT,
  new DefaultAzureCredential()
);

Page URL

https://learn.microsoft.com/en-us/javascript/api/overview/azure/search-documents-readme?view=azure-node-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/latest/search-documents-readme.md

Document Version Independent Id

bbdda1cc-8bcc-f451-adc3-336cdc222621

Article author

@azure-sdk

Metadata

  • ID: bc0fe95b-a94f-c1e7-5d15-668e4f974b97
  • Service: search

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Searchcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions