azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Local Python function V2 has V1 example reference

Open DevopsMercenary opened this issue 2 years ago • 1 comments

I was following this document the Quickstart: Create a Python function in Azure from the command line

and I'm using the v2 Python Programming model.

The directions at the location https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-python?pivots=python-mode-decorators&tabs=azure-cli%2Cbash#run-the-function-locally

Specifically step #2, a snippet Copy the URL of your HTTP function from this output

This step shouldn't be here for the Python V2 programming Model.

In V1 Python Programming model, the example we have to copy and paste from the docs, BUT in V2 we DO NOT because the template has already generated a proper HTTP function.

V1's example HTTP function is more complex than the V2 default template and step #2 works, BUT in V2 all we get in the browser is....

image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

DevopsMercenary avatar Dec 05 '22 18:12 DevopsMercenary

Thank you for your feedback! We will review and update as appropriate.

mike-urnun-msft avatar Dec 05 '22 20:12 mike-urnun-msft

Thanks @DevopsMercenary! We'll get this addressed soon.

ggailey777 avatar Dec 14 '23 17:12 ggailey777