VMware Cloud Community
Foyman1973
Enthusiast
Enthusiast

VASA Provider certificate information via PowerCLI?

I've been digging around and can't seem to find information on if it's possible and how to go about pulling the certificate information for Storage Providers, particularly for VASA providers for vVOL.  I'm trying to put together a script that can report on certificates across the environment and this is the last key piece that causes us problems with missing an expiration date.

Reply
0 Kudos
2 Replies
peetz
Leadership
Leadership

I'm not aware of a suitable PowerCLI cmdlet, but ... if you know a VASA service provider's URL can you not just connect to this URL and retrieve the certificate? There are numerous examples out there on how to do this with Powershell.

And if you don't know the service URLs you can find them by running

   esxcli storage vvol vasaprovider list

on a connected ESXi host.

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Foyman1973
Enthusiast
Enthusiast

Thanks @peetz , that is definitely a decent fallback position.  I was initially looking at the pulling this information from vCenter since it already has it present and I may not have an open firewall between the array end-point and the reporting server which may complicate that scenario for those of us that have a more rigid internal security posture.

FYI, you can also pull the VASA URL via PowerCLI instead of having to use ESXCLI :  (Get-VasaProvider $VasaName).Url

Reply
0 Kudos