/// <summary>
 /// Begins creating a new HDInsight cluster with the specified parameters.
 /// </summary>
 /// <param name="operations">Reference to the
 /// Microsoft.Azure.Management.HDInsight.IClusterOperations.</param>
 /// <param name="resourceGroupName">Required. The name of the resource group.</param>
 /// <param name="clusterName">Required. The name of the cluster.</param>
 /// <param name="parameters">Required. The cluster create request.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>
 /// The CreateCluster operation response.
 /// </returns>
 public static async Task <Cluster> BeginCreatingAsync(this IClustersOperations operations, string resourceGroupName, string clusterName,
                                                       ClusterCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreatingAsync(resourceGroupName, clusterName, parameters, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Begins creating a new HDInsight cluster with the specified parameters.
 /// </summary>
 /// <param name="operations">Reference to the
 /// Microsoft.Azure.Management.HDInsight.IClusterOperations.</param>
 /// <param name="resourceGroupName">Required. The name of the resource group.</param>
 /// <param name="clusterName">Required. The name of the cluster.</param>
 /// <param name="parameters">Required. The cluster create request.</param>
 /// <returns>
 /// The CreateCluster operation response.
 /// </returns>
 public static AzureOperationResponse <Cluster> BeginCreating(this IClustersOperations operations, string resourceGroupName, string clusterName,
                                                              ClusterCreateParameters parameters)
 {
     return(operations.BeginCreatingAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult());
 }