从Zip文件部署Azure功能 [英] Deploy Azure Function from a Zip file

查看:77
本文介绍了从Zip文件部署Azure功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Azure函数的新手.我正在尝试将具有3个功能的Azure Function应用程序部署到我们的SIT环境中.我无权访问SIT来从Visual Studio发布功能.因此,我一直在研究如何压缩项目并进行部署 到SIT Azure门户.我发现如下所示的Zip部署方法.

I am new to Azure function. I am trying to deploy an Azure Function App with 3 functions to our SIT environment. I don't have access to SIT to publish the functions from Visual Studio. So, I have been researching to see how can I zip the project up and deploy to the SIT Azure portal. I have found Zip deployment method as below.

https://docs.microsoft.com/zh-CN/azure/azure-functions/deployment-zip-push

https://docs.microsoft.com/en-us/azure/azure-functions/deployment-zip-push

我一直在我们的开发环境中测试此方法.看来我们需要在环境中拥有一个现有的Azure功能应用程序才能以这种方式进行部署.因此,我在Azure门户中创建了一个基本的Azure Function App(无功能).然后跟着 按照以上链接(Powershell)中的说明进行部署,并部署了Zip文件.我可以看到通过Azure存储资源管理器在wwwroot中部署的文件.但是当我查看Function App下的功能时,那里什么都没有显示.

I have been testing this method in our Dev environment. It seems like we need to have an existing Azure function app in the environment to deploy in this way. So, I have created a basic Azure Function App (with no functions) in the Azure portal. Then followed the instructions in the above link (Powershell) and deployed the Zip file. I can see the files deployed in the wwwroot through Azure Storage Explorer. But when I look at the functions under the Function App, nothing has been displayed there.

有人可以对此提出建议吗?

Can someone advise on this please?

是否还有任何直接方法可以从Zip部署新的Azure Function应用及其功能?

Also is there any direct way to deploy a fresh Azure Function App and its functions from Zip?


推荐答案

如果转到功能应用程序的Kudu控制台,您是否在d:\ home \ site \ wwwroot下看到文件?

If you go to Kudu Console for the Function App, do you see your files under d:\home\site\wwwroot?

还使用功能v1或v2(预览)吗?如果是v2,则需要确保相应地设置了您的应用.

Also, are you using Functions v1 or v2 (Preview)? If v2, you need to make sure that your app is set up accordingly.

David


这篇关于从Zip文件部署Azure功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆