Share via

ERROR: planning deployment: planning infrastructure provisioning: creating parameters file: fetching current principal id: getting tenant id for subscription

Mariscal, Manel 10 Reputation points
2023-05-10T11:30:37.6633333+00:00

Hello,

I am trying to use Azure Cognitive Search with Azure ChatGPT, but when I execute sudo azd up, I ignore if it is something with the permissions or with any mistake, on my .env I already set the RESOURCE_GROUP and SERVICE_OPENAI, it retrieves the following error, how could I fix it?

Let me show you the traceback i have:

/azure-search-openai-demo$ sudo azd up Packaging services (azd package) | | Packaging service backendExecuting prepackage hook => /tmp/azd-prepackage-652447636.sh up to date, audited 122 packages in 670ms 10 packages are looking for funding run npm fund for details found 0 vulnerabilities |===== | Packaging service backend > frontend@0.0.0 build > tsc && vite build | ==| Packaging service backendvite v4.1.1 building for production... ✓ 1250 modules transformed. ../backend/static/index.html 0.47 kB ../backend/static/assets/github-fab00c2d.svg 0.96 kB ../backend/static/assets/index-2fb53ec2.css 7.44 kB │ gzip: 2.19 kB ../backend/static/assets/index-7abdfda7.js 625.74 kB │ gzip: 204.86 kB │ map: 5,054.95 kB (!) Some chunks are larger than 500 kBs after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. (✓) Done: Packaging service backend - Package Output: /tmp/azddeploy1831097599.zip Provisioning Azure resources (azd provision) Provisioning Azure resources can take some time ERROR: planning deployment: planning infrastructure provisioning: creating parameters file: fetching current principal id: getting tenant id for subscription 91uyd735-3a27-XXXX-XXXXX-XXXXXXXXXX. Error: not logged in, run azd auth login to login

ERROR: planning deployment: planning infrastructure provisioning: creating parameters file: fetching current principal id: getting tenant id for subscription 91uyd735-3a27-XXXX-XXXXX-XXXXXXXXXX. Error: not logged in, run azd auth login to login

It does not give any hint to trace it back

Thank you

Azure OpenAI in Foundry Models

1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2023-05-12T16:18:05.4666667+00:00

    @Mariscal, Manel I have come across a similar issue where the command azd auth login did not authenticate for a user. It seems like the resolution was to use --use-device-code parameter with the command. Could you please check if this works for your case? Thanks

    azd auth login --use-device-code

    or

    az login

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.