I’m working on a tool that will provide me with all of the SANs associated with a Load Balancer server. This will help me when adding new sites to the load balancer and requesting HTTPS cert updates with the newly added sites.
I’ve created an endpoint with my initial script that I’ve test prior to implementation for desired results. The issue I’m running into currently is how to output the return value(Array) into something that the user can see on the UD page.
Right now I’m Caching the return variable in the Endpoint like so:
$Cache:SANSArray = @()
foreach ($san in $SANs){
$Cache:SANSArray += $san
}
return($Cache:SANSArray)
In my SANS Tool, I’m then trying to just use that array in my output of a New-UDParagraph element.
$SANs = $Cache:SANSArray
New-UDInputAction -Content @(
New-UDCard @Colors -Title "All SANs for $ServerFQDN" -Content {
New-UDParagraph -Text "$SANs"
}
)
But when I run the tool with all the correct information it just endlessly spins.
Dashboard Logs show that the request finished and that the contents of the array are being returned but it never actually outputs anything it just endlessly loads.
Anyone had success with passing a variable to an output like this?