azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Publishing Azure functions, for Linux with python language, times out if we include AzureWebJobs.<FUNCTION_NAME>.Disabled app setting.

Open kesane-msft opened this issue 3 months ago • 1 comments

Version

Python: 3.12.10

Azure Functions Core Tools Core Tools Version: 4.2.2+78afd8b84c8e31f0ddac570ba9e8128eefbd3d4a (64-bit) Function Runtime Version: 4.1041.200.25360

Description

Following guidance in https://learn.microsoft.com/en-us/azure/azure-functions/disable-function?tabs=portal. If I add a configuration setting AzureWebJobs.<FUNCTION_NAME>.Disabled (where FUNCTION_NAME is replace with name of my function) then deploying the Azure function using the Azure Functions Core Tools fails. Following is sample output -

Starting the function app deployment...
Updating Application Settings for Remote build...
Timed out waiting for SCM to update the Environment Settings

Just removing the configuration setting deploys the function successfully. Interestingly, even the option to "Enable"/ "Disable" function from the Azure Portal does not work. There is no action that takes place on clicking the option. However, if I manually define a configuration setting via the Azure portal then I get the desired behavior.

Note: This works as expected if the function is targeting C# on Windows. It only fails for Python on Linux. (didn't try other combinations)

Steps to reproduce

  1. Create an Azure function as per standard documentation / process. Ensure this function is using Linux host and function is developed using Python.
  2. Add a configuration setting AzureWebJobs.<FUNCTION_NAME>.Disabled (where FUNCTION_NAME is replaced with a valid function name)
  3. Deploy the function using the command - func azure functionapp publish "my-test-func" --python --build remote
  4. The deployment times out.

kesane-msft avatar Sep 24 '25 20:09 kesane-msft

Out of curiousity, do you run into this issue if you try deploying via the az cli directly instead of core tools?

https://learn.microsoft.com/en-us/cli/azure/functionapp?view=azure-cli-latest

liliankasem avatar Sep 26 '25 18:09 liliankasem