VaultOperationsExtensions.CreateOrUpdateAsync(IVaultOperations, String, String, AzureBackupVaultCreateOrUpdateParameters, CustomRequestHeaders) Method

Definition

Creates a new Azure backup vault.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.Models.AzureBackupVaultGetResponse> CreateOrUpdateAsync (this Microsoft.Azure.Management.BackupServices.IVaultOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.AzureBackupVaultCreateOrUpdateParameters parameters, Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders customRequestHeaders);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.BackupServices.IVaultOperations * string * string * Microsoft.Azure.Management.BackupServices.Models.AzureBackupVaultCreateOrUpdateParameters * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders -> System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.Models.AzureBackupVaultGetResponse>

Parameters

operations
IVaultOperations

Reference to the Microsoft.Azure.Management.BackupServices.IVaultOperations.

resourceGroupName
System.String

Required. The name of resource group to which vault belongs

resourceName
System.String

Required. The name of the vault

parameters
AzureBackupVaultCreateOrUpdateParameters

Required. Parameters to create or update the vault

customRequestHeaders
CustomRequestHeaders

Optional. Request header parameters.

Returns

System.Threading.Tasks.Task<AzureBackupVaultGetResponse>

Vault information.

Applies to