/// <summary> /// Checks that the cluster name is valid and is not already in use. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// Azure location. /// </param> /// <param name='clusterName'> /// The name of the cluster. /// </param> public static CheckNameResult CheckNameAvailability(this IClustersOperations operations, string location, ClusterCheckNameRequest clusterName) { return(operations.CheckNameAvailabilityAsync(location, clusterName).GetAwaiter().GetResult()); }