Ran your code example from the github link against a small staging environment and got the following result (each row is a reservation):
The red text is where the powervra output differed from the gui.
- PSVersion: 6.0.1
- PSEdition: Core
- GitCommitId: v6.0.1
- Server APIVersion: 7.3
Note: the first five lines are from a single compute resource and the last five lines are from a second compute resource
alexanderjn Thanks a lot for taking the time to do that!
So more evidence that there can be discrepancies between what's reported in the GUI and what is returned from API. It would be interesting to see a VMware response to this.
I am having a very similar issue with reservations. The GUI shows me the proper list of networks in the reservation and the REST API (and therefore powervRA) is missing at least one entry. Is this a bug or am I missing a step in getting updated information from REST?