How to set environment variables in a function app

Parag Kale 25 Reputation points
2025-05-13T18:27:29.0966667+00:00

Hi,

I have a function app deployed to app service. We are not using easy auth in our environment as we use function keys in our environment to secure the http function end points.

I want to know if there is a way for me to set the environment variables like WEBSITE_AUTH_OPENID_ISSUER and WEBSITE_AUTH_CLIENT_ID ?. From what I have read so far, these are automatically set when easy auth is set up. But my requirement is that I somehow need to set it up separately as I am not using easy auth.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Praveen Kumar Gudipudi 1,875 Reputation points Microsoft External Staff Moderator
    2025-05-13T21:20:43.1866667+00:00

    Hello Parag Kale,

    You are only supposed to set WEBSITE_AUTH_CLIENT_ID and WEBSITE_AUTH_OPENID_ISSUER settings when deploying DfMon outside Azure (e.g. into a K8s cluster). If you deploy DfMon as an Azure Functions instance, you should not set those settings exactly because they're already set by the platform.

    And the recommended authentication mode in that case is server-directed login flow. Instructions on how to configure your AAD application for that flow are here

    You can also refer below similar GitHub issue:
    https://github.com/microsoft/DurableFunctionsMonitor/issues/104

    Please follow above suggested steps and let us know with an update.

    0 comments No comments

Your answer

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