/// <summary> /// Checks whether the deployment exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group with the deployment to check. The name is /// case insensitive. /// </param> /// <param name='deploymentName'> /// The name of the deployment to check. /// </param> public static bool CheckExistence(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) { return(operations.CheckExistenceAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult()); }