PowerShell: get the IP address of a cluster resource
Read a cluster IP address resource with Get-ClusterResource and Get-ClusterParameter.
To find the IP address of a Windows Failover Cluster role in PowerShell, query the Address parameter of its IP address resource.
Get-ClusterResource -Name "cluster ip address" | Get-ClusterParameter -Name Address | Select-Object Value
Explanation
Get-ClusterResource -Namegets the IP address resource; adapt the name to the one shown in your cluster (by default "Cluster IP Address" for the cluster itself).Get-ClusterParameter -Name Addressreads theAddressparameter of that resource.Select-Object Valueoutputs only the value, i.e. the IP address.
The FailoverClusters module must be available and the command run on a cluster node.