Compartilhar via


RecoveryServicesBackupExtensions.ValidateProtectionIntentAsync Método

Definição

Ele validará os seguintes procedimentos

  1. Capacidade do cofre
  2. A VM já está protegida
  3. Qualquer configuração relacionada à VM passada em propriedades.
  • Caminho da Solicitação/Assinaturas/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection
  • Operação IdProtectionIntent_Validate
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult>> ValidateProtectionIntentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default);
static member ValidateProtectionIntentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult>>
<Extension()>
Public Function ValidateProtectionIntentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As PreValidateEnableBackupContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PreValidateEnableBackupResult))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

location
AzureLocation

Região do Azure para atingir a API.

content
PreValidateEnableBackupContent

Habilite a solicitação de validação de backup na Máquina Virtual.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a