» Data Source: azurerm_storage_management_policy

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

» Example Usage

data "azurerm_storage_account" "example" {
  name                = "storageaccountname"
  resource_group_name = "resourcegroupname"

data "azurerm_storage_management_policy" "example" {
  storage_account_id = azurerm_storage_account.example.id

» Argument Reference

The following arguments are supported:

  • storage_account_id - Specifies the id of the storage account to retrieve the management policy for.

» Attributes Reference

  • id - The ID of the Management Policy.
  • rule - A rule block as documented below.

  • rule supports the following:

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

  • enabled - Boolean to specify whether the rule is enabled.

  • filters - A filter block as documented below.

  • actions - An actions block as documented below.

filters supports the following:

  • prefix_match - An array of strings for prefixes to be matched.
  • blob_types - An array of predefined values. Valid options are blockBlob and appendBlob.

actions supports the following:

  • base_blob - A base_blob block as documented below.
  • snapshot - A snapshot block as documented below.

base_blob supports the following:

snapshot supports the following:

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Storage Management Policy.