/// <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>
 public static ManagedCluster CreateOrUpdate(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, ManagedCluster parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult());
 }