We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.storage.getTable
Explore with Pulumi AI
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: "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.List;
import java.util.ArrayList;
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
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_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTableResult
def get_table_output(name: Optional[pulumi.Input[str]] = None,
              storage_account_name: Optional[pulumi.Input[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 dictionaryThe following arguments are supported:
- Name string
- The name of the Table.
- StorageAccount stringName 
- The name of the Storage Account where the Table exists.
- Name string
- The name of the Table.
- StorageAccount stringName 
- The name of the Storage Account where the Table exists.
- name String
- The name of the Table.
- storageAccount StringName 
- The name of the Storage Account where the Table exists.
- name string
- The name of the Table.
- storageAccount stringName 
- The name of the Storage Account where the Table exists.
- name str
- The name of the Table.
- storage_account_ strname 
- The name of the Storage Account where the Table exists.
- name String
- The name of the Table.
- storageAccount StringName 
- The name of the Storage Account where the Table exists.
getTable Result
The following output properties are available:
- Acls
List<GetTable Acl> 
- A mapping of ACLs for this Table.
- Id string
- The ID of the Storage Table.
- Name string
- ResourceManager stringId 
- The Resource Manager ID of this Storage Table.
- StorageAccount stringName 
- Acls
[]GetTable Acl 
- A mapping of ACLs for this Table.
- Id string
- The ID of the Storage Table.
- Name string
- ResourceManager stringId 
- The Resource Manager ID of this Storage Table.
- StorageAccount stringName 
- acls
List<GetTable Acl> 
- A mapping of ACLs for this Table.
- id String
- The ID of the Storage Table.
- name String
- resourceManager StringId 
- The Resource Manager ID of this Storage Table.
- storageAccount StringName 
- acls
GetTable Acl[] 
- A mapping of ACLs for this Table.
- id string
- The ID of the Storage Table.
- name string
- resourceManager stringId 
- The Resource Manager ID of this Storage Table.
- storageAccount stringName 
- acls
Sequence[GetTable Acl] 
- A mapping of ACLs for this Table.
- id str
- The ID of the Storage Table.
- name str
- resource_manager_ strid 
- The Resource Manager ID of this Storage Table.
- storage_account_ strname 
- acls List<Property Map>
- A mapping of ACLs for this Table.
- id String
- The ID of the Storage Table.
- name String
- resourceManager StringId 
- The Resource Manager ID of this Storage Table.
- storageAccount StringName 
Supporting Types
GetTableAcl  
- AccessPolicies List<GetTable Acl Access Policy> 
- Id string
- The ID of the Storage Table.
- AccessPolicies []GetTable Acl Access Policy 
- Id string
- The ID of the Storage Table.
- accessPolicies List<GetTable Acl Access Policy> 
- id String
- The ID of the Storage Table.
- accessPolicies GetTable Acl Access Policy[] 
- id string
- The ID of the Storage Table.
- access_policies Sequence[GetTable Acl Access Policy] 
- id str
- 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 str
- permissions str
- start str
- 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 azurermTerraform Provider.