Thank you for reaching out to the Microsoft Q&A platform.
There is no such API REST that you can use to monitor health of Azure Stack HCI resources. However, you can leverage the Azure Monitor Metrics and create alerts using Azure CLI
Here's an example of the command usage:
To create a metric alert rule that monitors if the average CPU usage of a VM is greater than 90, run the following command:
az monitor metrics alert create -n {nameofthealert} -g {ResourceGroup} --scopes {VirtualMachineResourceID} --condition "avg Percentage CPU > 90" --description {descriptionofthealert}
Please follow the below link for more details:
https://learn.microsoft.com/en-us/azure-stack/hci/manage/monitor-cluster-with-metrics
- Monitor a single Azure Stack HCI cluster with Insights
- Monitor multiple Azure Stack HCI clusters with Insights
Please note this feature is in Preview currently, See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
https://learn.microsoft.com/en-us/rest/api/stackhci/operation-groups?view=rest-stackhci-2023-08-01
--please don't forget to "[Accept the answer]" if the reply is helpful--