We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Get information about an Azure Spatial Anchors Account.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.MixedReality.GetSpatialAnchorsAccount.InvokeAsync(new Azure.MixedReality.GetSpatialAnchorsAccountArgs
{
Name = "example",
ResourceGroupName = azurerm_resource_group.Example.Name,
}));
this.AccountDomain = data.Azurerm_spatial_anchors_account.Account_domain;
}
[Output("accountDomain")]
public Output<string> AccountDomain { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/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: azurerm_resource_group.Example.Name,
}, nil)
if err != nil {
return err
}
ctx.Export("accountDomain", data.Azurerm_spatial_anchors_account.Account_domain)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mixedreality.getSpatialAnchorsAccount({
name: "example",
resourceGroupName: azurerm_resource_group.example.name,
});
export const accountDomain = data.azurerm_spatial_anchors_account.account_domain;
import pulumi
import pulumi_azure as azure
example = azure.mixedreality.get_spatial_anchors_account(name="example",
resource_group_name=azurerm_resource_group["example"]["name"])
pulumi.export("accountDomain", data["azurerm_spatial_anchors_account"]["account_domain"])
Example coming soon!
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.
- Resource
Group 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.
- Resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- resource
Group StringName - The name of the resource group in which to create the Spatial Anchors Account.
getSpatialAnchorsAccount Result
The following output properties are available:
- Account
Domain string - The domain of the Spatial Anchors Account.
- Account
Id string - The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName
- Account
Domain string - The domain of the Spatial Anchors Account.
- Account
Id string - The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName
- account
Domain String - The domain of the Spatial Anchors Account.
- account
Id String - The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName
- account
Domain string - The domain of the Spatial Anchors Account.
- account
Id string - The account ID of the Spatial Anchors Account.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- resource
Group stringName
- 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
- account
Domain String - The domain of the Spatial Anchors Account.
- account
Id String - The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
