New-LCMClusterRuleWithTransform - vSphere Auto Deploy Reference

PowerCLI Reference

vSphere Auto Deploy Reference

New-LCMClusterRuleWithTransform

Synopsis

Create LCM rule spec with transform.

Syntax

New-LCMClusterRuleWithTransform [-Name] <String> -Pattern <String[]> -Item <VIObjectCore[]> -lifecycleCluster <VIObjectCore> -noSignatureCheck -AllHosts [<CommonParameters>]

Related Commands

Add-DeployRule
Copy-DeployRule
Set-DeployRule

Detailed Description

Create a new Rule based on the provided parameters.This API takes in a Rule name, a list of Rule.Pattern items and a Lifecycle managed Cluster whch is to be used to retrieve the desired software specification and any Host Profile attached to the target Cluster. This API will also generate and cache a new PxeProfile (if needed) based on the desired software specification retrieved from the Lifecycle managed Cluster. All the resulting items will be populated in the Rule.Spec object associated with the newly created Rule.

Parameters

Name Type Description Required? Pipeline Input
Name String Name of the Rule to be created. true false
Pattern String[] A list of one or more Rule.Pattern items used to identify the host(s) to be bootstrapped with this Rule true false
Item VIObjectCore[] Item the rule should apply to the hosts. Can be an image profile, a script bundle, a host profile, or a folder or cluster on the vCenter Server system to add the host to. false true (ByValue)
LcmCluster VIObjectCore A vCenter Cluster managed by Lifecycle to be used as a source for the desired soft specification and Host Profile to be used for the host(s) bootstrap true true (ByValue)
NoSignatureCheck SwitchParameter Indicates if a signature verification of the VIBs to be used for bootstraping should be performed. true false
AllHosts SwitchParameter Specify AllHosts to apply the new rule to all hosts managed by VMware Auto Deploy. Hosts are managed by VMware Auto Deplo y if the DHCP server directs them to the Auto Deploy TFTP configuration file. true false

Examples

-------------- Example 1 --------------

C:\PS> New-LCMClusterRuleWithTransform -Name RULE_NAME -AllHosts -LcmCluster LCM_CLUSTER_NAME -NoSignatureCheck

Create a new Rule.It takes in a Rule name, Lifecycle managed Cluster

-------------- Example 2 --------------

C:\PS> New-LCMClusterRuleWithTransform -Name RULE_NAME -Pattern "vendor=dell","vendor==vmware, Inc." -LcmCluster LCM_CLUSTER_NAME -NoSignatureCheck

Create a new Rule.It takes in a Rule name, Lifecycle managed Cluster, Pattern as set of hosts the new rule should apply to.

-------------- Example 3 --------------

C:\PS> New-LCMClusterRuleWithTransform -Name RULE_NAME -Pattern "vendor=dell","vendor==vmware, Inc." -Item "scriptbundle" -LcmCluster LCM_CLUSTER_NAME -NoSignatureCheck

Create a new Rule.It takes in a Rule name, Lifecycle managed Cluster, Pattern as set of hosts the new rule should apply to.


Copyright © 1998 - 2019 VMware, Inc. All rights reserved.