/// <summary>
 /// Checks whether deployment exists.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group to check. The name is case
 /// insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// Required. The name of the deployment.
 /// </param>
 /// <returns>
 /// Deployment information.
 /// </returns>
 public static Task <DeploymentExistsResult> CheckExistenceAsync(this IDeploymentOperations operations, string resourceGroupName, string deploymentName)
 {
     return(operations.CheckExistenceAsync(resourceGroupName, deploymentName, CancellationToken.None));
 }