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
LookupAccountin 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.
- Resource
Group stringName The Name of the Resource Group where this Batch account exists.
- Name string
The name of the Batch account.
- Resource
Group stringName The Name of the Resource Group where this Batch account exists.
- name string
The name of the Batch account.
- resource
Group stringName The Name of the Resource Group where this Batch account exists.
- name str
The name of the Batch account.
- resource_
group_ strname The Name of the Resource Group where this Batch account exists.
GetAccount Result
The following output properties are available:
- Account
Endpoint string The account endpoint used to interact with the Batch service.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault List<GetReferences Account Key Vault Reference> The
key_vault_referenceblock that describes the Azure KeyVault reference to use when deploying the Azure Batch account using theUserSubscriptionpool allocation mode.- Location string
The Azure Region in which this Batch account exists.
- Name string
The Batch account name.
- Pool
Allocation stringMode The pool allocation mode configured for this Batch account.
- Primary
Access stringKey The Batch account primary access key.
- Resource
Group stringName - Secondary
Access stringKey The Batch account secondary access key.
- Storage
Account stringId The ID of the Storage Account used for this Batch account.
- Dictionary<string, string>
A map of tags assigned to the Batch account.
- Account
Endpoint string The account endpoint used to interact with the Batch service.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault []GetReferences Account Key Vault Reference The
key_vault_referenceblock that describes the Azure KeyVault reference to use when deploying the Azure Batch account using theUserSubscriptionpool allocation mode.- Location string
The Azure Region in which this Batch account exists.
- Name string
The Batch account name.
- Pool
Allocation stringMode The pool allocation mode configured for this Batch account.
- Primary
Access stringKey The Batch account primary access key.
- Resource
Group stringName - Secondary
Access stringKey The Batch account secondary access key.
- Storage
Account stringId The ID of the Storage Account used for this Batch account.
- map[string]string
A map of tags assigned to the Batch account.
- account
Endpoint string The account endpoint used to interact with the Batch service.
- id string
The provider-assigned unique ID for this managed resource.
- key
Vault GetReferences Account Key Vault Reference[] The
key_vault_referenceblock that describes the Azure KeyVault reference to use when deploying the Azure Batch account using theUserSubscriptionpool allocation mode.- location string
The Azure Region in which this Batch account exists.
- name string
The Batch account name.
- pool
Allocation stringMode The pool allocation mode configured for this Batch account.
- primary
Access stringKey The Batch account primary access key.
- resource
Group stringName - secondary
Access stringKey The Batch account secondary access key.
- storage
Account stringId The ID of the Storage Account used for this Batch account.
- {[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_ List[Getreferences Account Key Vault Reference] The
key_vault_referenceblock that describes the Azure KeyVault reference to use when deploying the Azure Batch account using theUserSubscriptionpool allocation mode.- location str
The Azure Region in which this Batch account exists.
- name str
The Batch account name.
- pool_
allocation_ strmode The pool allocation mode configured for this Batch account.
- primary_
access_ strkey The Batch account primary access key.
- resource_
group_ strname - secondary_
access_ strkey The Batch account secondary access key.
- storage_
account_ strid The ID of the Storage Account used for this Batch account.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.