Heyas! Thanks for asking, but I'm afraid I don't have enough details to help you out here. I'd recommend checking out a tutorial for the general run-down, there should be a couple you can get started with, and here's one of them:
https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-asa-01If you're working through a tutorial already, and need help with it, you might want to ask the Azure Spatial Anchors Q&A team, who should be pretty well equipped to help you out
🙂 Just be sure to give them information about what sort of errors you're getting!
https://docs.microsoft.com/en-us/answers/topics/azure-spatial-anchors.html