locked
Does VSTS suppot Azure ARM Template containing Web Deploy for Web App? RRS feed

  • Question

  • 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?


    Thursday, June 1, 2017 3:02 PM

All replies

  • 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.

    Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

    Monday, June 5, 2017 12:42 PM
  • Swikruti,

    I want to do both with one task. In Visual Studio, when you deploy a resource group that references an ASP.NET app, it creates/updates the Azure Web App, and it deploys your ASP.NET code, all in one step. Are you saying the VSTS Resource Group task will only do the former, and you must use a separate task for the latter? That's unintuitive to a developer moving from Visual Studio deployment to VSTS deployment.

    Tuesday, June 6, 2017 4:22 PM
  • If you are already using an ARM template which does both then you can use it with Azure Resource Group task in VSTS as well. 

    Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

    • Proposed as answer by Swikruti Bose Wednesday, June 7, 2017 5:06 PM
    Wednesday, June 7, 2017 5:06 PM