We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.storage.getTable
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 dictionary
The following arguments are supported:
- Name string
- The name of the Table.
- Storage
Account stringName - The name of the Storage Account where the Table exists.
- Name string
- The name of the Table.
- Storage
Account stringName - The name of the Storage Account where the Table exists.
- name String
- The name of the Table.
- storage
Account StringName - The name of the Storage Account where the Table exists.
- name string
- The name of the Table.
- storage
Account 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.
- storage
Account StringName - The name of the Storage Account where the Table exists.
getTable Result
The following output properties are available:
- Acls
List<Get
Table Acl> - A mapping of ACLs for this Table.
- Id string
- The ID of the Storage Table.
- Name string
- Resource
Manager stringId - The Resource Manager ID of this Storage Table.
- Storage
Account stringName
- Acls
[]Get
Table Acl - A mapping of ACLs for this Table.
- Id string
- The ID of the Storage Table.
- Name string
- Resource
Manager stringId - The Resource Manager ID of this Storage Table.
- Storage
Account stringName
- acls
List<Get
Table Acl> - A mapping of ACLs for this Table.
- id String
- The ID of the Storage Table.
- name String
- resource
Manager StringId - The Resource Manager ID of this Storage Table.
- storage
Account StringName
- acls
Get
Table Acl[] - A mapping of ACLs for this Table.
- id string
- The ID of the Storage Table.
- name string
- resource
Manager stringId - The Resource Manager ID of this Storage Table.
- storage
Account stringName
- acls
Sequence[Get
Table 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
- resource
Manager StringId - The Resource Manager ID of this Storage Table.
- storage
Account StringName
Supporting Types
GetTableAcl
- Access
Policies List<GetTable Acl Access Policy> - Id string
- The ID of the Storage Table.
- Access
Policies []GetTable Acl Access Policy - Id string
- The ID of the Storage Table.
- access
Policies List<GetTable Acl Access Policy> - id String
- The ID of the Storage Table.
- access
Policies 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.
- access
Policies 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
azurerm
Terraform Provider.