GetAccount

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Storage.GetAccount.InvokeAsync(new Azure.Storage.GetAccountArgs
        {
            Name = "packerimages",
            ResourceGroupName = "packer-storage",
        }));
        this.StorageAccountTier = example.Apply(example => example.AccountTier);
    }

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

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "packer-storage"
        example, err := storage.LookupAccount(ctx, &storage.LookupAccountArgs{
            Name:              "packerimages",
            ResourceGroupName: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("storageAccountTier", example.AccountTier)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.storage.get_account(name="packerimages",
    resource_group_name="packer-storage")
pulumi.export("storageAccountTier", example.account_tier)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.storage.getAccount({
    name: "packerimages",
    resourceGroupName: "packer-storage",
});
export const storageAccountTier = example.then(example => example.accountTier);

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

Specifies the name of the Storage Account

ResourceGroupName string

Specifies the name of the resource group the Storage Account is located in.

Name string

Specifies the name of the Storage Account

ResourceGroupName string

Specifies the name of the resource group the Storage Account is located in.

name string

Specifies the name of the Storage Account

resourceGroupName string

Specifies the name of the resource group the Storage Account is located in.

name str

Specifies the name of the Storage Account

resource_group_name str

Specifies the name of the resource group the Storage Account is located in.

GetAccount Result

The following output properties are available:

AccessTier string

The access tier for BlobStorage accounts.

AccountKind string

The Kind of account.

AccountReplicationType string

The type of replication used for this storage account.

AccountTier string

The Tier of this storage account.

CustomDomains List<GetAccountCustomDomain>

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Is traffic only allowed via HTTPS? See here for more information.

Id string

The provider-assigned unique ID for this managed resource.

IsHnsEnabled bool

Is Hierarchical Namespace enabled?

Location string

The Azure location where the Storage Account exists

Name string

The Custom Domain Name used for the Storage Account.

PrimaryAccessKey string

The primary access key for the Storage Account.

PrimaryBlobConnectionString string

The connection string associated with the primary blob location

PrimaryBlobEndpoint string

The endpoint URL for blob storage in the primary location.

PrimaryBlobHost string

The hostname with port if applicable for blob storage in the primary location.

PrimaryConnectionString string

The connection string associated with the primary location

PrimaryDfsEndpoint string

The endpoint URL for DFS storage in the primary location.

PrimaryDfsHost string

The hostname with port if applicable for DFS storage in the primary location.

PrimaryFileEndpoint string

The endpoint URL for file storage in the primary location.

PrimaryFileHost string

The hostname with port if applicable for file storage in the primary location.

PrimaryLocation string

The primary location of the Storage Account.

PrimaryQueueEndpoint string

The endpoint URL for queue storage in the primary location.

PrimaryQueueHost string

The hostname with port if applicable for queue storage in the primary location.

PrimaryTableEndpoint string

The endpoint URL for table storage in the primary location.

PrimaryTableHost string

The hostname with port if applicable for table storage in the primary location.

PrimaryWebEndpoint string

The endpoint URL for web storage in the primary location.

PrimaryWebHost string

The hostname with port if applicable for web storage in the primary location.

ResourceGroupName string
SecondaryAccessKey string

The secondary access key for the Storage Account.

SecondaryBlobConnectionString string

The connection string associated with the secondary blob location

SecondaryBlobEndpoint string

The endpoint URL for blob storage in the secondary location.

SecondaryBlobHost string

The hostname with port if applicable for blob storage in the secondary location.

SecondaryConnectionString string

The connection string associated with the secondary location

SecondaryDfsEndpoint string

The endpoint URL for DFS storage in the secondary location.

SecondaryDfsHost string

The hostname with port if applicable for DFS storage in the secondary location.

SecondaryFileEndpoint string

The endpoint URL for file storage in the secondary location.

SecondaryFileHost string

The hostname with port if applicable for file storage in the secondary location.

SecondaryLocation string

The secondary location of the Storage Account.

SecondaryQueueEndpoint string

The endpoint URL for queue storage in the secondary location.

SecondaryQueueHost string

The hostname with port if applicable for queue storage in the secondary location.

SecondaryTableEndpoint string

The endpoint URL for table storage in the secondary location.

SecondaryTableHost string

The hostname with port if applicable for table storage in the secondary location.

SecondaryWebEndpoint string

The endpoint URL for web storage in the secondary location.

SecondaryWebHost string

The hostname with port if applicable for web storage in the secondary location.

Tags Dictionary<string, string>

A mapping of tags to assigned to the resource.

AccessTier string

The access tier for BlobStorage accounts.

AccountKind string

The Kind of account.

AccountReplicationType string

The type of replication used for this storage account.

AccountTier string

The Tier of this storage account.

CustomDomains []GetAccountCustomDomain

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Is traffic only allowed via HTTPS? See here for more information.

Id string

The provider-assigned unique ID for this managed resource.

IsHnsEnabled bool

Is Hierarchical Namespace enabled?

Location string

The Azure location where the Storage Account exists

Name string

The Custom Domain Name used for the Storage Account.

PrimaryAccessKey string

The primary access key for the Storage Account.

PrimaryBlobConnectionString string

The connection string associated with the primary blob location

PrimaryBlobEndpoint string

The endpoint URL for blob storage in the primary location.

PrimaryBlobHost string

The hostname with port if applicable for blob storage in the primary location.

PrimaryConnectionString string

The connection string associated with the primary location

PrimaryDfsEndpoint string

The endpoint URL for DFS storage in the primary location.

PrimaryDfsHost string

The hostname with port if applicable for DFS storage in the primary location.

PrimaryFileEndpoint string

The endpoint URL for file storage in the primary location.

PrimaryFileHost string

The hostname with port if applicable for file storage in the primary location.

PrimaryLocation string

The primary location of the Storage Account.

PrimaryQueueEndpoint string

The endpoint URL for queue storage in the primary location.

PrimaryQueueHost string

The hostname with port if applicable for queue storage in the primary location.

PrimaryTableEndpoint string

The endpoint URL for table storage in the primary location.

PrimaryTableHost string

The hostname with port if applicable for table storage in the primary location.

PrimaryWebEndpoint string

The endpoint URL for web storage in the primary location.

PrimaryWebHost string

The hostname with port if applicable for web storage in the primary location.

ResourceGroupName string
SecondaryAccessKey string

The secondary access key for the Storage Account.

SecondaryBlobConnectionString string

The connection string associated with the secondary blob location

SecondaryBlobEndpoint string

The endpoint URL for blob storage in the secondary location.

SecondaryBlobHost string

The hostname with port if applicable for blob storage in the secondary location.

SecondaryConnectionString string

The connection string associated with the secondary location

SecondaryDfsEndpoint string

The endpoint URL for DFS storage in the secondary location.

SecondaryDfsHost string

The hostname with port if applicable for DFS storage in the secondary location.

SecondaryFileEndpoint string

The endpoint URL for file storage in the secondary location.

SecondaryFileHost string

The hostname with port if applicable for file storage in the secondary location.

SecondaryLocation string

The secondary location of the Storage Account.

SecondaryQueueEndpoint string

The endpoint URL for queue storage in the secondary location.

SecondaryQueueHost string

The hostname with port if applicable for queue storage in the secondary location.

SecondaryTableEndpoint string

The endpoint URL for table storage in the secondary location.

SecondaryTableHost string

The hostname with port if applicable for table storage in the secondary location.

SecondaryWebEndpoint string

The endpoint URL for web storage in the secondary location.

SecondaryWebHost string

The hostname with port if applicable for web storage in the secondary location.

Tags map[string]string

A mapping of tags to assigned to the resource.

accessTier string

The access tier for BlobStorage accounts.

accountKind string

The Kind of account.

accountReplicationType string

The type of replication used for this storage account.

accountTier string

The Tier of this storage account.

customDomains GetAccountCustomDomain[]

A custom_domain block as documented below.

enableHttpsTrafficOnly boolean

Is traffic only allowed via HTTPS? See here for more information.

id string

The provider-assigned unique ID for this managed resource.

isHnsEnabled boolean

Is Hierarchical Namespace enabled?

location string

The Azure location where the Storage Account exists

name string

The Custom Domain Name used for the Storage Account.

primaryAccessKey string

The primary access key for the Storage Account.

primaryBlobConnectionString string

The connection string associated with the primary blob location

primaryBlobEndpoint string

The endpoint URL for blob storage in the primary location.

primaryBlobHost string

The hostname with port if applicable for blob storage in the primary location.

primaryConnectionString string

The connection string associated with the primary location

primaryDfsEndpoint string

The endpoint URL for DFS storage in the primary location.

primaryDfsHost string

The hostname with port if applicable for DFS storage in the primary location.

primaryFileEndpoint string

The endpoint URL for file storage in the primary location.

primaryFileHost string

The hostname with port if applicable for file storage in the primary location.

primaryLocation string

The primary location of the Storage Account.

primaryQueueEndpoint string

The endpoint URL for queue storage in the primary location.

primaryQueueHost string

The hostname with port if applicable for queue storage in the primary location.

primaryTableEndpoint string

The endpoint URL for table storage in the primary location.

primaryTableHost string

The hostname with port if applicable for table storage in the primary location.

primaryWebEndpoint string

The endpoint URL for web storage in the primary location.

primaryWebHost string

The hostname with port if applicable for web storage in the primary location.

resourceGroupName string
secondaryAccessKey string

The secondary access key for the Storage Account.

secondaryBlobConnectionString string

The connection string associated with the secondary blob location

secondaryBlobEndpoint string

The endpoint URL for blob storage in the secondary location.

secondaryBlobHost string

The hostname with port if applicable for blob storage in the secondary location.

secondaryConnectionString string

The connection string associated with the secondary location

secondaryDfsEndpoint string

The endpoint URL for DFS storage in the secondary location.

secondaryDfsHost string

The hostname with port if applicable for DFS storage in the secondary location.

secondaryFileEndpoint string

The endpoint URL for file storage in the secondary location.

secondaryFileHost string

The hostname with port if applicable for file storage in the secondary location.

secondaryLocation string

The secondary location of the Storage Account.

secondaryQueueEndpoint string

The endpoint URL for queue storage in the secondary location.

secondaryQueueHost string

The hostname with port if applicable for queue storage in the secondary location.

secondaryTableEndpoint string

The endpoint URL for table storage in the secondary location.

secondaryTableHost string

The hostname with port if applicable for table storage in the secondary location.

secondaryWebEndpoint string

The endpoint URL for web storage in the secondary location.

secondaryWebHost string

The hostname with port if applicable for web storage in the secondary location.

tags {[key: string]: string}

A mapping of tags to assigned to the resource.

access_tier str

The access tier for BlobStorage accounts.

account_kind str

The Kind of account.

account_replication_type str

The type of replication used for this storage account.

account_tier str

The Tier of this storage account.

custom_domains List[GetAccountCustomDomain]

A custom_domain block as documented below.

enable_https_traffic_only bool

Is traffic only allowed via HTTPS? See here for more information.

id str

The provider-assigned unique ID for this managed resource.

is_hns_enabled bool

Is Hierarchical Namespace enabled?

location str

The Azure location where the Storage Account exists

name str

The Custom Domain Name used for the Storage Account.

primary_access_key str

The primary access key for the Storage Account.

primary_blob_connection_string str

The connection string associated with the primary blob location

primary_blob_endpoint str

The endpoint URL for blob storage in the primary location.

primary_blob_host str

The hostname with port if applicable for blob storage in the primary location.

primary_connection_string str

The connection string associated with the primary location

primary_dfs_endpoint str

The endpoint URL for DFS storage in the primary location.

primary_dfs_host str

The hostname with port if applicable for DFS storage in the primary location.

primary_file_endpoint str

The endpoint URL for file storage in the primary location.

primary_file_host str

The hostname with port if applicable for file storage in the primary location.

primary_location str

The primary location of the Storage Account.

primary_queue_endpoint str

The endpoint URL for queue storage in the primary location.

primary_queue_host str

The hostname with port if applicable for queue storage in the primary location.

primary_table_endpoint str

The endpoint URL for table storage in the primary location.

primary_table_host str

The hostname with port if applicable for table storage in the primary location.

primary_web_endpoint str

The endpoint URL for web storage in the primary location.

primary_web_host str

The hostname with port if applicable for web storage in the primary location.

resource_group_name str
secondary_access_key str

The secondary access key for the Storage Account.

secondary_blob_connection_string str

The connection string associated with the secondary blob location

secondary_blob_endpoint str

The endpoint URL for blob storage in the secondary location.

secondary_blob_host str

The hostname with port if applicable for blob storage in the secondary location.

secondary_connection_string str

The connection string associated with the secondary location

secondary_dfs_endpoint str

The endpoint URL for DFS storage in the secondary location.

secondary_dfs_host str

The hostname with port if applicable for DFS storage in the secondary location.

secondary_file_endpoint str

The endpoint URL for file storage in the secondary location.

secondary_file_host str

The hostname with port if applicable for file storage in the secondary location.

secondary_location str

The secondary location of the Storage Account.

secondary_queue_endpoint str

The endpoint URL for queue storage in the secondary location.

secondary_queue_host str

The hostname with port if applicable for queue storage in the secondary location.

secondary_table_endpoint str

The endpoint URL for table storage in the secondary location.

secondary_table_host str

The hostname with port if applicable for table storage in the secondary location.

secondary_web_endpoint str

The endpoint URL for web storage in the secondary location.

secondary_web_host str

The hostname with port if applicable for web storage in the secondary location.

tags Dict[str, str]

A mapping of tags to assigned to the resource.

Supporting Types

GetAccountCustomDomain

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Name string

Specifies the name of the Storage Account

Name string

Specifies the name of the Storage Account

name string

Specifies the name of the Storage Account

name str

Specifies the name of the Storage Account

Package Details

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