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

We recommend using Azure Native.

Viewing docs for Azure v6.39.0
published on Tuesday, Jul 14, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.39.0
published on Tuesday, Jul 14, 2026 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.storage.getTable({
        name: "example-table-name",
        storageAccountName: "example-storage-account-name",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.storage.get_table(name="example-table-name",
        storage_account_name="example-storage-account-name")
    
    package main
    
    import (
    	"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 {
    		_, err := storage.LookupTable(ctx, &storage.LookupTableArgs{
    			Name:               "example-table-name",
    			StorageAccountName: pulumi.StringRef("example-storage-account-name"),
    		}, nil)
    		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 = Azure.Storage.GetTable.Invoke(new()
        {
            Name = "example-table-name",
            StorageAccountName = "example-storage-account-name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.storage.StorageFunctions;
    import com.pulumi.azure.storage.inputs.GetTableArgs;
    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) {
            final var example = StorageFunctions.getTable(GetTableArgs.builder()
                .name("example-table-name")
                .storageAccountName("example-storage-account-name")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:storage:getTable
          arguments:
            name: example-table-name
            storageAccountName: example-storage-account-name
    
    pulumi {
      required_providers {
        azure = {
          source = "pulumi/azure"
        }
      }
    }
    
    data "azure_storage_gettable" "example" {
      name                 = "example-table-name"
      storage_account_name = "example-storage-account-name"
    }
    

    Using getTable

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTable(args: GetTableArgs, opts?: InvokeOptions): Promise<GetTableResult>
    function getTableOutput(args: GetTableOutputArgs, opts?: InvokeOptions): Output<GetTableResult>
    def get_table(name: Optional[str] = None,
                  storage_account_id: Optional[str] = None,
                  storage_account_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetTableResult
    def get_table_output(name: pulumi.Input[Optional[str]] = None,
                  storage_account_id: pulumi.Input[Optional[str]] = None,
                  storage_account_name: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetTableResult]
    func LookupTable(ctx *Context, args *LookupTableArgs, opts ...InvokeOption) (*LookupTableResult, error)
    func LookupTableOutput(ctx *Context, args *LookupTableOutputArgs, opts ...InvokeOption) LookupTableResultOutput

    > Note: This function is named LookupTable in the Go SDK.

    public static class GetTable 
    {
        public static Task<GetTableResult> InvokeAsync(GetTableArgs args, InvokeOptions? opts = null)
        public static Output<GetTableResult> Invoke(GetTableInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
    public static Output<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:storage/getTable:getTable
      arguments:
        # arguments dictionary
    data "azure_storage_gettable" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the Table.
    StorageAccountId string
    The ID of the Storage Account where the Table exists.
    StorageAccountName string

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    Name string
    The name of the Table.
    StorageAccountId string
    The ID of the Storage Account where the Table exists.
    StorageAccountName string

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    name string
    The name of the Table.
    storage_account_id string
    The ID of the Storage Account where the Table exists.
    storage_account_name string

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    name String
    The name of the Table.
    storageAccountId String
    The ID of the Storage Account where the Table exists.
    storageAccountName String

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    name string
    The name of the Table.
    storageAccountId string
    The ID of the Storage Account where the Table exists.
    storageAccountName string

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    name str
    The name of the Table.
    storage_account_id str
    The ID of the Storage Account where the Table exists.
    storage_account_name str

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    name String
    The name of the Table.
    storageAccountId String
    The ID of the Storage Account where the Table exists.
    storageAccountName String

    The name of the Storage Account where the Table exists.

    Note: This property is deprecated in favour of storageAccountId and will be removed in version 5.0 of the AzureRM Provider.

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    getTable Result

    The following output properties are available:

    Acls List<GetTableAcl>
    A mapping of ACLs for this Table.
    Id string
    The ID of the Storage Table.
    Name string
    ResourceManagerId string
    The Resource Manager ID of this Storage Table.
    StorageAccountId string
    StorageAccountName string

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    Acls []GetTableAcl
    A mapping of ACLs for this Table.
    Id string
    The ID of the Storage Table.
    Name string
    ResourceManagerId string
    The Resource Manager ID of this Storage Table.
    StorageAccountId string
    StorageAccountName string

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    acls list(object)
    A mapping of ACLs for this Table.
    id string
    The ID of the Storage Table.
    name string
    resource_manager_id string
    The Resource Manager ID of this Storage Table.
    storage_account_id string
    storage_account_name string

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    acls List<GetTableAcl>
    A mapping of ACLs for this Table.
    id String
    The ID of the Storage Table.
    name String
    resourceManagerId String
    The Resource Manager ID of this Storage Table.
    storageAccountId String
    storageAccountName String

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    acls GetTableAcl[]
    A mapping of ACLs for this Table.
    id string
    The ID of the Storage Table.
    name string
    resourceManagerId string
    The Resource Manager ID of this Storage Table.
    storageAccountId string
    storageAccountName string

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    acls Sequence[GetTableAcl]
    A mapping of ACLs for this Table.
    id str
    The ID of the Storage Table.
    name str
    resource_manager_id str
    The Resource Manager ID of this Storage Table.
    storage_account_id str
    storage_account_name str

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    acls List<Property Map>
    A mapping of ACLs for this Table.
    id String
    The ID of the Storage Table.
    name String
    resourceManagerId String
    The Resource Manager ID of this Storage Table.
    storageAccountId String
    storageAccountName String

    Deprecated: storageAccountName has been deprecated in favour of storageAccountId and will be removed in v5.0 of the AzureRM Provider

    Supporting Types

    GetTableAcl

    AccessPolicies List<GetTableAclAccessPolicy>
    Id string
    The ID of the Storage Table.
    AccessPolicies []GetTableAclAccessPolicy
    Id string
    The ID of the Storage Table.
    access_policies list(object)
    id string
    The ID of the Storage Table.
    accessPolicies List<GetTableAclAccessPolicy>
    id String
    The ID of the Storage Table.
    accessPolicies GetTableAclAccessPolicy[]
    id string
    The ID of the Storage Table.
    accessPolicies List<Property Map>
    id String
    The ID of the Storage Table.

    GetTableAclAccessPolicy

    Expiry string
    Permissions string
    Start string
    Expiry string
    Permissions string
    Start string
    expiry string
    permissions string
    start string
    expiry String
    permissions String
    start String
    expiry string
    permissions string
    start string
    expiry String
    permissions String
    start String

    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.39.0
    published on Tuesday, Jul 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial