从Azure功能中访问Devops Azure管道工件
我正在使用ARM模板为我的Azure资源创建CI/CD管道。 在我的手臂模板中,我使用 zipdeploy 来部署Azure功能的代码。
"resources": [
{
"apiVersion": "2021-02-01",
"type": "extensions",
"name": "zipdeploy",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('functionAppName'))]"
],
"properties": {
"packageUri": "[parameters('packageUri')]"
}
}
]
基本上,我需要指定软件包,需要通过Internet访问它。
在我的Azure管道中,我正在创建我的功能的邮政编码,并使用 dotnet Publish 发布到Azure Pipeline伪像 然后我得到的URL: https://dev.azure.com/ifolor/_apis/resources/containers/containers/qur-(build.containerid)/drop?itempath=drop/myfunction.zip
任务
:
此URL是私有的,Azure函数无法访问此工件,
是否可以从Azure Portal中给我的Azure函数访问权限以从Azure Pipeline访问管道工件?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
件
?如文档。
IE
No.
Typically, you don't use an ARM template to deploy your application, you use a continuous delivery pipeline that pushes the changes out to the site, as explained in the documentation.
i.e.