VMware Cloud Community
tekhie
Contributor
Contributor

Modifying script after updating to powercli 4.1.1

hi - i have upgraded to 4.1.1 and now when running a script via PowerGui i see the following message .. 

WARNING: 'Entity' property is obsolete. Use 'EntityId' instead.

The only entries i can see in the script relating to Entity are as follows ...

$stats

= Get-Stat -Entity $esximpl -Stat $metrics -Start $start -Finish $finish

and then further down ...

$row

.vswitch = (Get-VirtualSwitch -VMHost $group.Group[0].Entity | where {$_.Nic -contains $group.group[0].Instance}).Name

The script runs fine but i dont know which value i need to update - can anyone help ?  Or is it PowerGui that is generating the error and the script is actaully ok ?  I am using PGui version 2.3.0.1503

Thanks for any ideas.

0 Kudos
2 Replies
Troy_Clavell
Immortal
Immortal

LucD
Leadership
Leadership

These are just warnings telling you that in a future PowerCLI release that property will disappear.

For now you can ignore the error, although I agree it is annoying to see it.


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