Azure / Azure-Functions

1.11k stars 194 forks source link

Cannot disable/enable hyphen-named Azure functions in Azure Portal #2132

Open JowieXiang opened 2 years ago

JowieXiang commented 2 years ago

Error description

Cannot disable or enable an hyphen-named Azure function in the Portal. The action fails with an error alert that is not very helpful.

image

Possible cause

The diable/enable action adds a application settings variable in the background, but the app settings does not support hyphen in variable names, and the Functions panel does not know about it.

image

Possible solutions

  1. Discourage users to name azure functions with hyphen?
  2. Give meaningful error alert in the Function Panel
  3. enable hyphen support in app settings..

Would be nice to solve this inconsistency for a better user experience :)

v-bbalaiagar commented 2 years ago

Hi @JowieXiang, Thank you for your feedback! We will check for the possibilities internally and update you with the findings.

v-bbalaiagar commented 2 years ago

Hi @pragnagopa , Could you please take a look at this issue.

pragnagopa commented 2 years ago

Tagging @takyyon to help track the issue on the Portal

KuSh commented 5 months ago

Also see https://github.com/Azure/Azure-Functions/issues/1851

KuSh commented 5 months ago

It's a documented bug (ALAS a little bit too hidden IMHO), see: https://learn.microsoft.com/en-us/azure/azure-functions/disable-function?tabs=portal#considerations

Didn't found any workaround. I did read somewhere that using terraform works but I haven't been able to test it.