通过PowerShell将WebApp文件上传/发布到Azure [英] Upload/Publish WebApp Files to Azure via PowerShell

查看:44
本文介绍了通过PowerShell将WebApp文件上传/发布到Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在更新用于Azure的旧PowerShell脚本时遇到问题.它最初是在询问用户几个问题后才部署网站的.这很简单,因为您可以通过New-AzureWebsite创建一个新网站,然后通过Publish-AzureWebsite来上传文件.

Hi I am currently having a problem updating an old PowerShell script used for Azure. It was originally written to deploy a website after asking a few questions of the user. This was simple enough as you could create a new website via New-AzureWebsite and then Publish-AzureWebsite to upload the files.

我现在正在使用New-AzureRmWebApp,但无法弄清楚如何上传文件,对此没有发布命令,而Set-AzureRmWebApp命令没有参数可以覆盖.

I am now using New-AzureRmWebApp but can not figure out how to upload the files, there is no Publish command for this and the Set-AzureRmWebApp command does not have a parameter to cover this.

有人知道这是否仍然可以完成吗?

Does anybody know if this can still be done?

谢谢

推荐答案

使用资源管理器似乎并不简单,但是您可以使用VS生成的Publish-AzureWebsite.ps1.在这里查看详细信息: https://azure.microsoft.com/en-us/documentation/articles/vs-azure-tools-publishing-using-powershell-scripts/

It doesn't seem as straightforward with Resource Manager, but you can use the Publish-AzureWebsite.ps1 generated by VS. See details here: https://azure.microsoft.com/en-us/documentation/articles/vs-azure-tools-publishing-using-powershell-scripts/

有关自动配置和部署的更深入的文章:

More in-depth article on automating provisioning and deployment: http://www.asp.net/aspnet/overview/developing-apps-with-windows-azure/building-real-world-cloud-apps-with-windows-azure/automate-everything#resources

这篇关于通过PowerShell将WebApp文件上传/发布到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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