AsBuiltReport / AsBuiltReport.VMware.vSphere

Repository for AsBuiltReport VMware vSphere module
https://www.asbuiltreport.com
MIT License
110 stars 39 forks source link

SDRS VM Overrides shows empty "Virtual Machine" column while Cluster filtering is used #100

Open rebelinux opened 2 years ago

rebelinux commented 2 years ago

When using the Cluster filtering option some tables in the "Datastore Cluster => SDRS VM Overrides" section are returned empty.

vSphere Clusters:

PS /home/rebelinux> Get-Cluster       

Name                           HAEnabled  HAFailover DrsEnabled DrsAutomationLevel
                                          Level
----                           ---------  ---------- ---------- ------------------
RegionHQ-MGMT                  False      1          True       FullyAutomated
RegionA01-COMP                 True       1          True       FullyAutomated

PS /home/rebelinux> 

Cluster Filter:

    "Filter": {
        "Cluster": ["RegionA01-COMP"]
    },

Datastore Cluster from RegionA01-COMP Cluster: DatastoreCluster_RegionA01-COMP

Datastore Cluster from RegionHQ-MGMT Cluster: DatastoreCluster_RegionHQ-MGMT

I believe the Datastore Cluster need to be filtered by "Cluster": ["RegionA01-COMP"]

RegionA01-COMP Cluster VMWARE_VDI_DATASTORE SDRS VM: RegionA01-COMP_VMWARE_VDI_DATASTORE_SDRS_VM

RegionHQ-MGMT Cluster SSD-HIGH-PERF SDRS VM: RegionHQ-MGMT_SSD-HIGH-PERF_SDRS_VM