Integrating Azure Stack Hub monitoring with existing tools
To be able to query the Azure Stack Hub's state and health, you must connect to sufficient authorization and use an API to talk to the fabric, health, or update resource providers. Each of these API calls will follow a similar pattern, as shown in the following diagram:
In the preceding diagram, the flow will run as follows:
- Authenticate with AAD.
- Retrieve a token for an admin subscription.
- Call the API namespace with an action.
More details about the REST API can be found at https://docs.microsoft.com/en-us/rest/api/azure-stack/.
Using the fabric resource provider will get you access to the following namespace resources:
- Location (region)
- Infrastructure roles
- Logical networks
- Storage subsystem
- File shares
- Role instances
- Scale units
- Physical servers
For each of these namespace resources...