/// <summary> /// Deletes a managed cluster. /// </summary> /// <remarks> /// Deletes the managed cluster with a specified resource group and name. /// </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> public static void BeginDelete(this IManagedClustersOperations operations, string resourceGroupName, string resourceName) { operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); }