ProtectionIntentOperationsExtensions.ValidateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
It will validate followings
- Vault capacity
- VM is already protected
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET