Sdílet prostřednictvím


WorkloadNetworkDnsZoneCollection.CreateOrUpdate Method

Definition

Create a WorkloadNetworkDnsZone

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

ID of the DNS zone.

data
WorkloadNetworkDnsZoneData

Resource create parameters.

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