VMware Cloud Community
mthiha207au
Enthusiast
Enthusiast

Get associated deployrule based on Cluster

I am looking for way to get associated deploy-rule based on cluster. I have no luck finding that on Get-cluster with all related info and extensiondata. 

The closet one i got is from (get-deployrule).itemlist.name but the position of name depends on list of items configured in deployrule.

any other way to do it? 

0 Kudos
1 Reply
LucD
Leadership
Leadership

Afaik, this info is not directly available on the ESXi node nor the Cluster.

You could look at the Pattern for each DeployRule, interpret the pattern definition and then check if a specific ESXi node complies with the pattern.

Another method could be to use the procedure described in the Troubleshooting section in KB2000988




Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos