RecoveryServicesBackupExtensions.ValidateProtectionIntent 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 nas propriedades.
  • Caminho da Solicitação/Assinaturas/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection
  • Operação IdProtectionIntent_Validate
public static Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult> ValidateProtectionIntent (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default);
static member ValidateProtectionIntent : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult>
<Extension()>
Public Function ValidateProtectionIntent (subscriptionResource As SubscriptionResource, location As AzureLocation, content As PreValidateEnableBackupContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PreValidateEnableBackupResult)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que 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