Closed seangwright closed 3 years ago
@fabiocav @mathewc is it indeed by design that you can't have a function starting with admin
or is this something that can be fixed?
The restriction is on the function route, and in this case, since the route is not set (it's set to null
), the function name becomes the route, which is invalid
any update on this?
still relevant @fabiocav @ahmelsayed ?
This is still relevant, and should at least be mentioned on the documentation. I spent hours trying to find out why I was getting 404 responses.
This issues still exists and it is really annoying. Why am I being prevented from creating a function that starts with "admin" in a function app? This should at least be in the documentation.
I'm moving the issue to https://github.com/Azure/azure-functions-host/ since the limitation comes from there.
Closing this issue as document issue is opened. Please provide your inputs here - https://github.com/MicrosoftDocs/azure-docs/issues/80267
OS: Win 10 x64 VS: 2017 15.4.4 Professional Packages:
If I prefix a
[FunctionName]
attribute withadmin
the sdk reports an error in the console and will not expose the function.Example
Whereas
[FunctionName("results-email-admin")]
works fine.Either this shouldn't actually conflict with a built in route or the documentation should be updated indicating you can't use the above pattern for function names.