-
Notifications
You must be signed in to change notification settings - Fork 461
Description
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
- Create an Azure function as per standard documentation / process. Ensure this function is using Linux host and function is developed using Python.
- Add a configuration setting
AzureWebJobs.<FUNCTION_NAME>.Disabled
(where FUNCTION_NAME is replaced with a valid function name) - Deploy the function using the command -
func azure functionapp publish "my-test-func" --python --build remote
- The deployment times out.