Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 20, 2022 by Pulumi

getAccount

Use this data source to access information about an existing Azure Maps Account.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Maps.GetAccount.InvokeAsync(new Azure.Maps.GetAccountArgs
        {
            Name = "production",
            ResourceGroupName = "maps",
        }));
        this.MapsAccountId = example.Apply(example => example.Id);
    }

    [Output("mapsAccountId")]
    public Output<string> MapsAccountId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/maps"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := maps.LookupAccount(ctx, &maps.LookupAccountArgs{
			Name:              "production",
			ResourceGroupName: "maps",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mapsAccountId", example.Id)
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(MapsFunctions.getAccount(GetAccountArgs.builder()
            .name("production")
            .resourceGroupName("maps")
            .build()));

        ctx.export("mapsAccountId", example.apply(getAccountResult -> getAccountResult.getId()));
        }
}
import pulumi
import pulumi_azure as azure

example = azure.maps.get_account(name="production",
    resource_group_name="maps")
pulumi.export("mapsAccountId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.maps.getAccount({
    name: "production",
    resourceGroupName: "maps",
});
export const mapsAccountId = example.then(example => example.id);
variables:
  example:
    Fn::Invoke:
      Function: azure:maps:getAccount
      Arguments:
        name: production
        resourceGroupName: maps
outputs:
  mapsAccountId: ${example.id}

Using getAccount

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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>
def get_account(name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput

> Note: This function is named LookupAccount in the Go SDK.

public static class GetAccount 
{
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure:maps/getAccount:getAccount
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

Specifies the name of the Maps Account.

ResourceGroupName string

Specifies the name of the Resource Group in which the Maps Account is located.

Tags Dictionary<string, string>
Name string

Specifies the name of the Maps Account.

ResourceGroupName string

Specifies the name of the Resource Group in which the Maps Account is located.

Tags map[string]string
name String

Specifies the name of the Maps Account.

resourceGroupName String

Specifies the name of the Resource Group in which the Maps Account is located.

tags Map
name string

Specifies the name of the Maps Account.

resourceGroupName string

Specifies the name of the Resource Group in which the Maps Account is located.

tags {[key: string]: string}
name str

Specifies the name of the Maps Account.

resource_group_name str

Specifies the name of the Resource Group in which the Maps Account is located.

tags Mapping[str, str]
name String

Specifies the name of the Maps Account.

resourceGroupName String

Specifies the name of the Resource Group in which the Maps Account is located.

tags Map

getAccount Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
PrimaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs.

ResourceGroupName string
SecondaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

SkuName string

The SKU of the Azure Maps Account.

XMsClientId string

A unique identifier for the Maps Account.

Tags Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Name string
PrimaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs.

ResourceGroupName string
SecondaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

SkuName string

The SKU of the Azure Maps Account.

XMsClientId string

A unique identifier for the Maps Account.

Tags map[string]string
id String

The provider-assigned unique ID for this managed resource.

name String
primaryAccessKey String

The primary key used to authenticate and authorize access to the Maps REST APIs.

resourceGroupName String
secondaryAccessKey String

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

skuName String

The SKU of the Azure Maps Account.

xMsClientId String

A unique identifier for the Maps Account.

tags Map
id string

The provider-assigned unique ID for this managed resource.

name string
primaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs.

resourceGroupName string
secondaryAccessKey string

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

skuName string

The SKU of the Azure Maps Account.

xMsClientId string

A unique identifier for the Maps Account.

tags {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

name str
primary_access_key str

The primary key used to authenticate and authorize access to the Maps REST APIs.

resource_group_name str
secondary_access_key str

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

sku_name str

The SKU of the Azure Maps Account.

x_ms_client_id str

A unique identifier for the Maps Account.

tags Mapping[str, str]
id String

The provider-assigned unique ID for this managed resource.

name String
primaryAccessKey String

The primary key used to authenticate and authorize access to the Maps REST APIs.

resourceGroupName String
secondaryAccessKey String

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

skuName String

The SKU of the Azure Maps Account.

xMsClientId String

A unique identifier for the Maps Account.

tags Map

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.