Manages an Azure Maps Account.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_maps_account" "example" {
name = "example-maps-account"
resource_group_name = azurerm_resource_group.example.name
sku_name = "S1"
local_authentication_enabled = true
tags = {
environment = "Test"
}
}
The following arguments are supported:
name
- (Required) The name of the Azure Maps Account. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created.
sku_name
- (Required) The SKU of the Azure Maps Account. Possible values are S0
, S1
and G2
. Changing this forces a new resource to be created.
local_authentication_enabled
- (Optional) Is local authentication enabled for this Azure Maps Account? When false
, all authentication to the Azure Maps data-plane REST API is disabled, except Azure AD authentication. Defaults to true
.
tags
- (Optional) A mapping of tags to assign to the Azure Maps Account.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Azure Maps Account.
primary_access_key
- The primary key used to authenticate and authorize access to the Maps REST APIs.
secondary_access_key
- The secondary key used to authenticate and authorize access to the Maps REST APIs.
x_ms_client_id
- A unique identifier for the Maps Account.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Maps Account.update
- (Defaults to 30 minutes) Used when updating the Maps Account.read
- (Defaults to 5 minutes) Used when retrieving the Maps Account.delete
- (Defaults to 30 minutes) Used when deleting the Maps Account.A Maps Account can be imported using the resource id
, e.g.
terraform import azurerm_maps_account.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Maps/accounts/my-maps-account