Activating a deploy rule

The Auto Deploy rules that you create are not active and can't be used by the Auto Deploy server. Newly created rules must be activated by adding them to a ruleset. A ruleset is nothing but an array of deploy-rules, in which the rules are queued in the order in which they are added.

There are two types of rule sets:

  • Active ruleset
  • Working ruleset

How to do it…

Deploy rules can be added to the ruleset by using the Add-DeployRule cmdlet:

  • Syntax:
    Add-DeployRule –DeployRule "<Name of the Rule>" 
    
  • Example:
    Add-DeployRule -DeployRule Rule001
    Add-DeployRule -DeployRule Rule001-HP –At 0
    

Here, the -At is the queue location of the rule in the ruleset. The lower numbered rules are auctioned first by Auto Deploy:

How it works…

Only rules in ...

Get VMware vSphere 5.5 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.