问题描述
我按照 this guide 通过 Azure Devops 和 Octopus Deploy 部署到 Azure。它在前两个部署中工作,但是当我进行一些新的更改时,我现在收到以下错误消息:
The step Failed: Activity Deploy an Azure Web App on AspDotNetCore Failed with error 'The remote script Failed with exit code 100'.
deploying to Azure WebApp 'MyAPI' in Resource Group 'MyApp',using subscription-id '<Subscription ID>'
Running rollback behavIoUrs...
Operation returned an invalid status code 'Conflict'
Microsoft.Azure.Management.WebSites.Models.DefaultErrorResponseException
at Microsoft.Azure.Management.WebSites.WebAppsOperations.
<ListPublishingProfileXmlWithSecretsWithHttpMessagesAsync>d__148.MoveNext()
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.Management.WebSites.WebAppsOperationsExtensions.
<ListPublishingProfileXmlWithSecretsAsync>d__287.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.AzureWebApp.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.
<GetWebDeployPublishProfile>d__3.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.AzureWebApp.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.
<GetPublishProperties>d__2.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.AzureWebApp.AzureWebAppBehavIoUr.<Execute>d__4.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.Common.Plumbing.Pipeline.PipelineCommand.<ExecuteBehavIoUr>d__16.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.Common.Plumbing.Pipeline.PipelineCommand.<Execute>d__13.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at Calamari.Common.Plumbing.Pipeline.PipelineCommand.<Execute>d__13.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Calamari.Common.CalamariFlavourProgramAsync.<Run>d__4.MoveNext()
The remote script Failed with exit code 100
The action Deploy an Azure Web App on AspDotNetCore Failed
有人知道是什么问题吗?
解决方法
我对 Azure 的订阅已被禁用(恕不另行通知)。
We've identified suspicious activity in this subscription. To protect your account,we've disabled the subscription. Please contact Azure Support to resolve the issue.
编辑:当 Azure 订阅重新启用(再次没有通知)我可以在八达通上部署我的包,现在一切都按预期工作了。