How do I add an environment variable (eg. 3rd party URL) to my Azure Developer CLI "todo-nodejs-mongo-aks" template?

Thomas Hansen 0 Reputation points


I am using azd to provision and deploy the todo-nodejs-mongo-aks template.

It is working fine, and now I want to add a URL to a 3rd party API (eg. for use in the /api part of the app. For this I am creating an environment variable (azd env set 3RD_PARTY_API_URL which creates an entry in .azure/my-company/.env file. I can now read 3RD_PARTY_API_URL when running the app locally as expected.

But when I deploy the app to azure using azd up , I can no longer read the 3RD_PARTY_URL on the deployed (live) instance. Please advice on how I should handle this.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
30,420 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 29,906 Reputation points Microsoft Employee

    @Thomas Hansen

    Azure Developer CLI is not currently supported on Q&A. Please post your question on the GitHub discussion page.

    0 comments No comments