Share via


ZonesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a DNS zone. Does not modify DNS records within the zone.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Dns.Models.Zone> CreateOrUpdateAsync (this Microsoft.Azure.Management.Dns.IZonesOperations operations, string resourceGroupName, string zoneName, Microsoft.Azure.Management.Dns.Models.Zone parameters, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Dns.IZonesOperations * string * string * Microsoft.Azure.Management.Dns.Models.Zone * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Dns.Models.Zone>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IZonesOperations, resourceGroupName As String, zoneName As String, parameters As Zone, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Zone)

Parameters

operations
IZonesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

zoneName
String

The name of the DNS zone (without a terminating dot).

parameters
Zone

Parameters supplied to the CreateOrUpdate operation.

ifMatch
String

The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes.

ifNoneMatch
String

Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to