For this one, I think you are looking for this section to configure the relevant parameters for the AAD account information in Unity:
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
.
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.
NOTE: Unless you have an existing ASA service account created, no new accounts are being created due to pending ASA retirement in November. See Azure Spatial Anchors Retirement