I know I can use Get-ASzVmssVM to get a list of instances in a VMSS. But how can I retrieve the application healthy status? The Azure UI does this when you look at Instances for the scale set. Is there any mechanism for me to do the same?
Get-AzVmssVM -InstanceView -ResourceGroupName $resourceGroupName -VMScaleSetName $scaleSetName
I'd like to iterate unhealthy instances and restart them. Often times the VMSS is larger than 200 instances, so Azure won't do this by default for me.