MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.48k forks source link

Azure Functions - Python Binding "name" Property Restrictions #106912

Open tkutcher opened 1 year ago

tkutcher commented 1 year ago

In Azure Functions, it appears as if binding names cannot contain underscores. In python, with snake_case being a common style for variable names, it is extremely unobvious that this is a restriction (since in most programming languages an identifier would be allowed to have underscores), and the only available indication/troubleshooting is that web responses return a 404 status code. After a long session of figuring out why I was getting 404 errors, I finally came upon this stackoverflow post which confirmed my last attempt/theory.

It would definitely have been a benefit if somewhere in the docs (my linked page, or maybe as a common issue on the "troubleshooting" page here, it mentioned the regex/expectation for binding names to work properly.

Thanks


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 1 year ago

@tkutcher Thanks for your feedback! We will investigate and update as appropriate.