Azure / Azure/Azure-Functions

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

Open
#2,132 5 comments 2 reactions 1 assignee Claimed by @v-bbalaiagar View on GitHub
bug
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

# 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](https://user-images.githubusercontent.com/31316150/147030536-73c74689-f8d8-44d7-9f8a-5ec984efd5d3.png)

# 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](https://user-images.githubusercontent.com/31316150/147031081-f7d93a16-dba0-4315-9baa-1da2b00ad456.png)

# 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 :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.