When you define or edit a storage policy for virtual machines, you can create or modify a rule that references tags that you used for particular datastores. The datastores become compatible with that type of storage policy.
When you use tags in the policies, follow these guidelines:
If the rule set contains other rules, the datastore with the assigned tag must satisfy all of the rules in the rule set.
If you add several tags from the same category within the same rule, the tags are treated as alternative constraints. Either of the tags can be satisfied.
If you add the tags in separate rules within the same rule set, all tags must be satisfied.
Create storage tags and apply them to datastores. See Assign Tags to Datastores.
- On the Rule Set page, perform one of the following:
To add a rule, click the Add tag-based rule button.
To modify an existing rule, select the rule and click the Modify rule icon.
- Specify a category.
- Make a tag selection or modify an existing selection.
Datastores that use the tags that you selected become compatible with the storage policy.