NetworkCloudKubernetesVersionCollection.CreateOrUpdate Method

Definition

Create the Kubernetes version resource or update its tags. This resource is system managed and should only be created with the name "default".

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesVersions/{kubernetesVersionName}.
  • Operation Id. : KubernetesVersions_CreateOrUpdate.
  • Default Api Version. : 2026-01-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string kubernetesVersionName, Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionData * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionData * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesVersionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, kubernetesVersionName As String, data As NetworkCloudKubernetesVersionData, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetworkCloudKubernetesVersionResource)

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.

kubernetesVersionName
String

The name of the Kubernetes version resource.

data
NetworkCloudKubernetesVersionData

The request body.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

kubernetesVersionName or data is null.

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

Applies to