VMware Horizon Community
Sajith-P
Contributor
Contributor

Deployment automation for Unified access gateway

Hi Team,

I'm trying to deploy unified access gateway using uagdeploy.ps1 script. While executing the script , getting below error

Username: administrator%40vsphere.local
Password: ********
Error: Locator does not refer to an object: vi://administrator%40vsphere.local@10.191.82.3:443/d4pcijiltanzudc1/host/cluster1/d4pcijiltanzuesxi1.kyndryl.lab :PASSWORD
Completed with errors

 

The input parameter what i'm giving in .INI file is a below

target=vi://administrator@vsphere.local@10.191.82.3/d4pcijiltanzudc1/host/cluster1/d4pcijiltanzuesxi1.kyndryl.lab :PASSWORD.
 
Is there any syntax error in this command? Any help on this is highly appreciated
 
Regards,
Sajith
Reply
0 Kudos
5 Replies
vDruid
Enthusiast
Enthusiast

Hi,
This indicates that you vSphere object location is wrong. I don't know your vSphere object structure, but looks like you should remove the /host in your URI


// if you think this helps, please mark as helpful or correct , thx ! \\
vDruid
Reply
0 Kudos
Sajith-P
Contributor
Contributor

Hi vDruid,

Attaching mu vSphere inventroy structure fyr. As per the command syntax, "/host' is a part of syntax. 

PS /home/VDIAutomation/UAG/Powershell/uagdeploy> ovftool vi://administrator@vsphere.local@10.191.82.3/d4pcijiltanzudc1/
Enter login information for source vi://10.191.82.3/
Username: administrator%40vsphere.local
Password: ********
Error: Found wrong kind of object (Datacenter). Possible completions are:
vm/
host/
PS /home/VDIAutomation/UAG/Powershell/uagdeploy>

Regards,Sajith

Reply
0 Kudos
vDruid
Enthusiast
Enthusiast

 

You remove too much, just the /host/, not all the end 😉

target=vi://administrator@vsphere.local:PASSWORD@d4pcijiltanzudc1.kyndy.lab/d4pcijiltanzudc1/cluster1/d4pcijiltanzuesxi1.kyndryl.lab



// if you think this helps, please mark as helpful or correct , thx ! \\
vDruid
Reply
0 Kudos
Sajith-P
Contributor
Contributor

Thanks for your response! 

I tried with the changes you suggested but still no luck

Enter login information for target vi://d4pcijiltanzuvc1.kyndryl.lab/
Username: administrator%40vsphere.local
Password: ********
Error: Locator does not refer to an object: vi://administrator%40vsphere.local@d4pcijiltanzuvc1.kyndryl.lab:443/d4pcijiltanzudc1/cluster1/d4pcijiltanzuesxi1.kyndryl.lab
Completed with errors

Regards,

Sajith

Reply
0 Kudos
vDruid
Enthusiast
Enthusiast

you can start with the top level object, e.g. by specifying:

target=vi://administrator@vsphere.local@d4pcijiltanzuvc1.kyndryl.lab/

This will then show a list of possible names to use at the next level. You can then expand it, one level at a time based on this list.


// if you think this helps, please mark as helpful or correct , thx ! \\
vDruid
Reply
0 Kudos