storage

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.storage.Account(resource_name, opts=None, access_tier=None, account_encryption_source=None, account_kind=None, account_replication_type=None, account_tier=None, account_type=None, blob_properties=None, custom_domain=None, enable_advanced_threat_protection=None, enable_blob_encryption=None, enable_file_encryption=None, enable_https_traffic_only=None, identity=None, is_hns_enabled=None, location=None, name=None, network_rules=None, queue_properties=None, resource_group_name=None, tags=None, __props__=None, __name__=None, __opts__=None)

Manages an Azure Storage Account.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • access_tier (pulumi.Input[str]) – Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

  • account_encryption_source (pulumi.Input[str]) – The Encryption Source for this Storage Account. Possible values are Microsoft.Keyvault and Microsoft.Storage. Defaults to Microsoft.Storage.

  • account_kind (pulumi.Input[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 Storage.

  • account_replication_type (pulumi.Input[str]) – Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS and ZRS.

  • account_tier (pulumi.Input[str]) – Defines the Tier to use for this storage account. Valid options are Standard and Premium. For FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

  • blob_properties (pulumi.Input[dict]) – A blob_properties block as defined below.

  • custom_domain (pulumi.Input[dict]) – A custom_domain block as documented below.

  • enable_advanced_threat_protection (pulumi.Input[bool]) – Boolean flag which controls if advanced threat protection is enabled, see here for more information. Defaults to false.

  • enable_blob_encryption (pulumi.Input[bool]) –

    Boolean flag which controls if Encryption Services are enabled for Blob storage, see here for more information. Defaults to true.

  • enable_file_encryption (pulumi.Input[bool]) –

    Boolean flag which controls if Encryption Services are enabled for File storage, see here for more information. Defaults to true.

  • enable_https_traffic_only (pulumi.Input[bool]) –

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

  • identity (pulumi.Input[dict]) – A identity block as defined below.

  • is_hns_enabled (pulumi.Input[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.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[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 (pulumi.Input[dict]) – A network_rules block as documented below.

  • queue_properties (pulumi.Input[dict]) – A queue_properties block as defined below.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

The blob_properties object supports the following:

  • deleteRetentionPolicy (pulumi.Input[dict])

    • days (pulumi.Input[float])

The custom_domain object supports the following:

  • name (pulumi.Input[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.

  • useSubdomain (pulumi.Input[bool])

The identity object supports the following:

  • principal_id (pulumi.Input[str]) - The Principal ID for the Service Principal associated with the Identity of this Storage Account.

  • tenant_id (pulumi.Input[str]) - The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

  • type (pulumi.Input[str])

The network_rules object supports the following:

  • bypasses (pulumi.Input[list])

  • default_action (pulumi.Input[str])

  • ip_rules (pulumi.Input[list])

  • virtual_network_subnet_ids (pulumi.Input[list])

The queue_properties object supports the following:

  • corsRules (pulumi.Input[list])

    • allowedHeaders (pulumi.Input[list])

    • allowedMethods (pulumi.Input[list])

    • allowedOrigins (pulumi.Input[list])

    • exposedHeaders (pulumi.Input[list])

    • maxAgeInSeconds (pulumi.Input[float])

  • hourMetrics (pulumi.Input[dict])

    • enabled (pulumi.Input[bool])

    • includeApis (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

  • logging (pulumi.Input[dict])

    • delete (pulumi.Input[bool])

    • read (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

    • write (pulumi.Input[bool])

  • minuteMetrics (pulumi.Input[dict])

    • enabled (pulumi.Input[bool])

    • includeApis (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

access_tier = None

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

account_encryption_source = None

The Encryption Source for this Storage Account. Possible values are Microsoft.Keyvault and Microsoft.Storage. Defaults to Microsoft.Storage.

account_kind = None

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 Storage.

account_replication_type = None

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

account_tier = None

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

blob_properties = None

A blob_properties block as defined below.

  • deleteRetentionPolicy (dict)

    • days (float)

custom_domain = None

A custom_domain block as documented below.

  • 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.

  • useSubdomain (bool)

enable_advanced_threat_protection = None

Boolean flag which controls if advanced threat protection is enabled, see here for more information. Defaults to false.

enable_blob_encryption = None

Boolean flag which controls if Encryption Services are enabled for Blob storage, see here for more information. Defaults to true.

enable_file_encryption = None

Boolean flag which controls if Encryption Services are enabled for File storage, see here for more information. Defaults to true.

enable_https_traffic_only = None

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

identity = None

A identity block as defined below.

  • 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.

  • type (str)

is_hns_enabled = None

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.

location = None

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

name = None

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 = None

A network_rules block as documented below.

  • bypasses (list)

  • default_action (str)

  • ip_rules (list)

  • virtual_network_subnet_ids (list)

primary_access_key = None

The primary access key for the storage account.

primary_blob_connection_string = None

The connection string associated with the primary blob location.

primary_blob_endpoint = None

The endpoint URL for blob storage in the primary location.

primary_blob_host = None

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

primary_connection_string = None

The connection string associated with the primary location.

primary_dfs_endpoint = None

The endpoint URL for DFS storage in the primary location.

primary_dfs_host = None

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

primary_file_endpoint = None

The endpoint URL for file storage in the primary location.

primary_file_host = None

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

primary_location = None

The primary location of the storage account.

primary_queue_endpoint = None

The endpoint URL for queue storage in the primary location.

primary_queue_host = None

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

primary_table_endpoint = None

The endpoint URL for table storage in the primary location.

primary_table_host = None

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

primary_web_endpoint = None

The endpoint URL for web storage in the primary location.

primary_web_host = None

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

queue_properties = None

A queue_properties block as defined below.

  • corsRules (list)

    • allowedHeaders (list)

    • allowedMethods (list)

    • allowedOrigins (list)

    • exposedHeaders (list)

    • maxAgeInSeconds (float)

  • hourMetrics (dict)

    • enabled (bool)

    • includeApis (bool)

    • retentionPolicyDays (float)

    • version (str)

  • logging (dict)

    • delete (bool)

    • read (bool)

    • retentionPolicyDays (float)

    • version (str)

    • write (bool)

  • minuteMetrics (dict)

    • enabled (bool)

    • includeApis (bool)

    • retentionPolicyDays (float)

    • version (str)

resource_group_name = None

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 = None

The secondary access key for the storage account.

secondary_blob_connection_string = None

The connection string associated with the secondary blob location.

secondary_blob_endpoint = None

The endpoint URL for blob storage in the secondary location.

secondary_blob_host = None

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

secondary_connection_string = None

The connection string associated with the secondary location.

secondary_dfs_endpoint = None

The endpoint URL for DFS storage in the secondary location.

secondary_dfs_host = None

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

secondary_file_endpoint = None

The endpoint URL for file storage in the secondary location.

secondary_file_host = None

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

secondary_location = None

The secondary location of the storage account.

secondary_queue_endpoint = None

The endpoint URL for queue storage in the secondary location.

secondary_queue_host = None

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

secondary_table_endpoint = None

The endpoint URL for table storage in the secondary location.

secondary_table_host = None

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

secondary_web_endpoint = None

The endpoint URL for web storage in the secondary location.

secondary_web_host = None

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

tags = None

A mapping of tags to assign to the resource.

static get(resource_name, id, opts=None, access_tier=None, account_encryption_source=None, account_kind=None, account_replication_type=None, account_tier=None, account_type=None, blob_properties=None, custom_domain=None, enable_advanced_threat_protection=None, enable_blob_encryption=None, enable_file_encryption=None, enable_https_traffic_only=None, identity=None, is_hns_enabled=None, location=None, name=None, network_rules=None, primary_access_key=None, primary_blob_connection_string=None, primary_blob_endpoint=None, primary_blob_host=None, primary_connection_string=None, primary_dfs_endpoint=None, primary_dfs_host=None, primary_file_endpoint=None, primary_file_host=None, primary_location=None, primary_queue_endpoint=None, primary_queue_host=None, primary_table_endpoint=None, primary_table_host=None, primary_web_endpoint=None, primary_web_host=None, queue_properties=None, resource_group_name=None, secondary_access_key=None, secondary_blob_connection_string=None, secondary_blob_endpoint=None, secondary_blob_host=None, secondary_connection_string=None, secondary_dfs_endpoint=None, secondary_dfs_host=None, secondary_file_endpoint=None, secondary_file_host=None, secondary_location=None, secondary_queue_endpoint=None, secondary_queue_host=None, secondary_table_endpoint=None, secondary_table_host=None, secondary_web_endpoint=None, secondary_web_host=None, tags=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • access_tier (pulumi.Input[str]) – Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot and Cool, defaults to Hot.

  • account_encryption_source (pulumi.Input[str]) – The Encryption Source for this Storage Account. Possible values are Microsoft.Keyvault and Microsoft.Storage. Defaults to Microsoft.Storage.

  • account_kind (pulumi.Input[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 Storage.

  • account_replication_type (pulumi.Input[str]) – Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS and ZRS.

  • account_tier (pulumi.Input[str]) – Defines the Tier to use for this storage account. Valid options are Standard and Premium. For FileStorage accounts only Premium is valid. Changing this forces a new resource to be created.

  • blob_properties (pulumi.Input[dict]) – A blob_properties block as defined below.

  • custom_domain (pulumi.Input[dict]) – A custom_domain block as documented below.

  • enable_advanced_threat_protection (pulumi.Input[bool]) –

    Boolean flag which controls if advanced threat protection is enabled, see here for more information. Defaults to false.

  • enable_blob_encryption (pulumi.Input[bool]) –

    Boolean flag which controls if Encryption Services are enabled for Blob storage, see here for more information. Defaults to true.

  • enable_file_encryption (pulumi.Input[bool]) –

    Boolean flag which controls if Encryption Services are enabled for File storage, see here for more information. Defaults to true.

  • enable_https_traffic_only (pulumi.Input[bool]) –

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

  • identity (pulumi.Input[dict]) – A identity block as defined below.

  • is_hns_enabled (pulumi.Input[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.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[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 (pulumi.Input[dict]) – A network_rules block as documented below.

  • primary_access_key (pulumi.Input[str]) – The primary access key for the storage account.

  • primary_blob_connection_string (pulumi.Input[str]) – The connection string associated with the primary blob location.

  • primary_blob_endpoint (pulumi.Input[str]) – The endpoint URL for blob storage in the primary location.

  • primary_blob_host (pulumi.Input[str]) – The hostname with port if applicable for blob storage in the primary location.

  • primary_connection_string (pulumi.Input[str]) – The connection string associated with the primary location.

  • primary_dfs_endpoint (pulumi.Input[str]) – The endpoint URL for DFS storage in the primary location.

  • primary_dfs_host (pulumi.Input[str]) – The hostname with port if applicable for DFS storage in the primary location.

  • primary_file_endpoint (pulumi.Input[str]) – The endpoint URL for file storage in the primary location.

  • primary_file_host (pulumi.Input[str]) – The hostname with port if applicable for file storage in the primary location.

  • primary_location (pulumi.Input[str]) – The primary location of the storage account.

  • primary_queue_endpoint (pulumi.Input[str]) – The endpoint URL for queue storage in the primary location.

  • primary_queue_host (pulumi.Input[str]) – The hostname with port if applicable for queue storage in the primary location.

  • primary_table_endpoint (pulumi.Input[str]) – The endpoint URL for table storage in the primary location.

  • primary_table_host (pulumi.Input[str]) – The hostname with port if applicable for table storage in the primary location.

  • primary_web_endpoint (pulumi.Input[str]) – The endpoint URL for web storage in the primary location.

  • primary_web_host (pulumi.Input[str]) – The hostname with port if applicable for web storage in the primary location.

  • queue_properties (pulumi.Input[dict]) – A queue_properties block as defined below.

  • resource_group_name (pulumi.Input[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 (pulumi.Input[str]) – The secondary access key for the storage account.

  • secondary_blob_connection_string (pulumi.Input[str]) – The connection string associated with the secondary blob location.

  • secondary_blob_endpoint (pulumi.Input[str]) – The endpoint URL for blob storage in the secondary location.

  • secondary_blob_host (pulumi.Input[str]) – The hostname with port if applicable for blob storage in the secondary location.

  • secondary_connection_string (pulumi.Input[str]) – The connection string associated with the secondary location.

  • secondary_dfs_endpoint (pulumi.Input[str]) – The endpoint URL for DFS storage in the secondary location.

  • secondary_dfs_host (pulumi.Input[str]) – The hostname with port if applicable for DFS storage in the secondary location.

  • secondary_file_endpoint (pulumi.Input[str]) – The endpoint URL for file storage in the secondary location.

  • secondary_file_host (pulumi.Input[str]) – The hostname with port if applicable for file storage in the secondary location.

  • secondary_location (pulumi.Input[str]) – The secondary location of the storage account.

  • secondary_queue_endpoint (pulumi.Input[str]) – The endpoint URL for queue storage in the secondary location.

  • secondary_queue_host (pulumi.Input[str]) – The hostname with port if applicable for queue storage in the secondary location.

  • secondary_table_endpoint (pulumi.Input[str]) – The endpoint URL for table storage in the secondary location.

  • secondary_table_host (pulumi.Input[str]) – The hostname with port if applicable for table storage in the secondary location.

  • secondary_web_endpoint (pulumi.Input[str]) – The endpoint URL for web storage in the secondary location.

  • secondary_web_host (pulumi.Input[str]) – The hostname with port if applicable for web storage in the secondary location.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

The blob_properties object supports the following:

  • deleteRetentionPolicy (pulumi.Input[dict])

    • days (pulumi.Input[float])

The custom_domain object supports the following:

  • name (pulumi.Input[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.

  • useSubdomain (pulumi.Input[bool])

The identity object supports the following:

  • principal_id (pulumi.Input[str]) - The Principal ID for the Service Principal associated with the Identity of this Storage Account.

  • tenant_id (pulumi.Input[str]) - The Tenant ID for the Service Principal associated with the Identity of this Storage Account.

  • type (pulumi.Input[str])

The network_rules object supports the following:

  • bypasses (pulumi.Input[list])

  • default_action (pulumi.Input[str])

  • ip_rules (pulumi.Input[list])

  • virtual_network_subnet_ids (pulumi.Input[list])

The queue_properties object supports the following:

  • corsRules (pulumi.Input[list])

    • allowedHeaders (pulumi.Input[list])

    • allowedMethods (pulumi.Input[list])

    • allowedOrigins (pulumi.Input[list])

    • exposedHeaders (pulumi.Input[list])

    • maxAgeInSeconds (pulumi.Input[float])

  • hourMetrics (pulumi.Input[dict])

    • enabled (pulumi.Input[bool])

    • includeApis (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

  • logging (pulumi.Input[dict])

    • delete (pulumi.Input[bool])

    • read (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

    • write (pulumi.Input[bool])

  • minuteMetrics (pulumi.Input[dict])

    • enabled (pulumi.Input[bool])

    • includeApis (pulumi.Input[bool])

    • retentionPolicyDays (pulumi.Input[float])

    • version (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.AccountNetworkRules(resource_name, opts=None, bypasses=None, default_action=None, ip_rules=None, resource_group_name=None, storage_account_name=None, virtual_network_subnet_ids=None, __props__=None, __name__=None, __opts__=None)

Manages network rules inside of a Azure Storage Account.

NOTE: Network Rules can be defined either directly on the storage.Account resource, or using the storage.AccountNetworkRules resource - but the two cannot be used together. Spurious changes will occur if both are used against the same Storage Account.

NOTE: Only one storage.AccountNetworkRules can be tied to an storage.Account. Spurious changes will occur if more than storage.AccountNetworkRules is tied to the same storage.Account.

NOTE: Deleting this resource updates the storage account back to the default values it had when the storage account was created.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • bypasses (pulumi.Input[list]) – Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

  • default_action (pulumi.Input[str]) – Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

  • ip_rules (pulumi.Input[list]) – 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.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[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.

  • virtual_network_subnet_ids (pulumi.Input[list]) – A list of virtual network subnet ids to to secure the storage account.

bypasses = None

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

default_action = None

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

ip_rules = None

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.

resource_group_name = None

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

storage_account_name = None

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.

virtual_network_subnet_ids = None

A list of virtual network subnet ids to to secure the storage account.

static get(resource_name, id, opts=None, bypasses=None, default_action=None, ip_rules=None, resource_group_name=None, storage_account_name=None, virtual_network_subnet_ids=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • bypasses (pulumi.Input[list]) – Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

  • default_action (pulumi.Input[str]) – Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

  • ip_rules (pulumi.Input[list]) –

    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.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[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.

  • virtual_network_subnet_ids (pulumi.Input[list]) – A list of virtual network subnet ids to to secure the storage account.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.AwaitableGetAccountBlobContainerSASResult(cache_control=None, connection_string=None, container_name=None, content_disposition=None, content_encoding=None, content_language=None, content_type=None, expiry=None, https_only=None, ip_address=None, permissions=None, sas=None, start=None, id=None)
class pulumi_azure.storage.AwaitableGetAccountResult(access_tier=None, account_encryption_source=None, account_kind=None, account_replication_type=None, account_tier=None, custom_domains=None, enable_blob_encryption=None, enable_file_encryption=None, enable_https_traffic_only=None, is_hns_enabled=None, location=None, name=None, primary_access_key=None, primary_blob_connection_string=None, primary_blob_endpoint=None, primary_blob_host=None, primary_connection_string=None, primary_dfs_endpoint=None, primary_dfs_host=None, primary_file_endpoint=None, primary_file_host=None, primary_location=None, primary_queue_endpoint=None, primary_queue_host=None, primary_table_endpoint=None, primary_table_host=None, primary_web_endpoint=None, primary_web_host=None, resource_group_name=None, secondary_access_key=None, secondary_blob_connection_string=None, secondary_blob_endpoint=None, secondary_blob_host=None, secondary_connection_string=None, secondary_dfs_endpoint=None, secondary_dfs_host=None, secondary_file_endpoint=None, secondary_file_host=None, secondary_location=None, secondary_queue_endpoint=None, secondary_queue_host=None, secondary_table_endpoint=None, secondary_table_host=None, secondary_web_endpoint=None, secondary_web_host=None, tags=None, id=None)
class pulumi_azure.storage.AwaitableGetAccountSASResult(connection_string=None, expiry=None, https_only=None, permissions=None, resource_types=None, sas=None, services=None, start=None, id=None)
class pulumi_azure.storage.AwaitableGetPolicyResult(rules=None, storage_account_id=None, id=None)
class pulumi_azure.storage.AwaitableGetStorageContainerResult(container_access_type=None, has_immutability_policy=None, has_legal_hold=None, metadata=None, name=None, storage_account_name=None, id=None)
class pulumi_azure.storage.Blob(resource_name, opts=None, access_tier=None, attempts=None, content_type=None, metadata=None, name=None, parallelism=None, resource_group_name=None, size=None, source=None, source_content=None, source_uri=None, storage_account_name=None, storage_container_name=None, type=None, __props__=None, __name__=None, __opts__=None)

Manages a Blob within a Storage Container.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • access_tier (pulumi.Input[str]) – The access tier of the storage blob. Possible values are Archive, Cool and Hot.

  • attempts (pulumi.Input[float]) – The number of attempts to make per page or block when uploading. Defaults to 1.

  • content_type (pulumi.Input[str]) – The content type of the storage blob. Cannot be defined if source_uri is defined. Defaults to application/octet-stream.

  • metadata (pulumi.Input[dict]) – A map of custom blob metadata.

  • name (pulumi.Input[str]) – The name of the storage blob. Must be unique within the storage container the blob is located.

  • parallelism (pulumi.Input[float]) – The number of workers per CPU core to run for concurrent uploads. Defaults to 8.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage container.

  • size (pulumi.Input[float]) – Used only for page blobs to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0.

  • source (pulumi.Input[str]) – An absolute path to a file on the local system. This field cannot be specified for Append blobs and cannot be specified if source_content or source_uri is specified.

  • source_content (pulumi.Input[str]) – The content for this blob which should be defined inline. This field can only be specified for Block blobs and cannot be specified if source or source_uri is specified.

  • source_uri (pulumi.Input[str]) – The URI of an existing blob, or a file in the Azure File service, to use as the source contents for the blob to be created. Changing this forces a new resource to be created. This field cannot be specified for Append blobs and cannot be specified if source or source_content is specified.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created.

  • storage_container_name (pulumi.Input[str]) – The name of the storage container in which this blob should be created.

  • type (pulumi.Input[str]) – The type of the storage blob to be created. Possible values are Append, Block or Page. Changing this forces a new resource to be created.

access_tier = None

The access tier of the storage blob. Possible values are Archive, Cool and Hot.

attempts = None

The number of attempts to make per page or block when uploading. Defaults to 1.

content_type = None

The content type of the storage blob. Cannot be defined if source_uri is defined. Defaults to application/octet-stream.

metadata = None

A map of custom blob metadata.

name = None

The name of the storage blob. Must be unique within the storage container the blob is located.

parallelism = None

The number of workers per CPU core to run for concurrent uploads. Defaults to 8.

resource_group_name = None

The name of the resource group in which to create the storage container.

size = None

Used only for page blobs to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0.

source = None

An absolute path to a file on the local system. This field cannot be specified for Append blobs and cannot be specified if source_content or source_uri is specified.

source_content = None

The content for this blob which should be defined inline. This field can only be specified for Block blobs and cannot be specified if source or source_uri is specified.

source_uri = None

The URI of an existing blob, or a file in the Azure File service, to use as the source contents for the blob to be created. Changing this forces a new resource to be created. This field cannot be specified for Append blobs and cannot be specified if source or source_content is specified.

storage_account_name = None

Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created.

storage_container_name = None

The name of the storage container in which this blob should be created.

type = None

The type of the storage blob to be created. Possible values are Append, Block or Page. Changing this forces a new resource to be created.

url = None

The URL of the blob

static get(resource_name, id, opts=None, access_tier=None, attempts=None, content_type=None, metadata=None, name=None, parallelism=None, resource_group_name=None, size=None, source=None, source_content=None, source_uri=None, storage_account_name=None, storage_container_name=None, type=None, url=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • access_tier (pulumi.Input[str]) – The access tier of the storage blob. Possible values are Archive, Cool and Hot.

  • attempts (pulumi.Input[float]) – The number of attempts to make per page or block when uploading. Defaults to 1.

  • content_type (pulumi.Input[str]) – The content type of the storage blob. Cannot be defined if source_uri is defined. Defaults to application/octet-stream.

  • metadata (pulumi.Input[dict]) – A map of custom blob metadata.

  • name (pulumi.Input[str]) – The name of the storage blob. Must be unique within the storage container the blob is located.

  • parallelism (pulumi.Input[float]) – The number of workers per CPU core to run for concurrent uploads. Defaults to 8.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage container.

  • size (pulumi.Input[float]) – Used only for page blobs to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0.

  • source (pulumi.Input[str]) – An absolute path to a file on the local system. This field cannot be specified for Append blobs and cannot be specified if source_content or source_uri is specified.

  • source_content (pulumi.Input[str]) – The content for this blob which should be defined inline. This field can only be specified for Block blobs and cannot be specified if source or source_uri is specified.

  • source_uri (pulumi.Input[str]) – The URI of an existing blob, or a file in the Azure File service, to use as the source contents for the blob to be created. Changing this forces a new resource to be created. This field cannot be specified for Append blobs and cannot be specified if source or source_content is specified.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created.

  • storage_container_name (pulumi.Input[str]) – The name of the storage container in which this blob should be created.

  • type (pulumi.Input[str]) – The type of the storage blob to be created. Possible values are Append, Block or Page. Changing this forces a new resource to be created.

  • url (pulumi.Input[str]) – The URL of the blob

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.Container(resource_name, opts=None, container_access_type=None, metadata=None, name=None, resource_group_name=None, storage_account_name=None, __props__=None, __name__=None, __opts__=None)

Manages a Container within an Azure Storage Account.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • container_access_type (pulumi.Input[str]) – The Access Level configured for this Container. Possible values are blob, container or private. Defaults to private.

  • metadata (pulumi.Input[dict]) – A mapping of MetaData for this Container.

  • name (pulumi.Input[str]) – The name of the Container which should be created within the Storage Account.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage container. This field is no longer used and will be removed in 2.0.

  • storage_account_name (pulumi.Input[str]) – The name of the Storage Account where the Container should be created.

container_access_type = None

The Access Level configured for this Container. Possible values are blob, container or private. Defaults to private.

has_immutability_policy = None

Is there an Immutability Policy configured on this Storage Container?

Is there a Legal Hold configured on this Storage Container?

metadata = None

A mapping of MetaData for this Container.

name = None

The name of the Container which should be created within the Storage Account.

properties = None

(Deprecated) Key-value definition of additional properties associated to the Storage Container

resource_group_name = None

The name of the resource group in which to create the storage container. This field is no longer used and will be removed in 2.0.

storage_account_name = None

The name of the Storage Account where the Container should be created.

static get(resource_name, id, opts=None, container_access_type=None, has_immutability_policy=None, has_legal_hold=None, metadata=None, name=None, properties=None, resource_group_name=None, storage_account_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • container_access_type (pulumi.Input[str]) – The Access Level configured for this Container. Possible values are blob, container or private. Defaults to private.

  • has_immutability_policy (pulumi.Input[bool]) – Is there an Immutability Policy configured on this Storage Container?

  • has_legal_hold (pulumi.Input[bool]) – Is there a Legal Hold configured on this Storage Container?

  • metadata (pulumi.Input[dict]) – A mapping of MetaData for this Container.

  • name (pulumi.Input[str]) – The name of the Container which should be created within the Storage Account.

  • properties (pulumi.Input[dict]) – (Deprecated) Key-value definition of additional properties associated to the Storage Container

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage container. This field is no longer used and will be removed in 2.0.

  • storage_account_name (pulumi.Input[str]) – The name of the Storage Account where the Container should be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.DataLakeGen2Filesystem(resource_name, opts=None, name=None, properties=None, storage_account_id=None, __props__=None, __name__=None, __opts__=None)

Manages a Data Lake Gen2 File System within an Azure Storage Account.

NOTE: This Resource requires using Azure Active Directory to connect to Azure Storage, which in turn requires the Storage specific roles - which are not granted by default.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the Data Lake Gen2 File System which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created.

  • properties (pulumi.Input[dict]) – A mapping of Key to Base64-Encoded Values which should be assigned to this Data Lake Gen2 File System.

  • storage_account_id (pulumi.Input[str]) – Specifies the ID of the Storage Account in which the Data Lake Gen2 File System should exist. Changing this forces a new resource to be created.

name = None

The name of the Data Lake Gen2 File System which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created.

properties = None

A mapping of Key to Base64-Encoded Values which should be assigned to this Data Lake Gen2 File System.

storage_account_id = None

Specifies the ID of the Storage Account in which the Data Lake Gen2 File System should exist. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, properties=None, storage_account_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the Data Lake Gen2 File System which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created.

  • properties (pulumi.Input[dict]) – A mapping of Key to Base64-Encoded Values which should be assigned to this Data Lake Gen2 File System.

  • storage_account_id (pulumi.Input[str]) – Specifies the ID of the Storage Account in which the Data Lake Gen2 File System should exist. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.GetAccountBlobContainerSASResult(cache_control=None, connection_string=None, container_name=None, content_disposition=None, content_encoding=None, content_language=None, content_type=None, expiry=None, https_only=None, ip_address=None, permissions=None, sas=None, start=None, id=None)

A collection of values returned by getAccountBlobContainerSAS.

sas = None

The computed Blob Container Shared Access Signature (SAS).

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.storage.GetAccountResult(access_tier=None, account_encryption_source=None, account_kind=None, account_replication_type=None, account_tier=None, custom_domains=None, enable_blob_encryption=None, enable_file_encryption=None, enable_https_traffic_only=None, is_hns_enabled=None, location=None, name=None, primary_access_key=None, primary_blob_connection_string=None, primary_blob_endpoint=None, primary_blob_host=None, primary_connection_string=None, primary_dfs_endpoint=None, primary_dfs_host=None, primary_file_endpoint=None, primary_file_host=None, primary_location=None, primary_queue_endpoint=None, primary_queue_host=None, primary_table_endpoint=None, primary_table_host=None, primary_web_endpoint=None, primary_web_host=None, resource_group_name=None, secondary_access_key=None, secondary_blob_connection_string=None, secondary_blob_endpoint=None, secondary_blob_host=None, secondary_connection_string=None, secondary_dfs_endpoint=None, secondary_dfs_host=None, secondary_file_endpoint=None, secondary_file_host=None, secondary_location=None, secondary_queue_endpoint=None, secondary_queue_host=None, secondary_table_endpoint=None, secondary_table_host=None, secondary_web_endpoint=None, secondary_web_host=None, tags=None, id=None)

A collection of values returned by getAccount.

access_tier = None

The access tier for BlobStorage accounts.

account_encryption_source = None

The Encryption Source for this Storage Account.

account_kind = None

The Kind of account.

account_replication_type = None

The type of replication used for this storage account.

account_tier = None

The Tier of this storage account.

custom_domains = None

A custom_domain block as documented below.

enable_blob_encryption = None

Are Encryption Services are enabled for Blob storage? See here for more information.

enable_file_encryption = None

Are Encryption Services are enabled for File storage? See here for more information.

enable_https_traffic_only = None

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

is_hns_enabled = None

Is Hierarchical Namespace enabled?

location = None

The Azure location where the Storage Account exists

name = None

The Custom Domain Name used for the Storage Account.

primary_access_key = None

The primary access key for the Storage Account.

primary_blob_connection_string = None

The connection string associated with the primary blob location

primary_blob_endpoint = None

The endpoint URL for blob storage in the primary location.

primary_blob_host = None

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

primary_connection_string = None

The connection string associated with the primary location

primary_dfs_endpoint = None

The endpoint URL for DFS storage in the primary location.

primary_dfs_host = None

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

primary_file_endpoint = None

The endpoint URL for file storage in the primary location.

primary_file_host = None

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

primary_location = None

The primary location of the Storage Account.

primary_queue_endpoint = None

The endpoint URL for queue storage in the primary location.

primary_queue_host = None

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

primary_table_endpoint = None

The endpoint URL for table storage in the primary location.

primary_table_host = None

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

primary_web_endpoint = None

The endpoint URL for web storage in the primary location.

primary_web_host = None

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

secondary_access_key = None

The secondary access key for the Storage Account.

secondary_blob_connection_string = None

The connection string associated with the secondary blob location

secondary_blob_endpoint = None

The endpoint URL for blob storage in the secondary location.

secondary_blob_host = None

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

secondary_connection_string = None

The connection string associated with the secondary location

secondary_dfs_endpoint = None

The endpoint URL for DFS storage in the secondary location.

secondary_dfs_host = None

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

secondary_file_endpoint = None

The endpoint URL for file storage in the secondary location.

secondary_file_host = None

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

secondary_location = None

The secondary location of the Storage Account.

secondary_queue_endpoint = None

The endpoint URL for queue storage in the secondary location.

secondary_queue_host = None

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

secondary_table_endpoint = None

The endpoint URL for table storage in the secondary location.

secondary_table_host = None

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

secondary_web_endpoint = None

The endpoint URL for web storage in the secondary location.

secondary_web_host = None

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

tags = None

A mapping of tags to assigned to the resource.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.storage.GetAccountSASResult(connection_string=None, expiry=None, https_only=None, permissions=None, resource_types=None, sas=None, services=None, start=None, id=None)

A collection of values returned by getAccountSAS.

sas = None

The computed Account Shared Access Signature (SAS).

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.storage.GetPolicyResult(rules=None, storage_account_id=None, id=None)

A collection of values returned by getPolicy.

rules = None

A rule block as documented below.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.storage.GetStorageContainerResult(container_access_type=None, has_immutability_policy=None, has_legal_hold=None, metadata=None, name=None, storage_account_name=None, id=None)

A collection of values returned by getStorageContainer.

container_access_type = None

The Access Level configured for this Container.

has_immutability_policy = None

Is there an Immutability Policy configured on this Storage Container?

Is there a Legal Hold configured on this Storage Container?

metadata = None

A mapping of MetaData for this Container.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.storage.ManagementPolicy(resource_name, opts=None, rules=None, storage_account_id=None, __props__=None, __name__=None, __opts__=None)

Manages an Azure Storage Account Management Policy.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • rules (pulumi.Input[list]) – A rule block as documented below.

  • storage_account_id (pulumi.Input[str]) – Specifies the id of the storage account to apply the management policy to.

The rules object supports the following:

  • actions (pulumi.Input[dict]) - An actions block as documented below.

    • baseBlob (pulumi.Input[dict]) - A base_blob block as documented below.

      • deleteAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to delete the blob. Must be at least 0.

      • tierToArchiveAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

      • tierToCoolAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

    • snapshot (pulumi.Input[dict]) - A snapshot block as documented below.

      • deleteAfterDaysSinceCreationGreaterThan (pulumi.Input[float]) - The age in days after create to delete the snaphot. Must be at least 0.

  • enabled (pulumi.Input[bool]) - Boolean to specify whether the rule is enabled.

  • filters (pulumi.Input[dict]) - A filter block as documented below.

    • blobTypes (pulumi.Input[list]) - An array of predefined values. Only blockBlob is supported.

    • prefixMatches (pulumi.Input[list]) - An array of strings for prefixes to be matched.

  • name (pulumi.Input[str]) - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

rules = None

A rule block as documented below.

  • actions (dict) - An actions block as documented below.

    • baseBlob (dict) - A base_blob block as documented below.

      • deleteAfterDaysSinceModificationGreaterThan (float) - The age in days after last modification to delete the blob. Must be at least 0.

      • tierToArchiveAfterDaysSinceModificationGreaterThan (float) - The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

      • tierToCoolAfterDaysSinceModificationGreaterThan (float) - The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

    • snapshot (dict) - A snapshot block as documented below.

      • deleteAfterDaysSinceCreationGreaterThan (float) - The age in days after create to delete the snaphot. Must be at least 0.

  • enabled (bool) - Boolean to specify whether the rule is enabled.

  • filters (dict) - A filter block as documented below.

    • blobTypes (list) - An array of predefined values. Only blockBlob is supported.

    • prefixMatches (list) - An array of strings for prefixes to be matched.

  • name (str) - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

storage_account_id = None

Specifies the id of the storage account to apply the management policy to.

static get(resource_name, id, opts=None, rules=None, storage_account_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • rules (pulumi.Input[list]) – A rule block as documented below.

  • storage_account_id (pulumi.Input[str]) – Specifies the id of the storage account to apply the management policy to.

The rules object supports the following:

  • actions (pulumi.Input[dict]) - An actions block as documented below.

    • baseBlob (pulumi.Input[dict]) - A base_blob block as documented below.

      • deleteAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to delete the blob. Must be at least 0.

      • tierToArchiveAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

      • tierToCoolAfterDaysSinceModificationGreaterThan (pulumi.Input[float]) - The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

    • snapshot (pulumi.Input[dict]) - A snapshot block as documented below.

      • deleteAfterDaysSinceCreationGreaterThan (pulumi.Input[float]) - The age in days after create to delete the snaphot. Must be at least 0.

  • enabled (pulumi.Input[bool]) - Boolean to specify whether the rule is enabled.

  • filters (pulumi.Input[dict]) - A filter block as documented below.

    • blobTypes (pulumi.Input[list]) - An array of predefined values. Only blockBlob is supported.

    • prefixMatches (pulumi.Input[list]) - An array of strings for prefixes to be matched.

  • name (pulumi.Input[str]) - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.Queue(resource_name, opts=None, metadata=None, name=None, resource_group_name=None, storage_account_name=None, __props__=None, __name__=None, __opts__=None)

Manages a Queue within an Azure Storage Account.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • metadata (pulumi.Input[dict]) – A mapping of MetaData which should be assigned to this Storage Queue.

  • name (pulumi.Input[str]) – The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage queue.

  • storage_account_name (pulumi.Input[str]) – Specifies the Storage Account in which the Storage Queue should exist. Changing this forces a new resource to be created.

metadata = None

A mapping of MetaData which should be assigned to this Storage Queue.

name = None

The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located.

resource_group_name = None

The name of the resource group in which to create the storage queue.

storage_account_name = None

Specifies the Storage Account in which the Storage Queue should exist. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, metadata=None, name=None, resource_group_name=None, storage_account_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • metadata (pulumi.Input[dict]) – A mapping of MetaData which should be assigned to this Storage Queue.

  • name (pulumi.Input[str]) – The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage queue.

  • storage_account_name (pulumi.Input[str]) – Specifies the Storage Account in which the Storage Queue should exist. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.Share(resource_name, opts=None, acls=None, metadata=None, name=None, quota=None, resource_group_name=None, storage_account_name=None, __props__=None, __name__=None, __opts__=None)

Manages a File Share within Azure Storage.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – One or more acl blocks as defined below.

  • metadata (pulumi.Input[dict]) – A mapping of MetaData for this File Share.

  • name (pulumi.Input[str]) – The name of the share. Must be unique within the storage account where the share is located.

  • quota (pulumi.Input[float]) – The maximum size of the share, in gigabytes. For Standard storage accounts, this must be greater than 0 and less than 5120 GB (5 TB). For Premium FileStorage storage accounts, this must be greater than 100 GB and less than 102400 GB (100 TB). Default is 5120.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the share. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the share. Changing this forces a new resource to be created.

The acls object supports the following:

  • access_policies (pulumi.Input[list])

    • expiry (pulumi.Input[str])

    • permissions (pulumi.Input[str])

    • start (pulumi.Input[str])

  • id (pulumi.Input[str]) - The ID of the File Share.

acls = None

One or more acl blocks as defined below.

  • access_policies (list)

    • expiry (str)

    • permissions (str)

    • start (str)

  • id (str) - The ID of the File Share.

metadata = None

A mapping of MetaData for this File Share.

name = None

The name of the share. Must be unique within the storage account where the share is located.

quota = None

The maximum size of the share, in gigabytes. For Standard storage accounts, this must be greater than 0 and less than 5120 GB (5 TB). For Premium FileStorage storage accounts, this must be greater than 100 GB and less than 102400 GB (100 TB). Default is 5120.

resource_group_name = None

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

storage_account_name = None

Specifies the storage account in which to create the share. Changing this forces a new resource to be created.

url = None

The URL of the File Share

static get(resource_name, id, opts=None, acls=None, metadata=None, name=None, quota=None, resource_group_name=None, storage_account_name=None, url=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – One or more acl blocks as defined below.

  • metadata (pulumi.Input[dict]) – A mapping of MetaData for this File Share.

  • name (pulumi.Input[str]) – The name of the share. Must be unique within the storage account where the share is located.

  • quota (pulumi.Input[float]) – The maximum size of the share, in gigabytes. For Standard storage accounts, this must be greater than 0 and less than 5120 GB (5 TB). For Premium FileStorage storage accounts, this must be greater than 100 GB and less than 102400 GB (100 TB). Default is 5120.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the share. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the share. Changing this forces a new resource to be created.

  • url (pulumi.Input[str]) – The URL of the File Share

The acls object supports the following:

  • access_policies (pulumi.Input[list])

    • expiry (pulumi.Input[str])

    • permissions (pulumi.Input[str])

    • start (pulumi.Input[str])

  • id (pulumi.Input[str]) - The ID of the File Share.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.ShareDirectory(resource_name, opts=None, metadata=None, name=None, share_name=None, storage_account_name=None, __props__=None, __name__=None, __opts__=None)

Manages a Directory within an Azure Storage File Share.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • metadata (pulumi.Input[dict]) – A mapping of metadata to assign to this Directory.

  • name (pulumi.Input[str]) – The name (or path) of the Directory that should be created within this File Share. Changing this forces a new resource to be created.

  • share_name (pulumi.Input[str]) – The name of the File Share where this Directory should be created. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[str]) – The name of the Storage Account within which the File Share is located. Changing this forces a new resource to be created.

metadata = None

A mapping of metadata to assign to this Directory.

name = None

The name (or path) of the Directory that should be created within this File Share. Changing this forces a new resource to be created.

share_name = None

The name of the File Share where this Directory should be created. Changing this forces a new resource to be created.

storage_account_name = None

The name of the Storage Account within which the File Share is located. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, metadata=None, name=None, share_name=None, storage_account_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • metadata (pulumi.Input[dict]) – A mapping of metadata to assign to this Directory.

  • name (pulumi.Input[str]) – The name (or path) of the Directory that should be created within this File Share. Changing this forces a new resource to be created.

  • share_name (pulumi.Input[str]) – The name of the File Share where this Directory should be created. Changing this forces a new resource to be created.

  • storage_account_name (pulumi.Input[str]) – The name of the Storage Account within which the File Share is located. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.Table(resource_name, opts=None, acls=None, name=None, resource_group_name=None, storage_account_name=None, __props__=None, __name__=None, __opts__=None)

Manages a Table within an Azure Storage Account.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – One or more acl blocks as defined below.

  • name (pulumi.Input[str]) – The name of the storage table. Must be unique within the storage account the table is located.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage table.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.

The acls object supports the following:

  • access_policies (pulumi.Input[list])

    • expiry (pulumi.Input[str])

    • permissions (pulumi.Input[str])

    • start (pulumi.Input[str])

  • id (pulumi.Input[str]) - The ID of the Table within the Storage Account.

acls = None

One or more acl blocks as defined below.

  • access_policies (list)

    • expiry (str)

    • permissions (str)

    • start (str)

  • id (str) - The ID of the Table within the Storage Account.

name = None

The name of the storage table. Must be unique within the storage account the table is located.

resource_group_name = None

The name of the resource group in which to create the storage table.

storage_account_name = None

Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, acls=None, name=None, resource_group_name=None, storage_account_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – One or more acl blocks as defined below.

  • name (pulumi.Input[str]) – The name of the storage table. Must be unique within the storage account the table is located.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the storage table.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.

The acls object supports the following:

  • access_policies (pulumi.Input[list])

    • expiry (pulumi.Input[str])

    • permissions (pulumi.Input[str])

    • start (pulumi.Input[str])

  • id (pulumi.Input[str]) - The ID of the Table within the Storage Account.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.TableEntity(resource_name, opts=None, entity=None, partition_key=None, row_key=None, storage_account_name=None, table_name=None, __props__=None, __name__=None, __opts__=None)

Manages an Entity within a Table in an Azure Storage Account.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • entity (pulumi.Input[dict]) – A map of key/value pairs that describe the entity to be inserted/merged in to the storage table.

  • partition_key (pulumi.Input[str]) – The key for the partition where the entity will be inserted/merged. Changing this forces a new resource.

  • row_key (pulumi.Input[str]) – The key for the row where the entity will be inserted/merged. Changing this forces a new resource.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage table entity. Changing this forces a new resource to be created.

  • table_name (pulumi.Input[str]) – The name of the storage table in which to create the storage table entity. Changing this forces a new resource to be created.

entity = None

A map of key/value pairs that describe the entity to be inserted/merged in to the storage table.

partition_key = None

The key for the partition where the entity will be inserted/merged. Changing this forces a new resource.

row_key = None

The key for the row where the entity will be inserted/merged. Changing this forces a new resource.

storage_account_name = None

Specifies the storage account in which to create the storage table entity. Changing this forces a new resource to be created.

table_name = None

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

static get(resource_name, id, opts=None, entity=None, partition_key=None, row_key=None, storage_account_name=None, table_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • entity (pulumi.Input[dict]) – A map of key/value pairs that describe the entity to be inserted/merged in to the storage table.

  • partition_key (pulumi.Input[str]) – The key for the partition where the entity will be inserted/merged. Changing this forces a new resource.

  • row_key (pulumi.Input[str]) – The key for the row where the entity will be inserted/merged. Changing this forces a new resource.

  • storage_account_name (pulumi.Input[str]) – Specifies the storage account in which to create the storage table entity. Changing this forces a new resource to be created.

  • table_name (pulumi.Input[str]) – The name of the storage table in which to create the storage table entity. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.storage.ZipBlob(resource_name, opts=None, access_tier=None, attempts=None, content_type=None, metadata=None, name=None, parallelism=None, resource_group_name=None, size=None, content=None, source_content=None, source_uri=None, storage_account_name=None, storage_container_name=None, type=None, __props__=None, __name__=None, __opts__=None)

Create a ZipBlob resource with the given unique name, props, and options.

Parameters
static get(resource_name, id, opts=None, access_tier=None, attempts=None, content_type=None, metadata=None, name=None, parallelism=None, resource_group_name=None, size=None, content=None, source_content=None, source_uri=None, storage_account_name=None, storage_container_name=None, type=None, url=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.storage.get_account(name=None, resource_group_name=None, opts=None)

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

Parameters
  • 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.

pulumi_azure.storage.get_account_blob_container_sas(cache_control=None, connection_string=None, container_name=None, content_disposition=None, content_encoding=None, content_language=None, content_type=None, expiry=None, https_only=None, ip_address=None, permissions=None, start=None, opts=None)

Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account Blob Container.

Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account Blob Container.

Parameters
  • cache_control (str) – The Cache-Control response header that is sent when this SAS token is used.

  • container_name (str) – Name of the container.

  • content_disposition (str) – The Content-Disposition response header that is sent when this SAS token is used.

  • content_encoding (str) – The Content-Encoding response header that is sent when this SAS token is used.

  • content_language (str) – The Content-Language response header that is sent when this SAS token is used.

  • content_type (str) – The Content-Type response header that is sent when this SAS token is used.

  • expiry (str) – The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.

  • https_only (bool) – Only permit https access. If false, both http and https are permitted. Defaults to true.

  • ip_address (str) – Single ipv4 address or range (connected with a dash) of ipv4 addresses.

  • permissions (dict) – A permissions block as defined below.

  • start (str) – The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.

The permissions object supports the following:

  • add (bool)

  • create (bool)

  • delete (bool)

  • list (bool)

  • read (bool)

  • write (bool)

pulumi_azure.storage.get_account_sas(connection_string=None, expiry=None, https_only=None, permissions=None, resource_types=None, services=None, start=None, opts=None)

Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.

Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.

Note that this is an Account SAS and not a Service SAS.

Parameters
  • connection_string (str) – The connection string for the storage account to which this SAS applies. Typically directly from the primary_connection_string attribute of a storage.Account resource.

  • expiry (str) – The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.

  • https_only (bool) – Only permit https access. If false, both http and https are permitted. Defaults to true.

  • permissions (dict) – A permissions block as defined below.

  • resource_types (dict) – A resource_types block as defined below.

  • services (dict) – A services block as defined below.

  • start (str) – The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.

The permissions object supports the following:

  • add (bool)

  • create (bool)

  • delete (bool)

  • list (bool)

  • process (bool)

  • read (bool)

  • update (bool)

  • write (bool)

The resource_types object supports the following:

  • container (bool)

  • object (bool)

  • service (bool)

The services object supports the following:

  • blob (bool)

  • file (bool)

  • queue (bool)

  • table (bool)

pulumi_azure.storage.get_policy(storage_account_id=None, opts=None)

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

Parameters

storage_account_id (str) – Specifies the id of the storage account to retrieve the management policy for.

pulumi_azure.storage.get_storage_container(metadata=None, name=None, storage_account_name=None, opts=None)

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

Parameters
  • name (str) – The name of the Container.

  • storage_account_name (str) – The name of the Storage Account where the Container was created.