An Azure service that provides an event-driven serverless compute platform.
Azure Function Apps: Function not found in portal
Hi,
can anybody tell me what's the criteria for a function to show in the azure portal (to be callable from logic apps etc)?
I've got the following basic function and I just changed the Auth Level from Anonymous to Function back to Anonymous and then the function was not recognised anymore in the portal. It is stored in the file "function_app.py" and as far as I understood these are the only criteria for azure to recognise functions? anybody has any idea?
@app.route(route="http_trigger", auth_level=func.AuthLevel.ANONYMOUS)
def http_trigger(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
name = req.params.get('name')
if not name:
try:
req_body = req.get_json()
except ValueError:
pass
else:
name = req_body.get('name')
if name:
return func.HttpResponse(f"Hello, {name}. This HTTP triggered function executed successfully.")
else:
return func.HttpResponse(
"This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.",
status_code=200
)
Azure Functions
Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.