I some time access my VMs via webAccess,bookmark the URL of sepecify VMs often used(Summary tab, click Generate Virtual Machine Shortcut.).
but one day I found I can not access VMs via URL bookmarked,because it had been changed.
I did not know what change of the VC or ESX will result of the URL changes.
and I want to know the naming rule of the random code of the URL?
Hello.
The only unique parts of these URLs are the name of the vCenter (or ESX/ESXi) host and the object id of the VM. If you moved the vm from inventory or did anything operationally that would have changed the VM's Object Id, then the URL is likely not valid because of this. You can use the free RVTools to view the Object Id for the VM and try to change the URL accordingly, but it might be just as fast to re-create the URL again.
Good Luck!
The Webaccess URL is in the form of:
In this URL vCenterServer is the name of your vCenter Server. vm-1083 is the MoRef of the virtual machine. To generate the URL's for all your virtual machines you can use the following PowerCLI script:
New-VIProperty -Name WebShortcut -ObjectType VirtualMachine ` -Value { $vCenterServer = $Args[0].Uid.Split(“:”)[0].Split(“@”)[1] $Id = $Args[0].Id.Replace(“e-v”,”e|v”) “https://$vCenterServer/ui/?wsUrl=http://localhost:80/sdk&mo=$Id&inventory=none&tabs=hide_” } -Force Get-VM | Select-Object -Property Name,WebShortcut | Format-List
Regards, Robert
Hello.
The only unique parts of these URLs are the name of the vCenter (or ESX/ESXi) host and the object id of the VM. If you moved the vm from inventory or did anything operationally that would have changed the VM's Object Id, then the URL is likely not valid because of this. You can use the free RVTools to view the Object Id for the VM and try to change the URL accordingly, but it might be just as fast to re-create the URL again.
Good Luck!
Does vMotion or HA or other else type of migration impact the object ID of VMs?