Manages an Azure Native New Relic Monitor.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "East US"
}
resource "azurerm_new_relic_monitor" "example" {
name = "example-nrm"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
plan {
effective_date = "2023-06-06T00:00:00Z"
}
user {
email = "user@example.com"
first_name = "Example"
last_name = "User"
phone_number = "+12313803556"
}
}
The following arguments are supported:
name
- (Required) Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
resource_group_name
- (Required) Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
location
- (Required) Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
plan
- (Required) A plan
block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
user
- (Required) A user
block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
account_creation_source
- (Optional) Specifies the source of account creation. Possible values are LIFTR
and NEWRELIC
. Defaults to LIFTR
. Changing this forces a new Azure Native New Relic Monitor to be created.
account_id
- (Optional) Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
ingestion_key
- (Optional) Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
organization_id
- (Optional) Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
org_creation_source
- (Optional) Specifies the source of org creation. Possible values are LIFTR
and NEWRELIC
. Defaults to LIFTR
. Changing this forces a new Azure Native New Relic Monitor to be created.
user_id
- (Optional) Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
A plan
block supports the following:
effective_date
- (Required) Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
billing_cycle
- (Optional) Specifies the billing cycles. Possible values are MONTHLY
, WEEKLY
and YEARLY
. Defaults to MONTHLY
. Changing this forces a new Azure Native New Relic Monitor to be created.
plan_id
- (Optional) Specifies the plan id published by NewRelic. The only possible value is newrelic-pay-as-you-go-free-live
. Defaults to newrelic-pay-as-you-go-free-live
. Changing this forces a new Azure Native New Relic Monitor to be created.
usage_type
- (Optional) Specifies the usage type. Possible values are COMMITTED
and PAYG
. Defaults to PAYG
. Changing this forces a new Azure Native New Relic Monitor to be created.
A user
block supports the following:
email
- (Required) Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
first_name
- (Required) Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
last_name
- (Required) Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
phone_number
- (Required) Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Azure Native New Relic Monitor.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Azure Native New Relic Monitor.read
- (Defaults to 5 minutes) Used when retrieving the Azure Native New Relic Monitor.update
- (Defaults to 30 minutes) Used when updating the Azure Native New Relic Monitor.delete
- (Defaults to 30 minutes) Used when deleting the Azure Native New Relic Monitor.Azure Native New Relic Monitor can be imported using the resource id
, e.g.
terraform import azurerm_new_relic_monitor.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/NewRelic.Observability/monitors/monitor1