Tag-based rules reference the tags that you assign to the datastores and can filter the datastores to be used for placement of the VMs. To define tag-based placement in the vSphere Client, use the Create VM Storage Policy wizard.

Note: At a datastore cluster level, you can use a tag-based storage policy only when all datastores in the cluster have consistent tags.

Prerequisites

  • Make sure that the VM Storage Policies interface is populated with information about storage entities and data services that are available in your storage environment. See Populating the VM Storage Policies Interface.
  • Required privileges: VM storage policies.Update and VM storage policies.View.

Procedure

  1. Open the Create VM Storage Policy wizard.
    1. Click Menu > Policies and Profiles.
    2. Under Policies and Profiles, click VM Storage Policies.
    3. Click Create.
  2. Enter the policy name and description, and click Next.
    Option Action
    vCenter Server Select the vCenter Server instance.
    Name Enter the name of the storage policy.
    Description Enter the description of the storage policy.
  3. On the Policy structure page under Datastore specific rules, enable tag-based placement rules.
  4. On the Tag based placement page, create the tag rules.
    1. Click Add Tag Rule and define tag-based placement criteria. Use the following as an example.
      Option Example
      Tag category Level of Service
      Usage option Use storage tagged with
      Tags Gold
      All datastores with the Gold tag become compatible as the storage placement target.
    2. (Optional) Add more tag-based rules.
  5. On the Storage compatibility page, review the list of datastores that match this policy.
  6. On the Review and finish page, review the storage policy settings and click Finish.
    To change any settings, click Back to go to the relevant page.

Results

The new VM storage policy compatible with tagged datastores appears on the list.