Check if deployment exists on slot Staging
<p>I'm trying to deploy a package on a role using <code>UpgradeBySlotAsync</code> on <code>IDeploymentOperations</code>' <code>Deployments</code>. When the deployment doesn't exist, it throws saying: 'A virtual network site cannot be added or removed during deployment update or upgrade'.</p>

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

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