VSTS是否支持包含Web部署Web App的Azure ARM模板? [英] Does VSTS suppot Azure ARM Template containing Web Deploy for Web App?

查看:57
本文介绍了VSTS是否支持包含Web部署Web App的Azure ARM模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我花了好几天尝试,但我无法弄清楚如何使VSTS Azure资源组部署任务部署包含Web部署Web应用程序资源。我在谈论这种从Visual Studio中部署的模板:



https://docs.microsoft.com/en -us / azure / azure-resource-manager / vs-azure-tools-resource-groups-deployment-projects-create-deploy#deploy-code-with-your-infrastructure


如果一个跟随该教程,检查代码到VSTS,并在MS Build或Release Manager中运行Azure资源组部署任务,一旦得到错误,如"部署模板验证失败:'模板参数的值'_artifactsLocation'
在第'1行,第7列'未提供。那么还有什么需要做,但是什么呢?


Azure资源组部署任务的文档没有提到Web部署的Web App资源:


https://github.com/Microsoft/vsts-tasks/tree/master/Tasks/AzureResourceGroupDeployment


VSTS是否支持部署Azure网络应用来自ARM模板吗?如果是这样,是否可以使用Azure资源组部署任务,如果是,那么在它工作之前还需要运行哪些其他任务?




解决方案

澄清:您是否尝试将应用程序部署到Azure App Service或尝试使用ARM任务创建Azure应用服务


如果是将应用程序部署到Azure App Service,则可以通过使用Azure App Service
Deploy任务完成。您可以参考以下链接,


https://www.visualstudio.com/en-us/docs/build/apps/cd/deploy-webdeploy-webapps


https://www.visualstudio.com/en-us/docs/build/get-started/aspnet-4-ci-cd-azure-automatic



Hello,

I've spent days trying, but I can't figure out how to make the VSTS Azure Resource Group Deployment Task deploy an ARM template that contains a Web Deploy for Web App resource. I'm talking about this kind of template, which deploys fine from Visual Studio:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/vs-azure-tools-resource-groups-deployment-projects-create-deploy#deploy-code-with-your-infrastructure

If one follows that tutorial, checks the code into VSTS, and runs the Azure Resource Group Deployment task either in MS Build or Release Manager, once gets an error like "Deployment template validation failed: 'The value for the template parameter '_artifactsLocation' at line '1' and column '712' is not provided." So something else needs to be done, but what?

The documentation for the Azure Resource Group Deployment Task makes no mention of Web Deploy for Web App resources:

https://github.com/Microsoft/vsts-tasks/tree/master/Tasks/AzureResourceGroupDeployment

Does VSTS support deploying Azure web apps from ARM templates at all? If so, can the Azure Resource Group Deployment Task be used, and if so, what additional tasks need to be run before it will work?


解决方案

To clarify: Are you trying to deploy application to an Azure App Service or trying to create an Azure App Service by using the ARM task?

If it is about deploying application to an Azure App Service, then that can be done by using the Azure App Service Deploy task. You may refer the below links,

https://www.visualstudio.com/en-us/docs/build/apps/cd/deploy-webdeploy-webapps.

https://www.visualstudio.com/en-us/docs/build/get-started/aspnet-4-ci-cd-azure-automatic.


这篇关于VSTS是否支持包含Web部署Web App的Azure ARM模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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