---
title: allowsVirtualMachine
framework: Automatic Assessment Configuration
role: symbol
role_heading: Instance Property
platforms: [Mac Catalyst 27.0+, macOS 27.0+]
path: automaticassessmentconfiguration/aeassessmentconfiguration/allowsvirtualmachine
---

# allowsVirtualMachine

A Boolean value that indicates whether the assessment allows running inside a virtual machine.

## Declaration

```swift
var allowsVirtualMachine: Bool { get set }
```

## Discussion

Discussion When set to false, the assessment session will only start if the device is not a virtual machine, and won’t start if that status can’t be determined. Defaults to true, which doesn’t enforce the requirement. important: Setting this to false may not block a session in every virtualized environment. note: AEAssessmentConfiguration for the limits that apply to every enablement requirement.
