DisasterRecoveryConfigsOperationsExtensions.CreateOrUpdateAsync(IDisasterRecoveryConfigsOperations, String, String, String, ArmDisasterRecovery, CancellationToken) Method

Definition

Creates or updates a new Alias(Disaster Recovery configuration)

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.ArmDisasterRecovery> CreateOrUpdateAsync (this Microsoft.Azure.Management.EventHub.IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, Microsoft.Azure.Management.EventHub.Models.ArmDisasterRecovery parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EventHub.IDisasterRecoveryConfigsOperations * string * string * string * Microsoft.Azure.Management.EventHub.Models.ArmDisasterRecovery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.ArmDisasterRecovery>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDisasterRecoveryConfigsOperations, resourceGroupName As String, namespaceName As String, alias As String, parameters As ArmDisasterRecovery, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmDisasterRecovery)

Parameters

operations
IDisasterRecoveryConfigsOperations

The operations group for this extension method.

resourceGroupName
System.String

Name of the resource group within the azure subscription.

namespaceName
System.String

The Namespace name

alias
System.String

The Disaster Recovery configuration name

parameters
ArmDisasterRecovery

Parameters required to create an Alias(Disaster Recovery configuration)

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ArmDisasterRecovery>

Applies to