WorkloadNetworkDnsZoneCollection.CreateOrUpdateAsync Method

Definition

Create a DNS zone by id in a private cloud workload network.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
  • Operation Id: WorkloadNetworks_CreateDnsZone
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkDnsZoneResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string dnsZoneId, Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, dnsZoneId As String, data As WorkloadNetworkDnsZoneData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of WorkloadNetworkDnsZoneResource))

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.

dnsZoneId
String

NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.

data
WorkloadNetworkDnsZoneData

NSX DNS Zone.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dnsZoneId or data is null.

Applies to