Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

Account

Manages an Azure Storage Account.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
            Tags = 
            {
                { "environment", "staging" },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "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 {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West Europe"),
        })
        if err != nil {
            return err
        }
        _, err = storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
            ResourceGroupName:      exampleResourceGroup.Name,
            Location:               exampleResourceGroup.Location,
            AccountTier:            pulumi.String("Standard"),
            AccountReplicationType: pulumi.String("GRS"),
            Tags: pulumi.StringMap{
                "environment": pulumi.String("staging"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="GRS",
    tags={
        "environment": "staging",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "GRS",
    tags: {
        environment: "staging",
    },
});

With Network Rules

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
        {
            AddressSpaces = 
            {
                "10.0.0.0/16",
            },
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
        });
        var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = 
            {
                "10.0.2.0/24",
            },
            ServiceEndpoints = 
            {
                "Microsoft.Sql",
                "Microsoft.Storage",
            },
        });
        var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
            NetworkRules = new Azure.Storage.Inputs.AccountNetworkRulesArgs
            {
                DefaultAction = "Deny",
                IpRules = 
                {
                    "100.0.0.1",
                },
                VirtualNetworkSubnetIds = 
                {
                    exampleSubnet.Id,
                },
            },
            Tags = 
            {
                { "environment", "staging" },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
    "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 {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West Europe"),
        })
        if err != nil {
            return err
        }
        exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
            AddressSpaces: pulumi.StringArray{
                pulumi.String("10.0.0.0/16"),
            },
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
        })
        if err != nil {
            return err
        }
        exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
            ResourceGroupName:  exampleResourceGroup.Name,
            VirtualNetworkName: exampleVirtualNetwork.Name,
            AddressPrefixes: pulumi.StringArray{
                pulumi.String("10.0.2.0/24"),
            },
            ServiceEndpoints: pulumi.StringArray{
                pulumi.String("Microsoft.Sql"),
                pulumi.String("Microsoft.Storage"),
            },
        })
        if err != nil {
            return err
        }
        _, err = storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
            ResourceGroupName:      exampleResourceGroup.Name,
            Location:               exampleResourceGroup.Location,
            AccountTier:            pulumi.String("Standard"),
            AccountReplicationType: pulumi.String("LRS"),
            NetworkRules: &storage.AccountNetworkRulesArgs{
                DefaultAction: pulumi.String("Deny"),
                IpRules: pulumi.StringArray{
                    pulumi.String("100.0.0.1"),
                },
                VirtualNetworkSubnetIds: pulumi.StringArray{
                    exampleSubnet.ID(),
                },
            },
            Tags: pulumi.StringMap{
                "environment": pulumi.String("staging"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.0.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"],
    service_endpoints=[
        "Microsoft.Sql",
        "Microsoft.Storage",
    ])
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS",
    network_rules=azure.storage.AccountNetworkRulesArgs(
        default_action="Deny",
        ip_rules=["100.0.0.1"],
        virtual_network_subnet_ids=[example_subnet.id],
    ),
    tags={
        "environment": "staging",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
    addressSpaces: ["10.0.0.0/16"],
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
    serviceEndpoints: [
        "Microsoft.Sql",
        "Microsoft.Storage",
    ],
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
    networkRules: {
        defaultAction: "Deny",
        ipRules: ["100.0.0.1"],
        virtualNetworkSubnetIds: [exampleSubnet.id],
    },
    tags: {
        environment: "staging",
    },
});

Create a Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
def Account(resource_name: str, opts: Optional[ResourceOptions] = None, access_tier: Optional[str] = None, account_kind: Optional[str] = None, account_replication_type: Optional[str] = None, account_tier: Optional[str] = None, allow_blob_public_access: Optional[bool] = None, blob_properties: Optional[AccountBlobPropertiesArgs] = None, custom_domain: Optional[AccountCustomDomainArgs] = None, enable_https_traffic_only: Optional[bool] = None, identity: Optional[AccountIdentityArgs] = None, is_hns_enabled: Optional[bool] = None, large_file_share_enabled: Optional[bool] = None, location: Optional[str] = None, min_tls_version: Optional[str] = None, name: Optional[str] = None, network_rules: Optional[AccountNetworkRulesArgs] = None, queue_properties: Optional[AccountQueuePropertiesArgs] = None, resource_group_name: Optional[str] = None, static_website: Optional[AccountStaticWebsiteArgs] = None, tags: Optional[Mapping[str, str]] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Account resource accepts the following input properties:

AccountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

AccountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

AccessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

AccountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

AllowBlobPublicAccess bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

BlobProperties AccountBlobPropertiesArgs

A blob_properties block as defined below.

CustomDomain AccountCustomDomainArgs

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

Identity AccountIdentityArgs

A identity block as defined below.

IsHnsEnabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

LargeFileShareEnabled bool

Is Large File Share Enabled?

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

MinTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

Name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

NetworkRules AccountNetworkRulesArgs

A network_rules block as documented below.

QueueProperties AccountQueuePropertiesArgs

A queue_properties block as defined below.

StaticWebsite AccountStaticWebsiteArgs

A static_website block as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

AccountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

AccountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

AccessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

AccountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

AllowBlobPublicAccess bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

BlobProperties AccountBlobProperties

A blob_properties block as defined below.

CustomDomain AccountCustomDomain

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

Identity AccountIdentity

A identity block as defined below.

IsHnsEnabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

LargeFileShareEnabled bool

Is Large File Share Enabled?

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

MinTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

Name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

NetworkRules AccountNetworkRulesType

A network_rules block as documented below.

QueueProperties AccountQueueProperties

A queue_properties block as defined below.

StaticWebsite AccountStaticWebsite

A static_website block as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

accountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

accountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

accessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

accountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

allowBlobPublicAccess boolean

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

blobProperties AccountBlobProperties

A blob_properties block as defined below.

customDomain AccountCustomDomain

A custom_domain block as documented below.

enableHttpsTrafficOnly boolean

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

identity AccountIdentity

A identity block as defined below.

isHnsEnabled boolean

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

largeFileShareEnabled boolean

Is Large File Share Enabled?

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

minTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

networkRules AccountNetworkRules

A network_rules block as documented below.

queueProperties AccountQueueProperties

A queue_properties block as defined below.

staticWebsite AccountStaticWebsite

A static_website block as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

account_replication_type str

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

account_tier str

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

access_tier str

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

account_kind str

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

allow_blob_public_access bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

blob_properties AccountBlobPropertiesArgs

A blob_properties block as defined below.

custom_domain AccountCustomDomainArgs

A custom_domain block as documented below.

enable_https_traffic_only bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

identity AccountIdentityArgs

A identity block as defined below.

is_hns_enabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

large_file_share_enabled bool

Is Large File Share Enabled?

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

min_tls_version str

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

name str

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

network_rules AccountNetworkRulesArgs

A network_rules block as documented below.

queue_properties AccountQueuePropertiesArgs

A queue_properties block as defined below.

static_website AccountStaticWebsiteArgs

A static_website block as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
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.

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.

Id string
The provider-assigned unique ID for this managed resource.
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.

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.

id string
The provider-assigned unique ID for this managed resource.
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.

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.

id str
The provider-assigned unique ID for this managed resource.
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.

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.

Look up an Existing Account Resource

Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, access_tier: Optional[str] = None, account_kind: Optional[str] = None, account_replication_type: Optional[str] = None, account_tier: Optional[str] = None, allow_blob_public_access: Optional[bool] = None, blob_properties: Optional[AccountBlobPropertiesArgs] = None, custom_domain: Optional[AccountCustomDomainArgs] = None, enable_https_traffic_only: Optional[bool] = None, identity: Optional[AccountIdentityArgs] = None, is_hns_enabled: Optional[bool] = None, large_file_share_enabled: Optional[bool] = None, location: Optional[str] = None, min_tls_version: Optional[str] = None, name: Optional[str] = None, network_rules: Optional[AccountNetworkRulesArgs] = None, primary_access_key: Optional[str] = None, primary_blob_connection_string: Optional[str] = None, primary_blob_endpoint: Optional[str] = None, primary_blob_host: Optional[str] = None, primary_connection_string: Optional[str] = None, primary_dfs_endpoint: Optional[str] = None, primary_dfs_host: Optional[str] = None, primary_file_endpoint: Optional[str] = None, primary_file_host: Optional[str] = None, primary_location: Optional[str] = None, primary_queue_endpoint: Optional[str] = None, primary_queue_host: Optional[str] = None, primary_table_endpoint: Optional[str] = None, primary_table_host: Optional[str] = None, primary_web_endpoint: Optional[str] = None, primary_web_host: Optional[str] = None, queue_properties: Optional[AccountQueuePropertiesArgs] = None, resource_group_name: Optional[str] = None, secondary_access_key: Optional[str] = None, secondary_blob_connection_string: Optional[str] = None, secondary_blob_endpoint: Optional[str] = None, secondary_blob_host: Optional[str] = None, secondary_connection_string: Optional[str] = None, secondary_dfs_endpoint: Optional[str] = None, secondary_dfs_host: Optional[str] = None, secondary_file_endpoint: Optional[str] = None, secondary_file_host: Optional[str] = None, secondary_location: Optional[str] = None, secondary_queue_endpoint: Optional[str] = None, secondary_queue_host: Optional[str] = None, secondary_table_endpoint: Optional[str] = None, secondary_table_host: Optional[str] = None, secondary_web_endpoint: Optional[str] = None, secondary_web_host: Optional[str] = None, static_website: Optional[AccountStaticWebsiteArgs] = None, tags: Optional[Mapping[str, str]] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AccessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

AccountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

AccountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

AccountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

AllowBlobPublicAccess bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

BlobProperties AccountBlobPropertiesArgs

A blob_properties block as defined below.

CustomDomain AccountCustomDomainArgs

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

Identity AccountIdentityArgs

A identity block as defined below.

IsHnsEnabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

LargeFileShareEnabled bool

Is Large File Share Enabled?

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

MinTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

Name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

NetworkRules AccountNetworkRulesArgs

A network_rules block as documented below.

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.

QueueProperties AccountQueuePropertiesArgs

A queue_properties block as defined below.

ResourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

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.

StaticWebsite AccountStaticWebsiteArgs

A static_website block as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

AccessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

AccountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

AccountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

AccountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

AllowBlobPublicAccess bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

BlobProperties AccountBlobProperties

A blob_properties block as defined below.

CustomDomain AccountCustomDomain

A custom_domain block as documented below.

EnableHttpsTrafficOnly bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

Identity AccountIdentity

A identity block as defined below.

IsHnsEnabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

LargeFileShareEnabled bool

Is Large File Share Enabled?

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

MinTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

Name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

NetworkRules AccountNetworkRulesType

A network_rules block as documented below.

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.

QueueProperties AccountQueueProperties

A queue_properties block as defined below.

ResourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

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.

StaticWebsite AccountStaticWebsite

A static_website block as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

accessTier string

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

accountKind string

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

accountReplicationType string

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

accountTier string

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

allowBlobPublicAccess boolean

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

blobProperties AccountBlobProperties

A blob_properties block as defined below.

customDomain AccountCustomDomain

A custom_domain block as documented below.

enableHttpsTrafficOnly boolean

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

identity AccountIdentity

A identity block as defined below.

isHnsEnabled boolean

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

largeFileShareEnabled boolean

Is Large File Share Enabled?

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

minTlsVersion string

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

name string

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

networkRules AccountNetworkRules

A network_rules block as documented below.

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.

queueProperties AccountQueueProperties

A queue_properties block as defined below.

resourceGroupName string

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

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.

staticWebsite AccountStaticWebsite

A static_website block as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

access_tier str

Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

account_kind str

Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2. Changing this forces a new resource to be created. Defaults to StorageV2.

account_replication_type str

Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.

account_tier str

Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

allow_blob_public_access bool

Allow or disallow public access to all blobs or containers in the storage account. Defaults to false.

blob_properties AccountBlobPropertiesArgs

A blob_properties block as defined below.

custom_domain AccountCustomDomainArgs

A custom_domain block as documented below.

enable_https_traffic_only bool

Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true.

identity AccountIdentityArgs

A identity block as defined below.

is_hns_enabled bool

Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.

large_file_share_enabled bool

Is Large File Share Enabled?

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

min_tls_version str

The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2. Defaults to TLS1_0 for new storage accounts.

name str

Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.

network_rules AccountNetworkRulesArgs

A network_rules block as documented below.

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.

queue_properties AccountQueuePropertiesArgs

A queue_properties block as defined below.

resource_group_name str

The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

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.

static_website AccountStaticWebsiteArgs

A static_website block as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

Supporting Types

AccountBlobProperties

CorsRules List<AccountBlobPropertiesCorsRuleArgs>

A cors_rule block as defined below.

DeleteRetentionPolicy AccountBlobPropertiesDeleteRetentionPolicyArgs

A delete_retention_policy block as defined below.

CorsRules []AccountBlobPropertiesCorsRule

A cors_rule block as defined below.

DeleteRetentionPolicy AccountBlobPropertiesDeleteRetentionPolicy

A delete_retention_policy block as defined below.

corsRules AccountBlobPropertiesCorsRule[]

A cors_rule block as defined below.

deleteRetentionPolicy AccountBlobPropertiesDeleteRetentionPolicy

A delete_retention_policy block as defined below.

cors_rules Sequence[AccountBlobPropertiesCorsRuleArgs]

A cors_rule block as defined below.

delete_retention_policy AccountBlobPropertiesDeleteRetentionPolicyArgs

A delete_retention_policy block as defined below.

AccountBlobPropertiesCorsRule

AllowedHeaders List<string>

A list of headers that are allowed to be a part of the cross-origin request.

AllowedMethods List<string>

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

AllowedOrigins List<string>

A list of origin domains that will be allowed by CORS.

ExposedHeaders List<string>

A list of response headers that are exposed to CORS clients.

MaxAgeInSeconds int

The number of seconds the client should cache a preflight response.

AllowedHeaders []string

A list of headers that are allowed to be a part of the cross-origin request.

AllowedMethods []string

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

AllowedOrigins []string

A list of origin domains that will be allowed by CORS.

ExposedHeaders []string

A list of response headers that are exposed to CORS clients.

MaxAgeInSeconds int

The number of seconds the client should cache a preflight response.

allowedHeaders string[]

A list of headers that are allowed to be a part of the cross-origin request.

allowedMethods string[]

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

allowedOrigins string[]

A list of origin domains that will be allowed by CORS.

exposedHeaders string[]

A list of response headers that are exposed to CORS clients.

maxAgeInSeconds number

The number of seconds the client should cache a preflight response.

allowed_headers Sequence[str]

A list of headers that are allowed to be a part of the cross-origin request.

allowed_methods Sequence[str]

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

allowed_origins Sequence[str]

A list of origin domains that will be allowed by CORS.

exposed_headers Sequence[str]

A list of response headers that are exposed to CORS clients.

max_age_in_seconds int

The number of seconds the client should cache a preflight response.

AccountBlobPropertiesDeleteRetentionPolicy

Days int

Specifies the number of days that the blob should be retained, between 1 and 365 days. Defaults to 7.

Days int

Specifies the number of days that the blob should be retained, between 1 and 365 days. Defaults to 7.

days number

Specifies the number of days that the blob should be retained, between 1 and 365 days. Defaults to 7.

days int

Specifies the number of days that the blob should be retained, between 1 and 365 days. Defaults to 7.

AccountCustomDomain

Name string

The Custom Domain Name to use for the Storage Account, which will be validated by Azure.

UseSubdomain bool

Should the Custom Domain Name be validated by using indirect CNAME validation?

Name string

The Custom Domain Name to use for the Storage Account, which will be validated by Azure.

UseSubdomain bool

Should the Custom Domain Name be validated by using indirect CNAME validation?

name string

The Custom Domain Name to use for the Storage Account, which will be validated by Azure.

useSubdomain boolean

Should the Custom Domain Name be validated by using indirect CNAME validation?

name str

The Custom Domain Name to use for the Storage Account, which will be validated by Azure.

use_subdomain bool

Should the Custom Domain Name be validated by using indirect CNAME validation?

AccountIdentity

Type string

Specifies the identity type of the Storage Account. At this time the only allowed value is SystemAssigned.

PrincipalId string

The Principal ID for the Service Principal associated with the Identity of this Storage Account.

TenantId string

The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

Type string

Specifies the identity type of the Storage Account. At this time the only allowed value is SystemAssigned.

PrincipalId string

The Principal ID for the Service Principal associated with the Identity of this Storage Account.

TenantId string

The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

type string

Specifies the identity type of the Storage Account. At this time the only allowed value is SystemAssigned.

principalId string

The Principal ID for the Service Principal associated with the Identity of this Storage Account.

tenantId string

The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

type str

Specifies the identity type of the Storage Account. At this time the only allowed value is SystemAssigned.

principal_id str

The Principal ID for the Service Principal associated with the Identity of this Storage Account.

tenant_id str

The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

AccountNetworkRules

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

Bypasses List<string>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

IpRules List<string>

List of public IP or IP ranges in CIDR Format. Only IPV4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

VirtualNetworkSubnetIds List<string>

A list of resource ids for subnets.

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

Bypasses []string

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

IpRules []string

List of public IP or IP ranges in CIDR Format. Only IPV4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

VirtualNetworkSubnetIds []string

A list of resource ids for subnets.

defaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

bypasses string[]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ipRules string[]

List of public IP or IP ranges in CIDR Format. Only IPV4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

virtualNetworkSubnetIds string[]

A list of resource ids for subnets.

default_action str

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

bypasses Sequence[str]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ip_rules Sequence[str]

List of public IP or IP ranges in CIDR Format. Only IPV4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

virtual_network_subnet_ids Sequence[str]

A list of resource ids for subnets.

AccountQueueProperties

CorsRules List<AccountQueuePropertiesCorsRuleArgs>

A cors_rule block as defined above.

HourMetrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

Logging AccountQueuePropertiesLoggingArgs

A logging block as defined below.

MinuteMetrics AccountQueuePropertiesMinuteMetricsArgs

A minute_metrics block as defined below.

CorsRules []AccountQueuePropertiesCorsRule

A cors_rule block as defined above.

HourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

Logging AccountQueuePropertiesLogging

A logging block as defined below.

MinuteMetrics AccountQueuePropertiesMinuteMetrics

A minute_metrics block as defined below.

corsRules AccountQueuePropertiesCorsRule[]

A cors_rule block as defined above.

hourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

logging AccountQueuePropertiesLogging

A logging block as defined below.

minuteMetrics AccountQueuePropertiesMinuteMetrics

A minute_metrics block as defined below.

cors_rules Sequence[AccountQueuePropertiesCorsRuleArgs]

A cors_rule block as defined above.

hour_metrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

logging AccountQueuePropertiesLoggingArgs

A logging block as defined below.

minute_metrics AccountQueuePropertiesMinuteMetricsArgs

A minute_metrics block as defined below.

AccountQueuePropertiesCorsRule

AllowedHeaders List<string>

A list of headers that are allowed to be a part of the cross-origin request.

AllowedMethods List<string>

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

AllowedOrigins List<string>

A list of origin domains that will be allowed by CORS.

ExposedHeaders List<string>

A list of response headers that are exposed to CORS clients.

MaxAgeInSeconds int

The number of seconds the client should cache a preflight response.

AllowedHeaders []string

A list of headers that are allowed to be a part of the cross-origin request.

AllowedMethods []string

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

AllowedOrigins []string

A list of origin domains that will be allowed by CORS.

ExposedHeaders []string

A list of response headers that are exposed to CORS clients.

MaxAgeInSeconds int

The number of seconds the client should cache a preflight response.

allowedHeaders string[]

A list of headers that are allowed to be a part of the cross-origin request.

allowedMethods string[]

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

allowedOrigins string[]

A list of origin domains that will be allowed by CORS.

exposedHeaders string[]

A list of response headers that are exposed to CORS clients.

maxAgeInSeconds number

The number of seconds the client should cache a preflight response.

allowed_headers Sequence[str]

A list of headers that are allowed to be a part of the cross-origin request.

allowed_methods Sequence[str]

A list of http headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

allowed_origins Sequence[str]

A list of origin domains that will be allowed by CORS.

exposed_headers Sequence[str]

A list of response headers that are exposed to CORS clients.

max_age_in_seconds int

The number of seconds the client should cache a preflight response.

AccountQueuePropertiesHourMetrics

Enabled bool

Indicates whether hour metrics are enabled for the Queue service. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

IncludeApis bool

Indicates whether metrics should generate summary statistics for called API operations.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

Enabled bool

Indicates whether hour metrics are enabled for the Queue service. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

IncludeApis bool

Indicates whether metrics should generate summary statistics for called API operations.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

enabled boolean

Indicates whether hour metrics are enabled for the Queue service. Changing this forces a new resource.

version string

The version of storage analytics to configure. Changing this forces a new resource.

includeApis boolean

Indicates whether metrics should generate summary statistics for called API operations.

retentionPolicyDays number

Specifies the number of days that logs will be retained. Changing this forces a new resource.

enabled bool

Indicates whether hour metrics are enabled for the Queue service. Changing this forces a new resource.

version str

The version of storage analytics to configure. Changing this forces a new resource.

include_apis bool

Indicates whether metrics should generate summary statistics for called API operations.

retention_policy_days int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

AccountQueuePropertiesLogging

Delete bool

Indicates whether all delete requests should be logged. Changing this forces a new resource.

Read bool

Indicates whether all read requests should be logged. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

Write bool

Indicates whether all write requests should be logged. Changing this forces a new resource.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

Delete bool

Indicates whether all delete requests should be logged. Changing this forces a new resource.

Read bool

Indicates whether all read requests should be logged. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

Write bool

Indicates whether all write requests should be logged. Changing this forces a new resource.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

delete boolean

Indicates whether all delete requests should be logged. Changing this forces a new resource.

read boolean

Indicates whether all read requests should be logged. Changing this forces a new resource.

version string

The version of storage analytics to configure. Changing this forces a new resource.

write boolean

Indicates whether all write requests should be logged. Changing this forces a new resource.

retentionPolicyDays number

Specifies the number of days that logs will be retained. Changing this forces a new resource.

delete bool

Indicates whether all delete requests should be logged. Changing this forces a new resource.

read bool

Indicates whether all read requests should be logged. Changing this forces a new resource.

version str

The version of storage analytics to configure. Changing this forces a new resource.

write bool

Indicates whether all write requests should be logged. Changing this forces a new resource.

retention_policy_days int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

AccountQueuePropertiesMinuteMetrics

Enabled bool

Indicates whether minute metrics are enabled for the Queue service. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

IncludeApis bool

Indicates whether metrics should generate summary statistics for called API operations.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

Enabled bool

Indicates whether minute metrics are enabled for the Queue service. Changing this forces a new resource.

Version string

The version of storage analytics to configure. Changing this forces a new resource.

IncludeApis bool

Indicates whether metrics should generate summary statistics for called API operations.

RetentionPolicyDays int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

enabled boolean

Indicates whether minute metrics are enabled for the Queue service. Changing this forces a new resource.

version string

The version of storage analytics to configure. Changing this forces a new resource.

includeApis boolean

Indicates whether metrics should generate summary statistics for called API operations.

retentionPolicyDays number

Specifies the number of days that logs will be retained. Changing this forces a new resource.

enabled bool

Indicates whether minute metrics are enabled for the Queue service. Changing this forces a new resource.

version str

The version of storage analytics to configure. Changing this forces a new resource.

include_apis bool

Indicates whether metrics should generate summary statistics for called API operations.

retention_policy_days int

Specifies the number of days that logs will be retained. Changing this forces a new resource.

AccountStaticWebsite

Error404Document string

The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.

IndexDocument string

The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. The value is case-sensitive.

Error404Document string

The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.

IndexDocument string

The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. The value is case-sensitive.

error404Document string

The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.

indexDocument string

The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. The value is case-sensitive.

error404_document str

The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.

index_document str

The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. The value is case-sensitive.

Import

Storage Accounts can be imported using the resource id, e.g.

 $ pulumi import azure:storage/account:Account storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount

Package Details

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