---
title: maximumAllowedCPUCount
framework: virtualization
role: symbol
role_heading: Type Property
path: virtualization/vzvirtualmachineconfiguration/maximumallowedcpucount
---

# maximumAllowedCPUCount

The maximum number of CPUs you may configure for the VM.

## Declaration

```swift
class var maximumAllowedCPUCount: Int { get }
```

## Discussion

Discussion The value in the cpuCount property must be less than or equal to the value in this property.

## See Also

### Setting the number of CPUs

- [cpuCount](virtualization/vzvirtualmachineconfiguration/cpucount.md)
- [minimumAllowedCPUCount](virtualization/vzvirtualmachineconfiguration/minimumallowedcpucount.md)
