/// <summary> /// Creates or updates a managed cluster. /// </summary> /// <remarks> /// Creates or updates a managed cluster with the specified configuration for /// agents and Kubernetes version. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create or Update a Managed Cluster operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ManagedCluster> CreateOrUpdateAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, ManagedCluster parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }