问题描述:

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.

相关阅读:
Top