How do I add default information to the Notes section of each new vm created: Basically want these 3 questions answered in the notes after the VM is created. Owner: Application: Prod/Dev: Can this be done in the GUI/Console? If so, how?Ho
DO you mean like this KB1035329 or through PowerCLI with the Set-VM cmdlet and the Notes parameter ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That's not what I'm looking for.
Every time I create a new VM, I want the notes field to be populated with these 3 lines
Application:
Contact:
Prod/dev:
And where should the script that does this get the information (content) that goes in these fields ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
the admin will manually update the Notes field after the VM has been created. I just want the Application, Contact, Prod/Dev to be there when the VM is created.
Application: HR
Contact: John Doe
Prod/dev: Prod
So you just want the labels to be there, not the actual values.
Then you could use the Notes parameter on the New-VM cmdlet, something like this:
New-VM -Name TestVM -VMHost $esx -Datastore $ds -Notes "Field1: dummy`nField2: dummy`nField3: dummy"
The <back-tick>-n in the string is a new-line
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference