Share via


NetworkCloudKubernetesClusterCollection.CreateOrUpdateAsync Method

Definition

Create a new Kubernetes cluster or update the properties of the existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}
  • Operation Id: KubernetesClusters_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string kubernetesClusterName, Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, kubernetesClusterName As String, data As NetworkCloudKubernetesClusterData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetworkCloudKubernetesClusterResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

kubernetesClusterName
String

The name of the Kubernetes cluster.

data
NetworkCloudKubernetesClusterData

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

kubernetesClusterName is an empty string, and was expected to be non-empty.

kubernetesClusterName or data is null.

Applies to