more.
You might create a custom property to store information, such as a VM’s cost center,
primary application function, desired physical location, or a contact email address—
anything you can think of. These properties can then be used for administrators and
business users to understand more easily information about assets in SCVMM and for
reporting. The real power is realized when your custom properties are combined with
custom placement rules that can utilize the custom properties to help control where
VMs are placed.
For example, consider the scenario in which each business unit group has its own set
of hosts. You could create a cost center property for VMs and hosts and then create a
custom placement rule that says the cost center of the VM must match that of the
host for placement.
These rules are used both for initial placement and as part of Dynamic Optimization.
It’s important to note that when you create your custom placement rules, you have
options that the rule should, must, or not match. Should means the placement will try
to match but doesn’t have to; if placement violates the rule, a warning is generated. If
must is used, placement isn’t possible if the rule is violated. To create a custom
property, use the following procedure:
1 . Start the Virtual Machine Manager console.
2 . Navigate to the VMs And Services workspace, select the VM for which you want to
set a custom property, and open its properties.
3 . Select the Custom Properties area, and click the Manage Custom Properties
button.
4 . In the Manage Custom Properties dialog box, click the Create button.
5 . Enter a name and description for the custom property and click OK.
6 . The new custom property is available in the list of available properties. Select it,
and click the Add button so it becomes an assigned property, and then click OK.
Note that the View Script button is available to show Windows PowerShell script to
perform the action you just performed in the GUI; for example:
New-SCCustomProperty -Name "Cost Center" `
-Description "Cost Center of the object" -AddMember @("VM")
7 . You can now set a value for the custom property, and again the View Script button
will show you the PowerShell script to perform the action.
8 . Now select the properties of a host group, select the Custom Properties area, and
click Manage Custom Properties. The custom property you already created is
available. Add it to the assigned properties and enter a value.
9 . In the same host group properties dialog box is the Placement Rules page, which
allows you to select custom properties. It also shows you how the custom property