terraform-azure-service-health-notifications
This repository can be used to configure Service Health alerts across subscriptions in Azure to a specified e-mail address using Terraform.
To execute the script from command line run the following command:
terraform apply -var email_address=enter_email
If you already use Terraform to perform base Subscription configuration, this code can be modified to configure Service Health alerts as you deploy new Subs.
To learn more about Azure Service Health visit the MS docs site at Azure Service Health.
To view the current Service Health alerts, access Service Health through the Azure Portal
Requirements
No requirements.
Providers
Name | Version |
---|---|
azurerm | n/a |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
email_address | (Required) The e-mail address or Distribution List that alerts should be sent to. | string |
n/a | yes |
subscriptions_list | Used to define the list of subscriptions, each subscription must be in the format /subscriptions/xxxxx. If this is left blank it will just create a service health alert for the current subscriptions context. | list |
/subscriptions/current_context | no |
resource_group_name | Defines the name of the Resource Group that the alert configuration will reside (not the scope). | string |
service_health_rg | no |
resource_group_location | The location of the Resource Group that the alert configuration will reside. | string |
East US 2 | no |