Add Azure Monitor Health Models AzAPI quickstart - #506
Vishwajeet Ranade (vranade-microsoft) merged 5 commits into
Conversation
|
I would prefer if the example has a bit of everything that AHM offers, e.g. it adds 2-3 identities, Azure resource id reference and metrics with dimension filter, AMW with PromQL and and a discovery rule example. Also we don't have Bicep examples yet. AzAPI is a Bicep wrapper in general, so we could also think about examples Bicep usage and then a section how it applies to Terraform with AzAPI. We can go through with this starting scaffold and then I we can expand on it. |
|
Andre Bossard (@abossard) Thanks, André. We’re expanding the 101 sample to include one authentication setting, two entities with signal properties, and one relationship. I’ve asked Hansjoerg Scherer for guidance on the canonical minimal resource, signal, metric, authentication setting, and permissions. We’ll keep PromQL, dimension filtering, and discovery for a broader follow-up example. |
|
That's brilliant Bill Anderson (@bandersmsft) https://learn.microsoft.com/en-us/azure/azure-monitor/health-models/cli?tabs=cli-bash In these quickstarts, would it make sense to e.g. create a Key Vault and then add Key Vault metrics to the Health Model as signal? Is it common in the quickstarts to create supporting resources ? |
- I removed the tags from the identity - the "Application" entity needs to have a relationship to the "root" of the health model as well - removed the depends_on, as they are not required. as long as the correct permissions is being assigned eventually, it'll work Signed-off-by: Andre Bossard <[email protected]>
Small corrections to make the health model work and have all entities connected.
|
Hi, this PR is ready for the maintainer release-branch and protected E2E process. The Health Models team reviewed the sample, the latest corrections are merged, local end-to-end validation passed, and CLA and prepr-check pass. Could you create the upstream release branch and release-to-master PR so e2e-check can run? If not, what's the right process I should follow? Thanks. |
|
Maintainer handoff update: I contacted Vishwajeet Ranade, Jason Groce, and Akash Dubey by email to ask who can create the upstream release branch and release-to- |
|
I have now run the E2E check manually. |
|
Vishwajeet Ranade (@vranade-microsoft) Thanks for running E2E. All checks are green. Could you merge the PR when you’re ready, or let me know if anything else is needed from me? |
9363bd9
into
Azure:master
This PR is now merged. |
Summary
Adds a Terraform sample that deploys a self-contained Azure Monitor health model through the AzAPI provider and the current
Microsoft.CloudHealth/healthmodels@2026-05-01-previewAPI. The AzureRM provider doesn't currently expose a native Health Models resource.The Health Models team confirmed through Megan Goode that it can support AzAPI as the current Terraform path for GA. Hansjoerg Scherer recommended Storage and Key Vault resource entities beneath an abstract parent, with the Health Model's system-assigned identity. André Bossard reviewed and corrected the final graph, required role, and resource ordering. Native AzureRM support remains future work.
Maintainer action needed
The repository's E2E workflow doesn't execute deployment tests for fork heads. A maintainer needs to move this contribution through an upstream release branch and open a release-to-
masterPR so the protectede2e-checkcan run. This follows the workflow's linked release-branch process and the precedent in PR #479 and release PR #480.Changes
Limited.Validation
Tested with Terraform 1.15.8, AzAPI 2.12.0, AzureRM 4.81.0, and Random 3.9.0.
terraform fmt -check: passed.terraform validate: passed with zero warnings.terraform plan: 13 resources to add, 0 to change, and 0 to destroy.terraform apply: passed with all 13 resources created.ManagedIdentitywithSystemAssigned.Availabilitymetric withPercentandAverage.Related documentation work: https://github.com/MicrosoftDocs/azure-monitor-docs-pr/pull/5252
Related work item: https://dev.azure.com/msft-skilling/Content/_workitems/edit/629740