pablocastro , I added the Storage Blob Data Contributor to the Storage Account and the Search Service Contributor to the Search Service, but still the index and tables are not being created. Were there any other roles that I am missing? I did re-run azd login and then scripts/prepdocs.ps1. The error I am still getting is:
Ensuring search index gptkbindex exists
DefaultAzureCredential failed to retrieve a token from the included credentials.
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint.
SharedTokenCacheCredential: Azure Active Directory error '(invalid_grant) AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2021-10-12T21:55:34.6692598Z and was inactive for 90.00:00:00
There are the permission under the Storage Account:
- Cognitive Services OpenAI User
- Cognitive Services User
- Contributor
- Log Analytics Contributor
- Microsoft.Insights
- Search Index Data Contributor
- Search Index Data Reader
- Storage Blob Data Contributor
- Storage Blob Data Reader
These are the permission under the Search Service:
- Cognitive Services OpenAI User
- Cognitive Services User
- Contributor
- Log Analytics Contributor
- Microsoft.Insights
- Search Index Data Contributor
- Search Index Data Reader
- Search Service Contributor