O'Reilly logo

VMware vSphere 5.5 Cookbook by Abhilash G B

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required