Closed matyjas closed 2 weeks ago
@matyjas Thanks for your feedback! We will investigate and update as appropriate.
@matyjas Instead of commenting the below line of code in function_app.py
file.
@app.route(route="HttpExample") #, auth_level=func.AuthLevel.Anonymous)
def HttpExample(req: func.HttpRequest) -> func.HttpResponse:
Please try the any of the below work around to run the function without any issues.
Work Around 1:
@app.route(route="HttpExample", auth_level=func.AuthLevel.ANONYMOUS)
def HttpExample(req: func.HttpRequest) -> func.HttpResponse:
WorkAround 2:
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
@app.route(route="HttpExample")
def HttpExample(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
Also, I see there is an active issue related to this which is reported in Azure function tool github repo here #3651.
I would suggest you follow the latest discussion over there. We will close this out, but if you feel you need more information, please just let us know.
When following the instructions for Azure Functions local development in Python using Command Line Tools on Ubuntu 20.04; on running
func start
the following error appears:which is resolved by commenting out half the annotation as in the following example:
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.