When attempting to launch the Open Web Console or Open Remote Console for a Virtual Machine (VM) within the Virtual Machine Service UI, the connection fails or the URL does not resolve. This typically occurs for VMs that have been imported into the environment.
VCF Automation 9.0
The Web Console URL https://URL/cci/kubernetes/apis/infrastructure.cci.vmware.com/v1alpha1/namespaces/<project>/<virtualmachineremoteconsolerequests> incorrectly defaults to using the VM name in the VCF Portal instead of the actual name in vCenter
This issue is expected to be resolved in the upcoming release, imported VMs will correctly map the vmware.com/display-name to the vCenter name for console redirection.
To access the console you must manually edit the browser URL to include the correct vCenter VM name. You can find this name without leaving the portal by following these steps:
Navigate to the VCFA Tenant portal > Build & Deploy > Select Namespace from dropdown > Virtual Machine > Virtual Machine Service list.
Select the affected VM and click the VIEW YAML button (as shown in the provided screenshot).
In the YAML editor, look under the metadata: section for the following key:
vmware.com/display-name: <vCenter_VM_Name>
Copy the value found in this key
https://<URL>/cci/kubernetes/apis/infrastructure.cci.vmware.com/v1alpha1/namespaces/<project>/<virtualmachineremoteconsolerequests> and Replace the string <virtualmachineremoteconsolerequests> at the end of the URL with the vCenter VM Name you copied in Step 4.Press Enter to reload the console with the correct parameters.