---
title: "It will validate followings
1. Vault capacity
2. VM is already protected
3. Any VM related configuration passed in properties."
method: POST
path: "/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection"
tags: ["ProtectionIntent"]
---

# It will validate followings
1. Vault capacity
2. VM is already protected
3. Any VM related configuration passed in properties.

`POST /Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection`

## Path parameters

- `azureRegion` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- PreValidateEnableBackupRequest — Contract to validate if backup can be enabled on the given resource in a given vault and given configuration. It will validate followings 1. Vault capacity 2. VM is already protected 3. Any VM related configuration passed in properties.
  - `resourceType` 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase' — ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc
  - `resourceId` string — ARM Virtual Machine Id
  - `vaultId` string — ARM id of the Recovery Services Vault
  - `properties` string — Configuration of VM if any needs to be validated like OS type etc

## Response `200`

OK

- PreValidateEnableBackupResponse — Response contract for enable backup validation request
  - `status` 'Invalid' | 'Succeeded' | 'Failed' — Validation Status
  - `errorCode` string — Response error code
  - `errorMessage` string — Response error message
  - `recommendation` string — Recommended action for user
  - `containerName` string — Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required for portal
  - `protectedItemName` string — Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is required for portal

---

[API](https://skmtc.net/azure/apis/recoveryservicesbackupclient-2.md) · [All operations](https://skmtc.net/azure/apis/recoveryservicesbackupclient-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/recoveryservicesbackupclient-2/versions/8eae134b6eca/schema)
