We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.mixedreality.getSpatialAnchorsAccount
Explore with Pulumi AI
Get information about an Azure Spatial Anchors Account.
Note: The
azure.mixedreality.SpatialAnchorsAccountdata source has been deprecated because the service is retiring from 2024-11-20 and will be removed in v5.0 of the AzureRM Provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mixedreality.getSpatialAnchorsAccount({
    name: "example",
    resourceGroupName: exampleAzurermResourceGroup.name,
});
export const accountDomain = accountDomainAzurermSpatialAnchorsAccount;
import pulumi
import pulumi_azure as azure
example = azure.mixedreality.get_spatial_anchors_account(name="example",
    resource_group_name=example_azurerm_resource_group["name"])
pulumi.export("accountDomain", account_domain_azurerm_spatial_anchors_account)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mixedreality"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mixedreality.LookupSpatialAnchorsAccount(ctx, &mixedreality.LookupSpatialAnchorsAccountArgs{
			Name:              "example",
			ResourceGroupName: exampleAzurermResourceGroup.Name,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("accountDomain", accountDomainAzurermSpatialAnchorsAccount)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.MixedReality.GetSpatialAnchorsAccount.Invoke(new()
    {
        Name = "example",
        ResourceGroupName = exampleAzurermResourceGroup.Name,
    });
    return new Dictionary<string, object?>
    {
        ["accountDomain"] = accountDomainAzurermSpatialAnchorsAccount,
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mixedreality.MixedrealityFunctions;
import com.pulumi.azure.mixedreality.inputs.GetSpatialAnchorsAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = MixedrealityFunctions.getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs.builder()
            .name("example")
            .resourceGroupName(exampleAzurermResourceGroup.name())
            .build());
        ctx.export("accountDomain", accountDomainAzurermSpatialAnchorsAccount);
    }
}
variables:
  example:
    fn::invoke:
      function: azure:mixedreality:getSpatialAnchorsAccount
      arguments:
        name: example
        resourceGroupName: ${exampleAzurermResourceGroup.name}
outputs:
  accountDomain: ${accountDomainAzurermSpatialAnchorsAccount}
Using getSpatialAnchorsAccount
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSpatialAnchorsAccount(args: GetSpatialAnchorsAccountArgs, opts?: InvokeOptions): Promise<GetSpatialAnchorsAccountResult>
function getSpatialAnchorsAccountOutput(args: GetSpatialAnchorsAccountOutputArgs, opts?: InvokeOptions): Output<GetSpatialAnchorsAccountResult>def get_spatial_anchors_account(name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSpatialAnchorsAccountResult
def get_spatial_anchors_account_output(name: Optional[pulumi.Input[str]] = None,
                                resource_group_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSpatialAnchorsAccountResult]func LookupSpatialAnchorsAccount(ctx *Context, args *LookupSpatialAnchorsAccountArgs, opts ...InvokeOption) (*LookupSpatialAnchorsAccountResult, error)
func LookupSpatialAnchorsAccountOutput(ctx *Context, args *LookupSpatialAnchorsAccountOutputArgs, opts ...InvokeOption) LookupSpatialAnchorsAccountResultOutput> Note: This function is named LookupSpatialAnchorsAccount in the Go SDK.
public static class GetSpatialAnchorsAccount 
{
    public static Task<GetSpatialAnchorsAccountResult> InvokeAsync(GetSpatialAnchorsAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetSpatialAnchorsAccountResult> Invoke(GetSpatialAnchorsAccountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSpatialAnchorsAccountResult> getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs args, InvokeOptions options)
public static Output<GetSpatialAnchorsAccountResult> getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs args, InvokeOptions options)
fn::invoke:
  function: azure:mixedreality/getSpatialAnchorsAccount:getSpatialAnchorsAccount
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- ResourceGroup stringName 
- The name of the resource group in which to create the Spatial Anchors Account.
- Name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- ResourceGroup stringName 
- The name of the resource group in which to create the Spatial Anchors Account.
- name String
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resourceGroup StringName 
- The name of the resource group in which to create the Spatial Anchors Account.
- name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resourceGroup stringName 
- The name of the resource group in which to create the Spatial Anchors Account.
- name str
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resource_group_ strname 
- The name of the resource group in which to create the Spatial Anchors Account.
- name String
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resourceGroup StringName 
- The name of the resource group in which to create the Spatial Anchors Account.
getSpatialAnchorsAccount Result
The following output properties are available:
- AccountDomain string
- The domain of the Spatial Anchors Account.
- AccountId string
- The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- ResourceGroup stringName 
- Dictionary<string, string>
- The Tags assigned to this Spatial Anchors Account.
- AccountDomain string
- The domain of the Spatial Anchors Account.
- AccountId string
- The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- ResourceGroup stringName 
- map[string]string
- The Tags assigned to this Spatial Anchors Account.
- accountDomain String
- The domain of the Spatial Anchors Account.
- accountId String
- The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resourceGroup StringName 
- Map<String,String>
- The Tags assigned to this Spatial Anchors Account.
- accountDomain string
- The domain of the Spatial Anchors Account.
- accountId string
- The account ID of the Spatial Anchors Account.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- resourceGroup stringName 
- {[key: string]: string}
- The Tags assigned to this Spatial Anchors Account.
- account_domain str
- The domain of the Spatial Anchors Account.
- account_id str
- The account ID of the Spatial Anchors Account.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- resource_group_ strname 
- Mapping[str, str]
- The Tags assigned to this Spatial Anchors Account.
- accountDomain String
- The domain of the Spatial Anchors Account.
- accountId String
- The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resourceGroup StringName 
- Map<String>
- The Tags assigned to this Spatial Anchors Account.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.