GetAccount

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Batch.GetAccount.InvokeAsync(new Azure.Batch.GetAccountArgs
        {
            Name = "testbatchaccount",
            ResourceGroupName = "test",
        }));
        this.PoolAllocationMode = example.Apply(example => example.PoolAllocationMode);
    }

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

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/batch"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        example, err := batch.LookupAccount(ctx, &batch.LookupAccountArgs{
            Name:              "testbatchaccount",
            ResourceGroupName: "test",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("poolAllocationMode", example.PoolAllocationMode)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.batch.get_account(name="testbatchaccount",
    resource_group_name="test")
pulumi.export("poolAllocationMode", example.pool_allocation_mode)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.batch.getAccount({
    name: "testbatchaccount",
    resourceGroupName: "test",
});
export const poolAllocationMode = example.then(example => example.poolAllocationMode);

Using GetAccount

function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function  get_account(name=None, resource_group_name=None, opts=None)
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)

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

public static class GetAccount {
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Batch account.

ResourceGroupName string

The Name of the Resource Group where this Batch account exists.

Name string

The name of the Batch account.

ResourceGroupName string

The Name of the Resource Group where this Batch account exists.

name string

The name of the Batch account.

resourceGroupName string

The Name of the Resource Group where this Batch account exists.

name str

The name of the Batch account.

resource_group_name str

The Name of the Resource Group where this Batch account exists.

GetAccount Result

The following output properties are available:

AccountEndpoint string

The account endpoint used to interact with the Batch service.

Id string

The provider-assigned unique ID for this managed resource.

KeyVaultReferences List<GetAccountKeyVaultReference>

The key_vault_reference block that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

The Azure Region in which this Batch account exists.

Name string

The Batch account name.

PoolAllocationMode string

The pool allocation mode configured for this Batch account.

PrimaryAccessKey string

The Batch account primary access key.

ResourceGroupName string
SecondaryAccessKey string

The Batch account secondary access key.

StorageAccountId string

The ID of the Storage Account used for this Batch account.

Tags Dictionary<string, string>

A map of tags assigned to the Batch account.

AccountEndpoint string

The account endpoint used to interact with the Batch service.

Id string

The provider-assigned unique ID for this managed resource.

KeyVaultReferences []GetAccountKeyVaultReference

The key_vault_reference block that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

The Azure Region in which this Batch account exists.

Name string

The Batch account name.

PoolAllocationMode string

The pool allocation mode configured for this Batch account.

PrimaryAccessKey string

The Batch account primary access key.

ResourceGroupName string
SecondaryAccessKey string

The Batch account secondary access key.

StorageAccountId string

The ID of the Storage Account used for this Batch account.

Tags map[string]string

A map of tags assigned to the Batch account.

accountEndpoint string

The account endpoint used to interact with the Batch service.

id string

The provider-assigned unique ID for this managed resource.

keyVaultReferences GetAccountKeyVaultReference[]

The key_vault_reference block that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location string

The Azure Region in which this Batch account exists.

name string

The Batch account name.

poolAllocationMode string

The pool allocation mode configured for this Batch account.

primaryAccessKey string

The Batch account primary access key.

resourceGroupName string
secondaryAccessKey string

The Batch account secondary access key.

storageAccountId string

The ID of the Storage Account used for this Batch account.

tags {[key: string]: string}

A map of tags assigned to the Batch account.

account_endpoint str

The account endpoint used to interact with the Batch service.

id str

The provider-assigned unique ID for this managed resource.

key_vault_references List[GetAccountKeyVaultReference]

The key_vault_reference block that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location str

The Azure Region in which this Batch account exists.

name str

The Batch account name.

pool_allocation_mode str

The pool allocation mode configured for this Batch account.

primary_access_key str

The Batch account primary access key.

resource_group_name str
secondary_access_key str

The Batch account secondary access key.

storage_account_id str

The ID of the Storage Account used for this Batch account.

tags Dict[str, str]

A map of tags assigned to the Batch account.

Supporting Types

GetAccountKeyVaultReference

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

The Azure identifier of the Azure KeyVault reference.

Url string

The HTTPS URL of the Azure KeyVault reference.

Id string

The Azure identifier of the Azure KeyVault reference.

Url string

The HTTPS URL of the Azure KeyVault reference.

id string

The Azure identifier of the Azure KeyVault reference.

url string

The HTTPS URL of the Azure KeyVault reference.

id str

The Azure identifier of the Azure KeyVault reference.

url str

The HTTPS URL of the Azure KeyVault reference.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.