We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Table within an Azure Storage Account.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleTable = new Azure.Storage.Table("exampleTable", new Azure.Storage.TableArgs
{
StorageAccountName = exampleAccount.Name,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
_, err = storage.NewTable(ctx, "exampleTable", &storage.TableArgs{
StorageAccountName: exampleAccount.Name,
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleTable = new azure.storage.Table("exampleTable", {storageAccountName: exampleAccount.name});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_table = azure.storage.Table("exampleTable", storage_account_name=example_account.name)
Example coming soon!
Create Table Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Table(name: string, args: TableArgs, opts?: CustomResourceOptions);@overload
def Table(resource_name: str,
args: TableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Table(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_account_name: Optional[str] = None,
acls: Optional[Sequence[TableAclArgs]] = None,
name: Optional[str] = None)func NewTable(ctx *Context, name string, args TableArgs, opts ...ResourceOption) (*Table, error)public Table(string name, TableArgs args, CustomResourceOptions? opts = null)type: azure:storage:Table
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TableArgs
- 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 TableArgs
- 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 TableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TableArgs
- 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 azureTableResource = new Azure.Storage.Table("azureTableResource", new()
{
StorageAccountName = "string",
Acls = new[]
{
new Azure.Storage.Inputs.TableAclArgs
{
Id = "string",
AccessPolicies = new[]
{
new Azure.Storage.Inputs.TableAclAccessPolicyArgs
{
Expiry = "string",
Permissions = "string",
Start = "string",
},
},
},
},
Name = "string",
});
example, err := storage.NewTable(ctx, "azureTableResource", &storage.TableArgs{
StorageAccountName: pulumi.String("string"),
Acls: storage.TableAclArray{
&storage.TableAclArgs{
Id: pulumi.String("string"),
AccessPolicies: storage.TableAclAccessPolicyArray{
&storage.TableAclAccessPolicyArgs{
Expiry: pulumi.String("string"),
Permissions: pulumi.String("string"),
Start: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
})
var azureTableResource = new com.pulumi.azure.storage.Table("azureTableResource", com.pulumi.azure.storage.TableArgs.builder()
.storageAccountName("string")
.acls(TableAclArgs.builder()
.id("string")
.accessPolicies(TableAclAccessPolicyArgs.builder()
.expiry("string")
.permissions("string")
.start("string")
.build())
.build())
.name("string")
.build());
azure_table_resource = azure.storage.Table("azureTableResource",
storage_account_name="string",
acls=[{
"id": "string",
"access_policies": [{
"expiry": "string",
"permissions": "string",
"start": "string",
}],
}],
name="string")
const azureTableResource = new azure.storage.Table("azureTableResource", {
storageAccountName: "string",
acls: [{
id: "string",
accessPolicies: [{
expiry: "string",
permissions: "string",
start: "string",
}],
}],
name: "string",
});
type: azure:storage:Table
properties:
acls:
- accessPolicies:
- expiry: string
permissions: string
start: string
id: string
name: string
storageAccountName: string
Table 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 Table resource accepts the following input properties:
- Storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- Acls
List<Table
Acl> - One or more
aclblocks as defined below. - Name string
- The name of the storage table. Must be unique within the storage account the table is located.
- Storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- Acls
[]Table
Acl Args - One or more
aclblocks as defined below. - Name string
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account StringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
List<Table
Acl> - One or more
aclblocks as defined below. - name String
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
Table
Acl[] - One or more
aclblocks as defined below. - name string
- The name of the storage table. Must be unique within the storage account the table is located.
- storage_
account_ strname - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
Sequence[Table
Acl Args] - One or more
aclblocks as defined below. - name str
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account StringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls List<Property Map>
- One or more
aclblocks as defined below. - name String
- The name of the storage table. Must be unique within the storage account the table is located.
Outputs
All input properties are implicitly available as output properties. Additionally, the Table 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Table Resource
Get an existing Table 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?: TableState, opts?: CustomResourceOptions): Table@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acls: Optional[Sequence[TableAclArgs]] = None,
name: Optional[str] = None,
storage_account_name: Optional[str] = None) -> Tablefunc GetTable(ctx *Context, name string, id IDInput, state *TableState, opts ...ResourceOption) (*Table, error)public static Table Get(string name, Input<string> id, TableState? state, CustomResourceOptions? opts = null)public static Table get(String name, Output<String> id, TableState state, CustomResourceOptions options)resources: _: type: azure:storage:Table get: 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.
- Acls
List<Table
Acl> - One or more
aclblocks as defined below. - Name string
- The name of the storage table. Must be unique within the storage account the table is located.
- Storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- Acls
[]Table
Acl Args - One or more
aclblocks as defined below. - Name string
- The name of the storage table. Must be unique within the storage account the table is located.
- Storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
List<Table
Acl> - One or more
aclblocks as defined below. - name String
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account StringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
Table
Acl[] - One or more
aclblocks as defined below. - name string
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account stringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls
Sequence[Table
Acl Args] - One or more
aclblocks as defined below. - name str
- The name of the storage table. Must be unique within the storage account the table is located.
- storage_
account_ strname - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
- acls List<Property Map>
- One or more
aclblocks as defined below. - name String
- The name of the storage table. Must be unique within the storage account the table is located.
- storage
Account StringName - Specifies the storage account in which to create the storage table. Changing this forces a new resource to be created.
Supporting Types
TableAcl, TableAclArgs
- Id string
- The ID which should be used for this Shared Identifier.
- Access
Policies List<TableAcl Access Policy> - An
access_policyblock as defined below.
- Id string
- The ID which should be used for this Shared Identifier.
- Access
Policies []TableAcl Access Policy - An
access_policyblock as defined below.
- id String
- The ID which should be used for this Shared Identifier.
- access
Policies List<TableAcl Access Policy> - An
access_policyblock as defined below.
- id string
- The ID which should be used for this Shared Identifier.
- access
Policies TableAcl Access Policy[] - An
access_policyblock as defined below.
- id str
- The ID which should be used for this Shared Identifier.
- access_
policies Sequence[TableAcl Access Policy] - An
access_policyblock as defined below.
- id String
- The ID which should be used for this Shared Identifier.
- access
Policies List<Property Map> - An
access_policyblock as defined below.
TableAclAccessPolicy, TableAclAccessPolicyArgs
- Expiry string
- The ISO8061 UTC time at which this Access Policy should be valid until.
- Permissions string
- The permissions which should associated with this Shared Identifier.
- Start string
- The ISO8061 UTC time at which this Access Policy should be valid from.
- Expiry string
- The ISO8061 UTC time at which this Access Policy should be valid until.
- Permissions string
- The permissions which should associated with this Shared Identifier.
- Start string
- The ISO8061 UTC time at which this Access Policy should be valid from.
- expiry String
- The ISO8061 UTC time at which this Access Policy should be valid until.
- permissions String
- The permissions which should associated with this Shared Identifier.
- start String
- The ISO8061 UTC time at which this Access Policy should be valid from.
- expiry string
- The ISO8061 UTC time at which this Access Policy should be valid until.
- permissions string
- The permissions which should associated with this Shared Identifier.
- start string
- The ISO8061 UTC time at which this Access Policy should be valid from.
- expiry str
- The ISO8061 UTC time at which this Access Policy should be valid until.
- permissions str
- The permissions which should associated with this Shared Identifier.
- start str
- The ISO8061 UTC time at which this Access Policy should be valid from.
- expiry String
- The ISO8061 UTC time at which this Access Policy should be valid until.
- permissions String
- The permissions which should associated with this Shared Identifier.
- start String
- The ISO8061 UTC time at which this Access Policy should be valid from.
Import
Table’s within a Storage Account can be imported using the resource id, e.g.
$ pulumi import azure:storage/table:Table table1 "https://example.table.core.windows.net/Tables('replace-with-table-name')"
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
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
