我有一个带有生产部署和暂存部署的 Azure 云服务。
我可以升级、停止、删除……生产部署,但我无法对暂存部署执行任何操作。说:
Windows Azure 当前正在此部署上使用 xxxxx 执行需要独占访问权限的操作。
我等了整个周末,问题仍然存在。如果我检查我的操作日志,我可以看到该跟踪:
<SubscriptionOperation xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<OperationId>xxxxxxxx</OperationId>
<OperationObjectId>/xxxxxxxx/services/hostedservices/fxcalendar/deployments/xxxxxxxx</OperationObjectId>
<OperationName>DeleteDeploymentBySlot</OperationName>
<OperationParameters xmlns:d2p1="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.ServiceManagement">
<OperationParameter>
<d2p1:Name>subscriptionID</d2p1:Name>
<d2p1:Value>xxxxxxxx</d2p1:Value>
</OperationParameter>
<OperationParameter>
<d2p1:Name>serviceName</d2p1:Name>
<d2p1:Value>xxxxxxxx</d2p1:Value>
</OperationParameter>
<OperationParameter>
<d2p1:Name>deploymentSlot</d2p1:Name>
<d2p1:Value>Staging</d2p1:Value>
</OperationParameter>
</OperationParameters>
<OperationCaller>
<UsedServiceManagementApi>true</UsedServiceManagementApi>
<UserEmailAddress>Unknown</UserEmailAddress>
<SubscriptionCertificateThumbprint />
<ClientIP>xxxxxxxx</ClientIP>
</OperationCaller>
<OperationStatus>
<ID>xxxxxxxx</ID>
<Status>Failed</Status>
<HttpStatusCode>409</HttpStatusCode>
<Error>
<Code>ConflictError</Code>
<Message>Windows Azure is currently performing an operation with x-ms-requestid xxxxxxxx on this deployment that requires exclusive access.</Message>
</Error>
</OperationStatus>
<OperationStartedTime>2013-11-04T09:04:37Z</OperationStartedTime>
<OperationCompletedTime>2013-11-04T09:04:38Z</OperationCompletedTime>
</SubscriptionOperation>
我不知道如何恢复暂存部署。我能想到的只有 walkarround 是创建一个新的云服务并更改 DNS。