> For the complete documentation index, see [llms.txt](https://www.xrdev.app/mixed-reality-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.xrdev.app/mixed-reality-docs/lessons/lesson-7/project/how-to-create-an-azure-spatial-anchor-resources.md).

# 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](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LoMjAI1irMPA8c0ezFQ%2F-Ly77pQvl6NCDesEPq5j%2F-Ly7BGv6qk_7S208U6OM%2Fportal-search.png?alt=media\&token=a27ede42-30f9-4caf-9cb7-214e86e99554)

* 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.](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LoMjAI1irMPA8c0ezFQ%2F-Ly7BLvKoj_W4495nfyA%2F-Ly7CiBrZpoy66xa8B2I%2Fdeployment-complete.png?alt=media\&token=5ed416c8-be5f-4848-9e2e-4ecbda9aa5ab)

* &#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.](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-f4cc30c7517a267e58026085f3d8e0b3e5224aae%2Fview-resource-properties.png?alt=media)

* &#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.

![](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-f87b20f766f63a26526f65e67c7ed1e781e85bbb%2Fview-account-key.png?alt=media)

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
