Disabled Functions on staging environment are fired after deployment

Nousha van Dijk (Q42) 0 Reputation points
2024-07-30T07:26:25.5633333+00:00

Hi,

I have a Timer trigger function disabled on the staging environment and enabled on the live environment. When I deploy my app to the staging environment and swap it, the function is invoked on the staging environment right after the deployment (even though the timer is set to a different day/time and the function is disabled).

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

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 16,046 Reputation points
    2024-08-12T19:13:59.88+00:00

    Hi @Nousha van Dijk (Q42) Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    During a swap the setting from the target slot, which is production slot in your case, will be applied to source slot, i.e. staging slot. The applied settings include the following categories:

    You have an option to make the app settings as sticky before you perform a swap operation such that the settings do not get applied to other slots.

    In addition to this, if you are using a ZipDeploy using Arm template, please validate that you are targeting the correct slot for deployment.

    Please let us know if you still need assistance with this issue.

    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.