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.
ID: 7d575e82-637b-32de-e64d-75adf4b6d976
Version Independent ID: e346a973-fcb9-0c10-c1ed-17acd806ced9
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.