azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Unable to deploy this demo using azd up command
Hi,
We are planning to deploy this demo in our azure subscription. We have followed all the prerequisites. We logged in using "azd auth login" . But when running azd up command its failing with below error message.
ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:
Deployment Error Details:
UnmatchedPrincipalType: The PrincipalId '
TraceID:
ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:
Deployment Error Details:
UnmatchedPrincipalType: The PrincipalId '
Could you please help us in solving this.
Thanks!
Hi @Anusha2015,
DefaultAzureCredential goes to your environment variables first as documented here https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python. If you have set AZURE_CLIENT_ID and AZURE_CLIENT_SECRET to point to a service principal, it's probably picking this up and using that instead of your identity. If you have set these variables, please try removing them and try again.
Please let me know if this helps, Matt