azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

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

Open ZirconCode opened this issue 2 years ago • 2 comments

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 avatar Aug 24 '23 09:08 ZirconCode

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

ZirconCode avatar Aug 24 '23 10:08 ZirconCode

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

bhagyshricompany avatar Aug 28 '23 10:08 bhagyshricompany