# How to create an Azure Spatial Anchor resources?

* Go to[ Azure Portal](< https://portal.azure.com/?WT.mc_id=github-mixedrealitycurriculum-ayyonet>):[ **portal.azure.com**](https://portal.azure.com/?WT.mc_id=github-mixedrealitycurriculum-ayyonet)**.**
* In the left navigation pane in the Azure portal, select **Create a resource**.
* Use the search box to search for **Spatial Anchors**.

![Azure Portal Search for Spatial Anchor](/files/-Ly7BGv6qk_7S208U6OM)

* Select **Spatial Anchors**. In the dialog box, select **Create**.
* In the **Spatial Anchors Account** dialog box:
  * Enter a unique resource name, using regular alphanumeric characters.
  * Select the subscription that you want to attach the resource to.
  * Create a resource group by selecting **Create new**. Name it **myResourceGroup** and select **OK**. A [resource group](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview#terminology?WT.mc_id=github-mixedrealitycurriculum-ayyonet) is a logical container into which Azure resources like web apps, databases, and storage accounts are deployed and managed. For example, you can choose to delete the entire resource group in one simple step later.
  * Select a location (region) in which to place the resource.
  * Select **New** to begin creating the resource.
* &#x20;After the resource is created, Azure Portal will show that your deployment is complete. Click **Go to resource**.

![When deployment is complete, select go to resources.](/files/-Ly7CiBrZpoy66xa8B2I)

* &#x20;Then, you can view the resource properties. Copy the resource's **Account ID** value into a text editor because you'll need it later.

![Copy Resource's Account ID.](/files/-Ly7CzaIzeOWNWlDgrFr)

* &#x20;Under **Settings**, select **Key**. Copy the **Primary key** value into a text editor. This value is the `Account Key`. You'll need it later.

![](/files/-Ly7DIZVjhJHxcp0jmoe)

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.xrdev.app/mixed-reality-docs/lessons/lesson-7/project/how-to-create-an-azure-spatial-anchor-resources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
