Publishing WebSite to Azure via powershell with SetParameters.xml

冷暖自知 提交于 2019-12-30 21:24:07

问题


Is there a chance how to use a SetParameters.xml file to set parameters in a web deployment package?

I would like to deploy an application by powershell script with cmdlets

  • Select-AzureSubscription
  • Publish-AzureWebsiteProject

But I have not found how to set a SetParameters.xml file to the Publish-AzureWebsiteProject cmdlet. Or is there an another way? Processing the SetParameters.xml file into the web deployment package before calling the Publish-AzureWebsiteProject cmdlet?


回答1:


Publish-AzureWebsiteProject does not support SetParameters.xml. The best I found is to use MSDeploy.exe. How to set arguments is in answers at How can I get the PublishUrl via Azure PowerShell?



来源:https://stackoverflow.com/questions/26677410/publishing-website-to-azure-via-powershell-with-setparameters-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!