Skip to content

Commit e4c4323

Browse files
Merge pull request #222256 from shreyabatra4/http_auth_level
auth_level to be http_auth_level
2 parents 64a9788 + 79da94a commit e4c4323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/create-first-function-vs-code-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
9191
7. Replace the `app.route()` method call with the following code:
9292

9393
```python
94-
@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)
94+
@app.route(route="hello", http_auth_level=func.AuthLevel.ANONYMOUS)
9595
```
9696

9797
This code enables your HTTP function endpoint to be called in Azure without having to provide an [Authorization keys](functions-bindings-http-webhook-trigger.md#authorization-keys). Local execution doesn't require authorization keys.
@@ -100,7 +100,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
100100

101101
```python
102102
@app.function_name(name="HttpTrigger1")
103-
@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)
103+
@app.route(route="hello", http_auth_level=func.AuthLevel.ANONYMOUS)
104104
def test_function(req: func.HttpRequest) -> func.HttpResponse:
105105
logging.info('Python HTTP trigger function processed a request.')
106106

0 commit comments

Comments
 (0)