# Importing ComplyForm Evidence into Microsoft Purview Compliance Manager

## Prerequisites

- Microsoft 365 E5 or equivalent license with Purview Compliance Manager
- Azure AD permissions: Compliance Administrator role
- ComplyForm Purview export file (`purview-evidence.json`)

## Steps

1. **Create a custom assessment** in Purview Compliance Manager:

   - Navigate to **Microsoft Purview** > **Compliance Manager** > **Assessments**
   - Click **Add assessment** and select the relevant regulation template
   - Name it: `ComplyForm - {{ framework_name }}`

2. **Import improvement actions** via the ComplyForm CLI:

   ```bash
   complyform export purview \
     --tenant-id {{ tenant_id }} \
     --assessment-name "ComplyForm - {{ framework_name }}" \
     --file=purview-evidence.json
   ```

3. **Upload supporting documents**:

   ```bash
   complyform export purview-docs \
     --assessment-name "ComplyForm - {{ framework_name }}" \
     --evidence-dir=./exports/evidence/
   ```

4. **Verify** in the Microsoft Purview portal under Compliance Manager > Assessments.

## Notes

- Improvement actions are mapped to Purview control families based on framework controls.
- Compliance scores are calculated automatically by Purview after import.
- Evidence documents are attached to their corresponding improvement actions.
