简体   繁体   English

如何从Azure python SDK创建Azure函数?

[英]how to create Azure Functions from Azure python sdk?

Any examples on how to create Azure Functions with Azure Python SDK ? 有关如何使用Azure Python SDK创建Azure函数的任何示例?

is https://docs.microsoft.com/en-us/python/api/azure.mgmt.web.models.Site?view=azure-python a correct reference for it? https://docs.microsoft.com/zh-cn/python/api/azure.mgmt.web.models.Site?view=azure-python是正确的参考吗?

Explicit examples, at my knowledge there is not. 明确的例子,据我所知没有。 But it's definitely using the azure-mgmt-web package you point at. 但这绝对是您使用的azure-mgmt-web软件包。 You need to create an AppPlan (or serverfarm), and then a webapp of kind "functionapp". 您需要创建一个AppPlan(或serverfarm),然后创建一个类型为“ functionapp”的webapp。

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 最接近示例的示例可能是看Azure CLI(用Python编写)在做什么: https : //github.com/Azure/azure-cli/blob/e0c49d6fd4778b8e0c8884a54bca1716a916763e/src/command_modules/azure-cli-appservice/蔚蓝/ CLI / command_modules / AppService服务/ custom.py#L1613-L1684

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM