Hi,
I am creating a VM through my python code with the cmdlet : New-SCVirtualMachine
I need to connect to the VM once it is up and running and find out its IP (since it gets it through DHCP). Is it possible to do it with the System Centre 2012 R2 cmdlets? Or is there some other way?
I know :
- name of the VM
- access credentials (username/password)
- the hyper-v node of the VM
Is it possible to log-in to the VM through some cmdlet or REST call and then execute an ifconfig/ipconfig to get the IP? From what I've seen there doesnt seem to be any cmdlet that gets me the IP directly.
Will greatly appreciate any guidance in this regard. Thanks much!