azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Unable to deploy this demo using azd up command

Open Anusha2015 opened this issue 1 year ago • 1 comments

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 '' has type 'ServicePrincipal' , which is different from specified PrinciaplType 'User'.

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 '' has type 'ServicePrincipal' , which is different from specified PrinciaplType 'User'.

Could you please help us in solving this.

Thanks!

Anusha2015 avatar Feb 27 '24 14:02 Anusha2015

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

mattgotteiner avatar Feb 27 '24 18:02 mattgotteiner