XenDesktop ESXi Permissions

Background:
Jarian Gibson has a great post here on all the VMware ESX permissions needed for XenDesktop Desktop Delivery Controller (DDC) to communciate with the VMware ESXi VirtualCenter.  I ran into one issue below, using the Citrix Provisioning Services XenDesktop Wizard and had to add "Virtual Machine > Configuration > Change CPU count which is the attribute "VirtualMachine.Config.CPUCount".


Environment:
Citrix XenDesktop 5 SP1
Citrix Provisioning Services 5.6 SP1
VMware ESXi 4.1 Update 1


Problem:
Error There was an error reported by the wizard
[VDI-NonProd-XXXX] Failed to connect with the requested server. (Permission to perform this operation was denied. (NoPermissionFault)(group-v51VirtualMachine.Config.CPUCount) )






Solution:
I was getting the error above but after adding the Change CPU count option it was fixed.  Detailed permissions are outlined below.



ESXi 4.x Perms
At the Datastore node
-   Allocate space
-  Browse Data Store
- Low level file operations
On the Global Node
-  Manage custom attributes
- Set custom attributes
On the Network node
- Assign network
On the Resource node
- Assign virtual machine to resource pool
On the Task node
- Create Task

On the Virtual Machine > Configuration node
- Add existing disk

- Add new disk
- Change resource
- Remove disk







On the Virtual Machine > Interaction node
- Power On

- Power Off
- Power Suspend
- Power Reset
On the Virtual machine > Inventory node
- Create from existing
- Create new
- Register
- Remove
On the Virtual machine > Provisioning node
- Allow disk access
- Allow virtual machine download
- Allow virtual machine files upload
- Clone template
-  Clone virtual machine
- Deploy template
On the Virtual machine > State node
- Revert to snapshot