Share via


VaultsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a Recovery Services vault.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Models.Vault> CreateOrUpdateAsync (this Microsoft.Azure.Management.RecoveryServices.IVaultsOperations operations, string resourceGroupName, string vaultName, Microsoft.Azure.Management.RecoveryServices.Models.Vault vault, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.RecoveryServices.IVaultsOperations * string * string * Microsoft.Azure.Management.RecoveryServices.Models.Vault * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Models.Vault>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IVaultsOperations, resourceGroupName As String, vaultName As String, vault As Vault, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Vault)

Parameters

operations
IVaultsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group where the recovery services vault is present.

vaultName
String

The name of the recovery services vault.

vault
Vault

Recovery Services Vault to be created.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to