当前位置: 动力学知识库 > 问答 > 编程问答 >

azure - Check if deployment exists on slot Staging

问题描述:

I'm trying to deploy a package on a role using UpgradeBySlotAsync on IDeploymentOperations' Deployments. When the deployment doesn't exist, it throws saying: 'A virtual network site cannot be added or removed during deployment update or upgrade'.

If I want to check on deployment's existence using GetBySlotAsync, it also throws when the deployment is not there.

Is there a way to check whether there is a deployment on Staging using IDeploymentOperations type? Something similar to Get-AzureDeployment in Powershell.

分享给朋友:
您可能感兴趣的文章:
随机阅读: