Skip to content

Commit

Permalink
test function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Laferla committed Sep 18, 2023
1 parent 7807fca commit cfc638b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/function_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import azure.functions as func
import logging

app = func.FunctionApp()

@app.function_name(name="HttpTrigger1")
@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)
def test_function(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
return func.HttpResponse(
"This HTTP triggered function executed successfully.",
status_code=200
)

0 comments on commit cfc638b

Please sign in to comment.