You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code generated by the call below is incorrect for both v1 and v2 for Python. func new --name HttpExample --template "HTTP trigger" --authlevel anonymous
This will generate the following line in function_app.py. @app.route(route="HttpExample", auth_level=func.AuthLevel.Anonymous)
This should be: @app.route(route="HttpExample", auth_level=func.AuthLevel.ANONYMOUS)
This breaks most getting started samples on mslearn for Python out of the box.
The text was updated successfully, but these errors were encountered:
Hi @robotdad I was able to repro the issue described with the string showing up in lowercase instead of all upper case- but not your second comment that the auth level always shows as Anonymous regardless of the indicated auth level. Can you please confirm the version of Core Tools you are using?
My comment was unclear, apologies. I meant that the casing of what I pass as the value to specify anonymous does not impact the code generation, either --authlevel ANONYMOUS or --authlevel anonymous generate the same code that uses mixed case Anonymous.
If I don't specify --authlevel then func tools prompts to select a value and when choosing ANONYMOUS the generated code is correct.
The code generated by the call below is incorrect for both v1 and v2 for Python.
func new --name HttpExample --template "HTTP trigger" --authlevel anonymous
This will generate the following line in function_app.py.
@app.route(route="HttpExample", auth_level=func.AuthLevel.Anonymous)
This should be:
@app.route(route="HttpExample", auth_level=func.AuthLevel.ANONYMOUS)
This breaks most getting started samples on mslearn for Python out of the box.
The text was updated successfully, but these errors were encountered: