get Spatial Anchors Account
Get information about an Azure Spatial Anchors Account.
Note: The
azure.mixedreality.SpatialAnchorsAccount
data 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)
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 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
})
}
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}
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
A collection of arguments for invoking getSpatialAnchorsAccount.
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
The name of the resource group in which to create the Spatial Anchors Account.
See also
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
Builder for com.pulumi.azure.mixedreality.kotlin.inputs.GetSpatialAnchorsAccountPlainArgs.