/// <summary> /// Create or update a Kusto cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Kusto cluster. /// </param> /// <param name='clusterName'> /// The name of the Kusto cluster. /// </param> /// <param name='parameters'> /// The Kusto cluster parameters supplied to the CreateOrUpdate operation. /// </param> public static Cluster CreateOrUpdate(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Creates a Stream Analytics Cluster or replaces an already existing cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cluster'> /// The definition of the cluster that will be used to create a new cluster or /// replace the existing one. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the cluster. /// </param> /// <param name='ifMatch'> /// The ETag of the resource. Omit this value to always overwrite the current /// record set. Specify the last-seen ETag value to prevent accidentally /// overwriting concurrent changes. /// </param> /// <param name='ifNoneMatch'> /// Set to '*' to allow a new resource to be created, but to prevent updating /// an existing record set. Other values will result in a 412 Pre-condition /// Failed response. /// </param> public static Cluster CreateOrUpdate(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string)) { return(operations.CreateOrUpdateAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch).GetAwaiter().GetResult()); }