【发布时间】:2016-03-04 15:45:12
【问题描述】:
我们最近建立了一个新的 Azure 帐户,并且正在开发一个新的应用程序,以将其作为 Web 应用程序部署到该帐户。虽然我们能够从 Visual Studio 2015 部署到暂存槽,但在尝试从 Visual Studio Team Services(由 Microsoft 托管)部署自动构建时,我们收到以下错误:
Get-AzureWebSite -Name $APPLICATION -ErrorAction SilentlyContinue -ErrorVariable azureWebSiteError -Slot staging
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand.Do(Action call) in d:\workspace\powershell-publish\src\ServiceManagement\Services\Commands\Websites\GetAzureWebSite.cs:line 138
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzureSMCmdlet.ProcessRecord() in d:\workspace\powershell-publish\src\ServiceManagement\Common\Commands.ServiceManagement.Common\AzureSMCmdlet.cs:line 174
New-AzureWebSite -Name $APPLICATION -Location North Central US -Slot staging
Conflict: Website with given name $APPLICATION already exists.
Publish-AzureWebsiteProject -Name "$APPLICATION" -Package "C:\a\1\a\$APPLICATION.zip" -Slot "staging" -ErrorVariable publishAzureWebsiteError
The website $APPLICATION was not found. Please specify a valid website name.
Cannot get website, deployment status is not updated
这是一个相当重要的问题,因为它阻止了我们此时使用持续部署。是否有任何解决方法或配置设置可供我们查看以解决此问题?
【问题讨论】:
-
一条可能相关也可能不相关的信息是,由于我在多个项目中的角色,我有两个与我的帐户相关联的订阅。据我所知,如果配置正确,这不会影响部署。
标签: visual-studio azure-web-app-service azure-deployment