Manages an Azure Spatial Anchors Account.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_spatial_anchors_account" "example" {
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
The following arguments are supported:
name
- (Required) Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
resource_group_name
- (Required) The name of the resource group in which to create the Spatial Anchors Account. Changing this forces a new resource to be created.
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
tags
- (Optional) A mapping of tags to assign to the resource.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Spatial Anchors Account.
account_domain
- The domain of the Spatial Anchors Account.
account_id
- The account ID of the Spatial Anchors Account.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Spatial Anchors Account.update
- (Defaults to 30 minutes) Used when updating the Spatial Anchors Account.read
- (Defaults to 5 minutes) Used when retrieving the Spatial Anchors Account.delete
- (Defaults to 30 minutes) Used when deleting the Spatial Anchors Account.Spatial Anchors Account can be imported using the resource id
, e.g.
terraform import azurerm_spatial_anchors_account.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.MixedReality/spatialAnchorsAccounts/example