1

Any examples on how to create Azure Functions with Azure Python SDK ?

is https://learn.microsoft.com/en-us/python/api/azure.mgmt.web.models.Site?view=azure-python a correct reference for it?

1 Answer 1

4

Explicit examples, at my knowledge there is not. But it's definitely using the azure-mgmt-web package you point at. You need to create an AppPlan (or serverfarm), and then a webapp of kind "functionapp".

The closest to an example would probably to look at what the Azure CLI (written in Python) is doing: https://github.com/Azure/azure-cli/blob/e0c49d6fd4778b8e0c8884a54bca1716a916763e/src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/custom.py#L1613-L1684

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.