Open mikepugh opened 11 months ago
@mikepugh if you look in your .azure/\<env-name>/.env file are all the environment variables set?
I believe these should be the environment variables you'd need for the script to run.
https://github.com/Azure-Samples/azure-search-openai-demo-csharp/issues/154#issuecomment-1741401188
Yes the environment variables are all set. Thanks
FWIW - I had this issue due to tenant permissions settings, being an Owner on the environment objects fixed all the PrepareDocs subproject issues. I think this sample was created assuming you are GA in the tenant, sub owner isn't sufficient for tenant-wide settings like App Registrations
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Content: {"error":{"code":"","message":"Authorization failed."}}
Headers: Server: Microsoft-IIS/10.0 Strict-Transport-Security: REDACTED Preference-Applied: REDACTED client-request-id: 9... x-ms-client-request-id: 9... request-id: 9... elapsed-time: 11 Date: Mon, 16 Oct 2023 14:37:56 GMT Content-Length: 55 Content-Type: application/json; charset=utf-8 Content-Language: REDACTED
at Azure.Search.Documents.IndexesRestClient.ListAsync(String select, CancellationToken cancellationToken) at Azure.Search.Documents.Indexes.SearchIndexClient.<>c__DisplayClass58_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---