Skip to content

azurermSpatialAnchorsAccount

Manages an Azure Spatial Anchors Account.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const azurermSpatialAnchorsAccountExample =
  new azurerm.spatialAnchorsAccount.SpatialAnchorsAccount(this, "example_1", {
    location: azurermResourceGroupExample.location,
    name: "example",
    resource_group_name: azurermResourceGroupExample.name,
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermSpatialAnchorsAccountExample.overrideLogicalId("example");

Argument Reference

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.

  • resourceGroupName - (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.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Spatial Anchors Account.

  • accountDomain - The domain of the Spatial Anchors Account.

  • accountId - The account ID of the Spatial Anchors Account.

Timeouts

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.

Import

Spatial Anchors Account can be imported using the resourceId, e.g.

terraform import azurerm_spatial_anchors_account.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.MixedReality/spatialAnchorsAccounts/example