I am using a script in my environment which renames PortGroup
what I do is "$PortGroup | Set-VirtualPortGroup -Name $pgNameNew -VLanId $vlanID | out-null"
the command goes fine, when I check the profile it shows not compliant (as expected).
then I used same command and renamed the PortGroup back to orignal name and check compliance,
this time it gives error "Unexpected error checking compliance: 'None Type' object has no attribute 'checkBeacon' "
the same process done via GUI works fine.
Any Idea , what am I missing here?
All the hosts are on 5.1
I had the same issue after configuring CDP on some hosts. Turned out that I had not enabled CDP on all hosts in the cluster. After enabling CDP on all my hosts' vswitches the profile compliance was fine.
OFcourse you can also choose to disable CDP on all hosts
Example how to enable cdp on your hosts' vSwitch via powercli:
$esx = get-vmhost "myesx"
$myesxcli = get-esxcli -vmhost $esx