A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://stackoverflow.com/questions/79721214/python-azure-function-not-visible below:

Python Azure Function Not visible

I have an Azure Function I've written in Python. It works locally and I wrote a dev ops pipeline to package and deploy it, which also seems to work.

You can see the local version of the code executed as below;

func host start

I package up a zip file in Azure Devops and deploy that to a terraform created the Azure Function. The deployment runs file and the zip file is a flat structure containing.

Python files

host.json
requirements.txt 

You can see these are actually deployed in the Azure Portal - App Files:

I don't think this is something to do with the pipeline.

The function_app.py has the following tagging (my understanding is this is what signifies and endpoint):

app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)

# Load the Data 
df = load_dataframe() #Loaded once at start up

@app.function_name(name="is_on_list")
@app.route(route="match-names", auth_level=func.AuthLevel.ANONYMOUS)
def main(req: func.HttpRequest) -> func.HttpResponse:

Configuration values of the function are as follows:

Environment variables;

I have spent about 4 hours trying various things on this - I just simply cannot see an endpoint recognised in the Azure Portal - this is further shown when I run the following PowerShell script:

az functionapp function list --resource-group <myRg> -n <myFunctionName> 

This returns an empty collection.

Can someone please explain to me what is missing / what I've done wrong - because I am lost as how this can work locally fine - but fails on deployment


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4