Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
17 stars 8 forks source link

Better error message or checking when VSAT isn't available #242

Closed BeardedPrincess closed 6 months ago

BeardedPrincess commented 7 months ago

Summary of the new feature/enhancement

Business Problem/Use Case

when using venafips today you can run into errors that has nothing to do with the code/functions but rather vsatellite not being available

Desired Behavior of Feature

if we have some additional error handler for functions that require vsat then we can be obvious and error out that this is failing or going to fail because there are no vsats available

Potential technical fix

Add code in the Begin block of functions that require vSatellite to be available, that first check if none are available and fail with an error message to that effect: if (-not ('ACTIVE' -in (Get-VcSatellite -All).edgestatus ))