New-BrokerMachine failed with Machine Not Found in a Multiple Domain on Citrix Cloud

New-BrokerMachine failed with Machine Not Found in a Multiple Domain on Citrix Cloud

book

Article ID: CTX493700

calendar_today

Updated On:

Description

Customer has user domain domain.com and resource domain resource.domain.com
Domain.com only has cloud connectors in domain.com,resource.domain.com has only cloud connectors in resource.domain.com.
user and VM1 is in same physical location, and VM1 reside in a machine catalog in a resource location for the physical location
When use below powershell to add VM1 to catalog 11, it will fail with machine not found, but add from web studio is OK 
New-brokermachine -cataloguid 11 -Hypervisorconnectionuid 5 -hostedmachineid xxxxx -machinename  domainname\machinename

Resolution

There are three methods to solve the issue:
1.Create a Cloud connector in resource.domain.com and add it into resource locations where VM1 and end users are located 
2.Use Machine SID instead of domainname\machinename to add machine
3.Add Vm from web studio 

Problem Cause

When running powershell command to add vm to machine catalog, cloud connectors in current resource location are found.
There is only cloud connector in user domain, and no Cloud connector in VM domain. 
These cloud connectors Can't get SID for the VM reside in resource domain; it should contact DC in resource domain instead of user domain.
 

Additional Information

https://docs.citrix.com/en-us/citrix-cloud-government/system-requirements/cloud-connector-requirements.html#deployment-scenarios-for-cloud-connectors-in-active-directory
https://docs.citrix.com/en-us/citrix-daas/manage-deployment/zones.html ​​​​​​​