ProtectionIntentOperationsExtensions.ValidateAsync(IProtectionIntentOperations, String, PreValidateEnableBackupRequest, CancellationToken) 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
System.String

Azure region to hit Api

parameters
PreValidateEnableBackupRequest

Enable backup validation request on Virtual Machine

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<PreValidateEnableBackupResponse>

Applies to