VMware Cloud Community
Biener
Contributor
Contributor

How to update the Notes Field with default information that will be added to each new VM created?

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

Reply
0 Kudos
5 Replies
LucD
Leadership
Leadership

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

Reply
0 Kudos
Biener
Contributor
Contributor

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:

Reply
0 Kudos
LucD
Leadership
Leadership

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

Reply
0 Kudos
Biener
Contributor
Contributor

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

Reply
0 Kudos
LucD
Leadership
Leadership

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

Reply
0 Kudos