When running the Delivery Controller pattern it fails at step 5 with a PermissionDenied error:
Get-XDSite : You do not have the required permissions to perform this operation.
At line:1 char:37
+ Add-PSSnapin Citrix.Broker.Admin.V2;Get-XDSite
+ CategoryInfo : PermissionDenied: (:) [Get-XDSite], PermissionDeniedException
+ FullyQualifiedErrorId : Citrix.XDPowerShell.PermissionDenied,Citrix.XenDesktopPowerShellSdk.Sdk.Configuration.GetXDSiteCommand
This is due to the Windows Discovery account not having access to Citrix Studio.
Make sure the Windows account used for discovering that specific device has permission to access Citrix Studio and then re-run the discovery.