Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

VMware power cli copy deploy rule

$
0
0

$s_dr = 'IBM-HP1-AutoD-Cluster1' # copy from source deploy rule

$d_dr = 'IBM-HP1-AutoD-Cluster-test2' # new rule name after copy

$change_cluster = 'Cluster-test2' # change cluster name

$replace_ip_patt = '172.17.30.130-172.17.30.140' # pattern ip range address

$replace_vendor_patt = 'IBM' #  pattern vendor

$change_hp = 'SM-HP1-AutoD-Cluster2' # change hostprofile

 

 

Copy-DeployRule $s_dr -Name $d_dr -ReplaceItem $change_cluster -ReplacePattern ipv4=$replace_ip_patt # copy autodeploy for image-profile

 

 

 

Copy-DeployRule $s_dr -name $d_dr -ReplaceItem $change_hp -ReplacePattern "vendor==$replace_vendor_patt","ipv4=$replace_ip_patt"  # copy for autodeploy hostprofile


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>