Closed karanpanchal-crest closed 6 months ago
@jobingeo Do you have any idea regarding this issue?
What is the vCenter Server Version?
Kindly note The feature was added in vCenter version : 7.0.0.2
@kunal-pmj Thanks for responding to my query
I am using vSphere Client version 6.7.0.54000
How shall I get access to the newly created VM through this automation SDK? I want to execute interactive commands like changing the password of the VM, executing a process that asks for runtime input on CLI, etc. programmatically. Can you please guide me on how to achieve this requirement?
@kunal-pmj Can you please help me with the above question? Also, do you know if I can create a VM with IP assigned during creation? This will help me get SSH of the newly created VM to execute the commands.
@jobingeo Do you have any idea on my question above?
Hi @karanpanchal-crest
You are using an older version of the vCenter Server (6.7) with a new SDK 8.0U3 that is the reason for Operation not Found error.
You can deploy VM and configure IP address.
Describe the bug
I have created a VM using the VSphere automation SDK Python. I can get a VM ID to connect. As a next step, I want to execute some commands on the newly created VM. For this task, I am trying to create a ticket using
vcenter.vm.console.Tickets.create
method.Code I have written for creating the console ticket:
However, I am getting the below error when trying to create the console ticket using the above code.
Reproduction steps
Expected behavior
A console ticket should be returned through which I should be able to connect to the VM and execute commands on the newly created VM.
Additional context
No response