Setup an Azure Special Anchor Resource
Last updated
Last updated
Before building the app you should have to create an Azure Special Anchor Resource. Azure Spatial anchor responsible for saving our anchor data to cloud. Anchor data holds all information regarding relevant anchors. Our scene is built under this anchor and keeps all the local position data, rotation data of every & each object we placed in the scene.
Go to Azure portal using the link below and create a new Azure account. You can create a free account which is valid for 12 months including free Azure services with USD 200 credit.
https://azure.microsoft.com/en-us/features/azure-portal/
Once you sign in to an azure account go to your azure portal.
On the left panel, select Create a resource. Use a search box to search Special Anchor resource. Select Spatial Anchors then select Create.
On the Spatial Anchors Account pane, do the following:
Enter a unique resource name by 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 my Resource Group,and then select OK. A resource group is a logical container into which Azure resources, such as 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 Create to begin creating the resource.
After the resource is created, the Azure portal shows that your deployment is complete.
Select Go to resource. You can now view the resource properties. Copy the resource's Account ID value into a text editor for later use.
Also copy the resource's Account Domain value into a text editor for later use.
Under Settings, select Access Key. Copy the Primary key value, Account Key, into a text editor for later use.
The next step is to configure the app to use your account information. You copied the Account Key, Account ID, and Account Domain values to a text editor earlier, in the "Create a Spatial Anchors resource" section.
On the Project pane, go to Assets\AzureSpatialAnchors.SDK\Resources folder. Select SpatialAnchorConfig. On the Inspector pane, enter the Account Key as the value for Spatial Anchors Account Key, the Account ID as the value for Spatial Anchors Account Id, and the Account Domain as the value for Spatial Anchors Account Domain.