Delen via


ProtectionIntentOperationsExtensions.ValidateAsync Method

Definition

It will validate followings

  1. Vault capacity
  2. VM is already protected
  3. Any VM related configuration passed in properties.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.PreValidateEnableBackupResponse> ValidateAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations operations, string azureRegion, Microsoft.Azure.Management.RecoveryServices.Backup.Models.PreValidateEnableBackupRequest parameters, System.Threading.CancellationToken cancellationToken = default);
static member ValidateAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations * string * Microsoft.Azure.Management.RecoveryServices.Backup.Models.PreValidateEnableBackupRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.PreValidateEnableBackupResponse>
<Extension()>
Public Function ValidateAsync (operations As IProtectionIntentOperations, azureRegion As String, parameters As PreValidateEnableBackupRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PreValidateEnableBackupResponse)

Parameters

operations
IProtectionIntentOperations

The operations group for this extension method.

azureRegion
String

Azure region to hit Api

parameters
PreValidateEnableBackupRequest

Enable backup validation request on Virtual Machine

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to