1. Registry
  2. Packages
  3. Azure Classic
  4. API Docs
  5. storage
  6. AccountTableProperties

We recommend using Azure Native.

Viewing docs for Azure v6.40.0
published on Wednesday, Sep 2, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.40.0
published on Wednesday, Sep 2, 2026 by Pulumi

    Manages the Table Properties of an Azure Storage Account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "storageaccountname",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
        tags: {
            environment: "staging",
        },
    });
    const exampleAccountTableProperties = new azure.storage.AccountTableProperties("example", {
        storageAccountId: exampleAccount.id,
        corsRules: [{
            allowedOrigins: ["http://www.example.com"],
            exposedHeaders: ["x-tempo-*"],
            allowedHeaders: ["x-tempo-*"],
            allowedMethods: [
                "GET",
                "PUT",
            ],
            maxAgeInSeconds: 500,
        }],
        logging: {
            version: "1.0",
            "delete": true,
            read: true,
            write: true,
            retentionPolicyDays: 7,
        },
        hourMetrics: {
            version: "1.0",
            retentionPolicyDays: 7,
        },
        minuteMetrics: {
            version: "1.0",
            retentionPolicyDays: 7,
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="storageaccountname",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS",
        tags={
            "environment": "staging",
        })
    example_account_table_properties = azure.storage.AccountTableProperties("example",
        storage_account_id=example_account.id,
        cors_rules=[{
            "allowed_origins": ["http://www.example.com"],
            "exposed_headers": ["x-tempo-*"],
            "allowed_headers": ["x-tempo-*"],
            "allowed_methods": [
                "GET",
                "PUT",
            ],
            "max_age_in_seconds": 500,
        }],
        logging={
            "version": "1.0",
            "delete": True,
            "read": True,
            "write": True,
            "retention_policy_days": 7,
        },
        hour_metrics={
            "version": "1.0",
            "retention_policy_days": 7,
        },
        minute_metrics={
            "version": "1.0",
            "retention_policy_days": 7,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("storageaccountname"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("staging"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = storage.NewAccountTableProperties(ctx, "example", &storage.AccountTablePropertiesArgs{
    			StorageAccountId: exampleAccount.ID().ToIDOutput().ToStringOutput(),
    			CorsRules: storage.AccountTablePropertiesCorsRuleArray{
    				&storage.AccountTablePropertiesCorsRuleArgs{
    					AllowedOrigins: pulumi.StringArray{
    						pulumi.String("http://www.example.com"),
    					},
    					ExposedHeaders: pulumi.StringArray{
    						pulumi.String("x-tempo-*"),
    					},
    					AllowedHeaders: pulumi.StringArray{
    						pulumi.String("x-tempo-*"),
    					},
    					AllowedMethods: pulumi.StringArray{
    						pulumi.String("GET"),
    						pulumi.String("PUT"),
    					},
    					MaxAgeInSeconds: pulumi.Int(500),
    				},
    			},
    			Logging: &storage.AccountTablePropertiesLoggingArgs{
    				Version:             pulumi.String("1.0"),
    				Delete:              pulumi.Bool(true),
    				Read:                pulumi.Bool(true),
    				Write:               pulumi.Bool(true),
    				RetentionPolicyDays: pulumi.Int(7),
    			},
    			HourMetrics: &storage.AccountTablePropertiesHourMetricsArgs{
    				Version:             pulumi.String("1.0"),
    				RetentionPolicyDays: pulumi.Int(7),
    			},
    			MinuteMetrics: &storage.AccountTablePropertiesMinuteMetricsArgs{
    				Version:             pulumi.String("1.0"),
    				RetentionPolicyDays: pulumi.Int(7),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "storageaccountname",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
            Tags = 
            {
                { "environment", "staging" },
            },
        });
    
        var exampleAccountTableProperties = new Azure.Storage.AccountTableProperties("example", new()
        {
            StorageAccountId = exampleAccount.Id,
            CorsRules = new[]
            {
                new Azure.Storage.Inputs.AccountTablePropertiesCorsRuleArgs
                {
                    AllowedOrigins = new[]
                    {
                        "http://www.example.com",
                    },
                    ExposedHeaders = new[]
                    {
                        "x-tempo-*",
                    },
                    AllowedHeaders = new[]
                    {
                        "x-tempo-*",
                    },
                    AllowedMethods = new[]
                    {
                        "GET",
                        "PUT",
                    },
                    MaxAgeInSeconds = 500,
                },
            },
            Logging = new Azure.Storage.Inputs.AccountTablePropertiesLoggingArgs
            {
                Version = "1.0",
                Delete = true,
                Read = true,
                Write = true,
                RetentionPolicyDays = 7,
            },
            HourMetrics = new Azure.Storage.Inputs.AccountTablePropertiesHourMetricsArgs
            {
                Version = "1.0",
                RetentionPolicyDays = 7,
            },
            MinuteMetrics = new Azure.Storage.Inputs.AccountTablePropertiesMinuteMetricsArgs
            {
                Version = "1.0",
                RetentionPolicyDays = 7,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.AccountTableProperties;
    import com.pulumi.azure.storage.AccountTablePropertiesArgs;
    import com.pulumi.azure.storage.inputs.AccountTablePropertiesCorsRuleArgs;
    import com.pulumi.azure.storage.inputs.AccountTablePropertiesLoggingArgs;
    import com.pulumi.azure.storage.inputs.AccountTablePropertiesHourMetricsArgs;
    import com.pulumi.azure.storage.inputs.AccountTablePropertiesMinuteMetricsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("storageaccountname")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .tags(Map.of("environment", "staging"))
                .build());
    
            var exampleAccountTableProperties = new AccountTableProperties("exampleAccountTableProperties", AccountTablePropertiesArgs.builder()
                .storageAccountId(exampleAccount.id())
                .corsRules(AccountTablePropertiesCorsRuleArgs.builder()
                    .allowedOrigins("http://www.example.com")
                    .exposedHeaders("x-tempo-*")
                    .allowedHeaders("x-tempo-*")
                    .allowedMethods(                
                        "GET",
                        "PUT")
                    .maxAgeInSeconds(500)
                    .build())
                .logging(AccountTablePropertiesLoggingArgs.builder()
                    .version("1.0")
                    .delete(true)
                    .read(true)
                    .write(true)
                    .retentionPolicyDays(7)
                    .build())
                .hourMetrics(AccountTablePropertiesHourMetricsArgs.builder()
                    .version("1.0")
                    .retentionPolicyDays(7)
                    .build())
                .minuteMetrics(AccountTablePropertiesMinuteMetricsArgs.builder()
                    .version("1.0")
                    .retentionPolicyDays(7)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: storageaccountname
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
          tags:
            environment: staging
      exampleAccountTableProperties:
        type: azure:storage:AccountTableProperties
        name: example
        properties:
          storageAccountId: ${exampleAccount.id}
          corsRules:
            - allowedOrigins:
                - http://www.example.com
              exposedHeaders:
                - x-tempo-*
              allowedHeaders:
                - x-tempo-*
              allowedMethods:
                - GET
                - PUT
              maxAgeInSeconds: '500'
          logging:
            version: '1.0'
            delete: true
            read: true
            write: true
            retentionPolicyDays: 7
          hourMetrics:
            version: '1.0'
            retentionPolicyDays: 7
          minuteMetrics:
            version: '1.0'
            retentionPolicyDays: 7
    
    pulumi {
      required_providers {
        azure = {
          source = "pulumi/azure"
        }
      }
    }
    
    resource "azure_core_resourcegroup" "example" {
      name     = "example-resources"
      location = "West Europe"
    }
    resource "azure_storage_account" "example" {
      name                     = "storageaccountname"
      resource_group_name      = azure_core_resourcegroup.example.name
      location                 = azure_core_resourcegroup.example.location
      account_tier             = "Standard"
      account_replication_type = "GRS"
      tags = {
        "environment" = "staging"
      }
    }
    resource "azure_storage_accounttableproperties" "example" {
      storage_account_id = azure_storage_account.example.id
      cors_rules {
        allowed_origins    = ["http://www.example.com"]
        exposed_headers    = ["x-tempo-*"]
        allowed_headers    = ["x-tempo-*"]
        allowed_methods    = ["GET", "PUT"]
        max_age_in_seconds = "500"
      }
      logging = {
        version               = "1.0"
        delete                = true
        read                  = true
        write                 = true
        retention_policy_days = 7
      }
      hour_metrics = {
        version               = "1.0"
        retention_policy_days = 7
      }
      minute_metrics = {
        version               = "1.0"
        retention_policy_days = 7
      }
    }
    

    Create AccountTableProperties Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountTableProperties(name: string, args: AccountTablePropertiesArgs, opts?: CustomResourceOptions);
    @overload
    def AccountTableProperties(resource_name: str,
                               args: AccountTablePropertiesArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountTableProperties(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               storage_account_id: Optional[str] = None,
                               cors_rules: Optional[Sequence[AccountTablePropertiesCorsRuleArgs]] = None,
                               hour_metrics: Optional[AccountTablePropertiesHourMetricsArgs] = None,
                               logging: Optional[AccountTablePropertiesLoggingArgs] = None,
                               minute_metrics: Optional[AccountTablePropertiesMinuteMetricsArgs] = None)
    func NewAccountTableProperties(ctx *Context, name string, args AccountTablePropertiesArgs, opts ...ResourceOption) (*AccountTableProperties, error)
    public AccountTableProperties(string name, AccountTablePropertiesArgs args, CustomResourceOptions? opts = null)
    public AccountTableProperties(String name, AccountTablePropertiesArgs args)
    public AccountTableProperties(String name, AccountTablePropertiesArgs args, CustomResourceOptions options)
    
    type: azure:storage:AccountTableProperties
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure_storage_account_table_properties" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountTablePropertiesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccountTablePropertiesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccountTablePropertiesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountTablePropertiesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountTablePropertiesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var accountTablePropertiesResource = new Azure.Storage.AccountTableProperties("accountTablePropertiesResource", new()
    {
        StorageAccountId = "string",
        CorsRules = new[]
        {
            new Azure.Storage.Inputs.AccountTablePropertiesCorsRuleArgs
            {
                AllowedHeaders = new[]
                {
                    "string",
                },
                AllowedMethods = new[]
                {
                    "string",
                },
                AllowedOrigins = new[]
                {
                    "string",
                },
                ExposedHeaders = new[]
                {
                    "string",
                },
                MaxAgeInSeconds = 0,
            },
        },
        HourMetrics = new Azure.Storage.Inputs.AccountTablePropertiesHourMetricsArgs
        {
            Version = "string",
            IncludeApis = false,
            RetentionPolicyDays = 0,
        },
        Logging = new Azure.Storage.Inputs.AccountTablePropertiesLoggingArgs
        {
            Delete = false,
            Read = false,
            Version = "string",
            Write = false,
            RetentionPolicyDays = 0,
        },
        MinuteMetrics = new Azure.Storage.Inputs.AccountTablePropertiesMinuteMetricsArgs
        {
            Version = "string",
            IncludeApis = false,
            RetentionPolicyDays = 0,
        },
    });
    
    example, err := storage.NewAccountTableProperties(ctx, "accountTablePropertiesResource", &storage.AccountTablePropertiesArgs{
    	StorageAccountId: pulumi.String("string"),
    	CorsRules: storage.AccountTablePropertiesCorsRuleArray{
    		&storage.AccountTablePropertiesCorsRuleArgs{
    			AllowedHeaders: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AllowedMethods: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AllowedOrigins: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ExposedHeaders: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			MaxAgeInSeconds: pulumi.Int(0),
    		},
    	},
    	HourMetrics: &storage.AccountTablePropertiesHourMetricsArgs{
    		Version:             pulumi.String("string"),
    		IncludeApis:         pulumi.Bool(false),
    		RetentionPolicyDays: pulumi.Int(0),
    	},
    	Logging: &storage.AccountTablePropertiesLoggingArgs{
    		Delete:              pulumi.Bool(false),
    		Read:                pulumi.Bool(false),
    		Version:             pulumi.String("string"),
    		Write:               pulumi.Bool(false),
    		RetentionPolicyDays: pulumi.Int(0),
    	},
    	MinuteMetrics: &storage.AccountTablePropertiesMinuteMetricsArgs{
    		Version:             pulumi.String("string"),
    		IncludeApis:         pulumi.Bool(false),
    		RetentionPolicyDays: pulumi.Int(0),
    	},
    })
    
    resource "azure_storage_account_table_properties" "accountTablePropertiesResource" {
      lifecycle {
        create_before_destroy = true
      }
      storage_account_id = "string"
      cors_rules {
        allowed_headers    = ["string"]
        allowed_methods    = ["string"]
        allowed_origins    = ["string"]
        exposed_headers    = ["string"]
        max_age_in_seconds = 0
      }
      hour_metrics = {
        version               = "string"
        include_apis          = false
        retention_policy_days = 0
      }
      logging = {
        delete                = false
        read                  = false
        version               = "string"
        write                 = false
        retention_policy_days = 0
      }
      minute_metrics = {
        version               = "string"
        include_apis          = false
        retention_policy_days = 0
      }
    }
    
    var accountTablePropertiesResource = new AccountTableProperties("accountTablePropertiesResource", AccountTablePropertiesArgs.builder()
        .storageAccountId("string")
        .corsRules(AccountTablePropertiesCorsRuleArgs.builder()
            .allowedHeaders("string")
            .allowedMethods("string")
            .allowedOrigins("string")
            .exposedHeaders("string")
            .maxAgeInSeconds(0)
            .build())
        .hourMetrics(AccountTablePropertiesHourMetricsArgs.builder()
            .version("string")
            .includeApis(false)
            .retentionPolicyDays(0)
            .build())
        .logging(AccountTablePropertiesLoggingArgs.builder()
            .delete(false)
            .read(false)
            .version("string")
            .write(false)
            .retentionPolicyDays(0)
            .build())
        .minuteMetrics(AccountTablePropertiesMinuteMetricsArgs.builder()
            .version("string")
            .includeApis(false)
            .retentionPolicyDays(0)
            .build())
        .build());
    
    account_table_properties_resource = azure.storage.AccountTableProperties("accountTablePropertiesResource",
        storage_account_id="string",
        cors_rules=[{
            "allowed_headers": ["string"],
            "allowed_methods": ["string"],
            "allowed_origins": ["string"],
            "exposed_headers": ["string"],
            "max_age_in_seconds": 0,
        }],
        hour_metrics={
            "version": "string",
            "include_apis": False,
            "retention_policy_days": 0,
        },
        logging={
            "delete": False,
            "read": False,
            "version": "string",
            "write": False,
            "retention_policy_days": 0,
        },
        minute_metrics={
            "version": "string",
            "include_apis": False,
            "retention_policy_days": 0,
        })
    
    const accountTablePropertiesResource = new azure.storage.AccountTableProperties("accountTablePropertiesResource", {
        storageAccountId: "string",
        corsRules: [{
            allowedHeaders: ["string"],
            allowedMethods: ["string"],
            allowedOrigins: ["string"],
            exposedHeaders: ["string"],
            maxAgeInSeconds: 0,
        }],
        hourMetrics: {
            version: "string",
            includeApis: false,
            retentionPolicyDays: 0,
        },
        logging: {
            "delete": false,
            read: false,
            version: "string",
            write: false,
            retentionPolicyDays: 0,
        },
        minuteMetrics: {
            version: "string",
            includeApis: false,
            retentionPolicyDays: 0,
        },
    });
    
    type: azure:storage:AccountTableProperties
    properties:
        corsRules:
            - allowedHeaders:
                - string
              allowedMethods:
                - string
              allowedOrigins:
                - string
              exposedHeaders:
                - string
              maxAgeInSeconds: 0
        hourMetrics:
            includeApis: false
            retentionPolicyDays: 0
            version: string
        logging:
            delete: false
            read: false
            retentionPolicyDays: 0
            version: string
            write: false
        minuteMetrics:
            includeApis: false
            retentionPolicyDays: 0
            version: string
        storageAccountId: string
    

    AccountTableProperties Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountTableProperties resource accepts the following input properties:

    StorageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    CorsRules List<AccountTablePropertiesCorsRule>
    A corsRule block as defined below.
    HourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    Logging AccountTablePropertiesLogging
    A logging block as defined below.
    MinuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    StorageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    CorsRules []AccountTablePropertiesCorsRuleArgs
    A corsRule block as defined below.
    HourMetrics AccountTablePropertiesHourMetricsArgs

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    Logging AccountTablePropertiesLoggingArgs
    A logging block as defined below.
    MinuteMetrics AccountTablePropertiesMinuteMetricsArgs
    A minuteMetrics block as defined below.
    storage_account_id string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    cors_rules list(object)
    A corsRule block as defined below.
    hour_metrics object

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging object
    A logging block as defined below.
    minute_metrics object
    A minuteMetrics block as defined below.
    storageAccountId String
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules List<AccountTablePropertiesCorsRule>
    A corsRule block as defined below.
    hourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLogging
    A logging block as defined below.
    minuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    storageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules AccountTablePropertiesCorsRule[]
    A corsRule block as defined below.
    hourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLogging
    A logging block as defined below.
    minuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    storage_account_id str
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    cors_rules Sequence[AccountTablePropertiesCorsRuleArgs]
    A corsRule block as defined below.
    hour_metrics AccountTablePropertiesHourMetricsArgs

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLoggingArgs
    A logging block as defined below.
    minute_metrics AccountTablePropertiesMinuteMetricsArgs
    A minuteMetrics block as defined below.
    storageAccountId String
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules List<Property Map>
    A corsRule block as defined below.
    hourMetrics Property Map

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging Property Map
    A logging block as defined below.
    minuteMetrics Property Map
    A minuteMetrics block as defined below.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AccountTableProperties Resource

    Get an existing AccountTableProperties 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?: AccountTablePropertiesState, opts?: CustomResourceOptions): AccountTableProperties
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cors_rules: Optional[Sequence[AccountTablePropertiesCorsRuleArgs]] = None,
            hour_metrics: Optional[AccountTablePropertiesHourMetricsArgs] = None,
            logging: Optional[AccountTablePropertiesLoggingArgs] = None,
            minute_metrics: Optional[AccountTablePropertiesMinuteMetricsArgs] = None,
            storage_account_id: Optional[str] = None) -> AccountTableProperties
    func GetAccountTableProperties(ctx *Context, name string, id IDInput, state *AccountTablePropertiesState, opts ...ResourceOption) (*AccountTableProperties, error)
    public static AccountTableProperties Get(string name, Input<string> id, AccountTablePropertiesState? state, CustomResourceOptions? opts = null)
    public static AccountTableProperties get(String name, Output<String> id, AccountTablePropertiesState state, CustomResourceOptions options)
    resources:  _:    type: azure:storage:AccountTableProperties    get:      id: ${id}
    import {
      to = azure_storage_account_table_properties.example
      id = "${id}"
    }
    
    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.
    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:
    CorsRules List<AccountTablePropertiesCorsRule>
    A corsRule block as defined below.
    HourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    Logging AccountTablePropertiesLogging
    A logging block as defined below.
    MinuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    StorageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    CorsRules []AccountTablePropertiesCorsRuleArgs
    A corsRule block as defined below.
    HourMetrics AccountTablePropertiesHourMetricsArgs

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    Logging AccountTablePropertiesLoggingArgs
    A logging block as defined below.
    MinuteMetrics AccountTablePropertiesMinuteMetricsArgs
    A minuteMetrics block as defined below.
    StorageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    cors_rules list(object)
    A corsRule block as defined below.
    hour_metrics object

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging object
    A logging block as defined below.
    minute_metrics object
    A minuteMetrics block as defined below.
    storage_account_id string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules List<AccountTablePropertiesCorsRule>
    A corsRule block as defined below.
    hourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLogging
    A logging block as defined below.
    minuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    storageAccountId String
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules AccountTablePropertiesCorsRule[]
    A corsRule block as defined below.
    hourMetrics AccountTablePropertiesHourMetrics

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLogging
    A logging block as defined below.
    minuteMetrics AccountTablePropertiesMinuteMetrics
    A minuteMetrics block as defined below.
    storageAccountId string
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    cors_rules Sequence[AccountTablePropertiesCorsRuleArgs]
    A corsRule block as defined below.
    hour_metrics AccountTablePropertiesHourMetricsArgs

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging AccountTablePropertiesLoggingArgs
    A logging block as defined below.
    minute_metrics AccountTablePropertiesMinuteMetricsArgs
    A minuteMetrics block as defined below.
    storage_account_id str
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.
    corsRules List<Property Map>
    A corsRule block as defined below.
    hourMetrics Property Map

    A hourMetrics block as defined below.

    Note: At least one of corsRule, logging, minuteMetrics, or hourMetrics must be specified.

    logging Property Map
    A logging block as defined below.
    minuteMetrics Property Map
    A minuteMetrics block as defined below.
    storageAccountId String
    The ID of the Storage Account to set Table Properties on. Changing this forces a new resource to be created.

    Supporting Types

    AccountTablePropertiesCorsRule, AccountTablePropertiesCorsRuleArgs

    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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.
    allowed_headers list(string)
    A list of headers that are allowed to be a part of the cross-origin request.
    allowed_methods list(string)
    A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    allowed_origins list(string)
    A list of origin domains that will be allowed by CORS.
    exposed_headers list(string)
    A list of response headers that are exposed to CORS clients.
    max_age_in_seconds number
    The number of seconds the client should cache a preflight response.
    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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 Integer
    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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.
    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 methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    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 Number
    The number of seconds the client should cache a preflight response.

    AccountTablePropertiesHourMetrics, AccountTablePropertiesHourMetricsArgs

    Version string
    The version of storage analytics to configure.
    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.
    Version string
    The version of storage analytics to configure.
    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.
    version string
    The version of storage analytics to configure.
    include_apis bool
    Indicates whether metrics should generate summary statistics for called API operations.
    retention_policy_days number
    Specifies the number of days that logs will be retained.
    version String
    The version of storage analytics to configure.
    includeApis Boolean
    Indicates whether metrics should generate summary statistics for called API operations.
    retentionPolicyDays Integer
    Specifies the number of days that logs will be retained.
    version string
    The version of storage analytics to configure.
    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.
    version str
    The version of storage analytics to configure.
    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.
    version String
    The version of storage analytics to configure.
    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.

    AccountTablePropertiesLogging, AccountTablePropertiesLoggingArgs

    Delete bool
    Indicates whether all delete requests should be logged.
    Read bool
    Indicates whether all read requests should be logged.
    Version string
    The version of storage analytics to configure.
    Write bool
    Indicates whether all write requests should be logged.
    RetentionPolicyDays int
    Specifies the number of days that logs will be retained.
    Delete bool
    Indicates whether all delete requests should be logged.
    Read bool
    Indicates whether all read requests should be logged.
    Version string
    The version of storage analytics to configure.
    Write bool
    Indicates whether all write requests should be logged.
    RetentionPolicyDays int
    Specifies the number of days that logs will be retained.
    delete bool
    Indicates whether all delete requests should be logged.
    read bool
    Indicates whether all read requests should be logged.
    version string
    The version of storage analytics to configure.
    write bool
    Indicates whether all write requests should be logged.
    retention_policy_days number
    Specifies the number of days that logs will be retained.
    delete Boolean
    Indicates whether all delete requests should be logged.
    read Boolean
    Indicates whether all read requests should be logged.
    version String
    The version of storage analytics to configure.
    write Boolean
    Indicates whether all write requests should be logged.
    retentionPolicyDays Integer
    Specifies the number of days that logs will be retained.
    delete boolean
    Indicates whether all delete requests should be logged.
    read boolean
    Indicates whether all read requests should be logged.
    version string
    The version of storage analytics to configure.
    write boolean
    Indicates whether all write requests should be logged.
    retentionPolicyDays number
    Specifies the number of days that logs will be retained.
    delete bool
    Indicates whether all delete requests should be logged.
    read bool
    Indicates whether all read requests should be logged.
    version str
    The version of storage analytics to configure.
    write bool
    Indicates whether all write requests should be logged.
    retention_policy_days int
    Specifies the number of days that logs will be retained.
    delete Boolean
    Indicates whether all delete requests should be logged.
    read Boolean
    Indicates whether all read requests should be logged.
    version String
    The version of storage analytics to configure.
    write Boolean
    Indicates whether all write requests should be logged.
    retentionPolicyDays Number
    Specifies the number of days that logs will be retained.

    AccountTablePropertiesMinuteMetrics, AccountTablePropertiesMinuteMetricsArgs

    Version string
    The version of storage analytics to configure.
    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.
    Version string
    The version of storage analytics to configure.
    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.
    version string
    The version of storage analytics to configure.
    include_apis bool
    Indicates whether metrics should generate summary statistics for called API operations.
    retention_policy_days number
    Specifies the number of days that logs will be retained.
    version String
    The version of storage analytics to configure.
    includeApis Boolean
    Indicates whether metrics should generate summary statistics for called API operations.
    retentionPolicyDays Integer
    Specifies the number of days that logs will be retained.
    version string
    The version of storage analytics to configure.
    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.
    version str
    The version of storage analytics to configure.
    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.
    version String
    The version of storage analytics to configure.
    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.

    Import

    Storage Account Table Properties can be imported using the resource id, e.g.

    $ pulumi import azure:storage/accountTableProperties:AccountTableProperties example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.40.0
    published on Wednesday, Sep 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial