Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
331 stars 100 forks source link

[BUG] Cannot disable azure functions with '-' in name in Linux environment #1308

Open ZirconCode opened 10 months ago

ZirconCode commented 10 months ago

This is a known issue apparently.

There is a warning about it in the documentation here.

At this time, function names that contain a hyphen (-) can't be disabled when running on Linux plan. If you need to disable your functions when running on Linux plan, don't use hyphens in your function names.

There should be a warning or restriction on this when creating a function in visual code.

There should be a more useful error message in portal than:

Failed to disable alg-bands AppSetting with name 'AzureWebJobs.alg-bands.Disabled' is not allowed.

edit: see here for why it is important and relevant to me

ZirconCode commented 10 months ago

Renaming functions is difficult in a large project, and I have not seen an official guide to it.

bhagyshricompany commented 10 months ago

Please refer this document:https://learn.microsoft.com/en-us/azure/azure-functions/disable-function?tabs=portal image need discussion on this will update once done