Manages a Microsoft Graph Services Account.
resource "azuread_application" "example" {
display_name = "example-app"
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_graph_services_account" "example" {
name = "example"
resource_group_name = azurerm_resource_group.example.name
application_id = azuread_application.example.application_id
tags = {
environment = "Production"
}
}
The following arguments are supported:
name
- (Required) Specifies the name of this Account. Changing this forces a new Account to be created.
resource_group_name
- (Required) Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
application_id
- (Required) Customer owned application ID. Changing this forces a new Account to be created.
tags
- (Optional) A mapping of tags which should be assigned to the Account.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Account.
billing_plan_id
- Billing Plan Id.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating this Account.delete
- (Defaults to 30 minutes) Used when deleting this Account.read
- (Defaults to 5 minutes) Used when retrieving this Account.update
- (Defaults to 30 minutes) Used when updating this Account.An existing Account can be imported into Terraform using the resource id
, e.g.
terraform import azurerm_graph_services_account.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1