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

We recommend using Azure Native.

Viewing docs for Azure v5.89.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v5.89.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.storage.getTableEntities({
        tableName: "example-table-name",
        storageAccountName: "example-storage-account-name",
        filter: "PartitionKey eq 'example'",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.storage.get_table_entities(table_name="example-table-name",
        storage_account_name="example-storage-account-name",
        filter="PartitionKey eq 'example'")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := storage.GetTableEntities(ctx, &storage.GetTableEntitiesArgs{
    			TableName:          pulumi.StringRef("example-table-name"),
    			StorageAccountName: pulumi.StringRef("example-storage-account-name"),
    			Filter:             "PartitionKey eq 'example'",
    		}, 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.GetTableEntities.Invoke(new()
        {
            TableName = "example-table-name",
            StorageAccountName = "example-storage-account-name",
            Filter = "PartitionKey eq 'example'",
        });
    
    });
    
    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.GetTableEntitiesArgs;
    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.getTableEntities(GetTableEntitiesArgs.builder()
                .tableName("example-table-name")
                .storageAccountName("example-storage-account-name")
                .filter("PartitionKey eq 'example'")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:storage:getTableEntities
          Arguments:
            tableName: example-table-name
            storageAccountName: example-storage-account-name
            filter: PartitionKey eq 'example'
    

    Using getTableEntities

    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 getTableEntities(args: GetTableEntitiesArgs, opts?: InvokeOptions): Promise<GetTableEntitiesResult>
    function getTableEntitiesOutput(args: GetTableEntitiesOutputArgs, opts?: InvokeOptions): Output<GetTableEntitiesResult>
    def get_table_entities(filter: Optional[str] = None,
                           selects: Optional[Sequence[str]] = None,
                           storage_account_name: Optional[str] = None,
                           storage_table_id: Optional[str] = None,
                           table_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetTableEntitiesResult
    def get_table_entities_output(filter: Optional[pulumi.Input[str]] = None,
                           selects: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           storage_account_name: Optional[pulumi.Input[str]] = None,
                           storage_table_id: Optional[pulumi.Input[str]] = None,
                           table_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetTableEntitiesResult]
    func GetTableEntities(ctx *Context, args *GetTableEntitiesArgs, opts ...InvokeOption) (*GetTableEntitiesResult, error)
    func GetTableEntitiesOutput(ctx *Context, args *GetTableEntitiesOutputArgs, opts ...InvokeOption) GetTableEntitiesResultOutput

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

    public static class GetTableEntities 
    {
        public static Task<GetTableEntitiesResult> InvokeAsync(GetTableEntitiesArgs args, InvokeOptions? opts = null)
        public static Output<GetTableEntitiesResult> Invoke(GetTableEntitiesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTableEntitiesResult> getTableEntities(GetTableEntitiesArgs args, InvokeOptions options)
    public static Output<GetTableEntitiesResult> getTableEntities(GetTableEntitiesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:storage/getTableEntities:getTableEntities
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    The filter used to retrieve the entities.
    Selects List<string>
    A list of properties to select from the returned Storage Table Entities.
    StorageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    StorageTableId string
    The Storage Table ID where the entities exist.
    TableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    Filter string
    The filter used to retrieve the entities.
    Selects []string
    A list of properties to select from the returned Storage Table Entities.
    StorageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    StorageTableId string
    The Storage Table ID where the entities exist.
    TableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    filter String
    The filter used to retrieve the entities.
    selects List<String>
    A list of properties to select from the returned Storage Table Entities.
    storageAccountName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId String
    The Storage Table ID where the entities exist.
    tableName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    filter string
    The filter used to retrieve the entities.
    selects string[]
    A list of properties to select from the returned Storage Table Entities.
    storageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId string
    The Storage Table ID where the entities exist.
    tableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    filter str
    The filter used to retrieve the entities.
    selects Sequence[str]
    A list of properties to select from the returned Storage Table Entities.
    storage_account_name str

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storage_table_id str
    The Storage Table ID where the entities exist.
    table_name str

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    filter String
    The filter used to retrieve the entities.
    selects List<String>
    A list of properties to select from the returned Storage Table Entities.
    storageAccountName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId String
    The Storage Table ID where the entities exist.
    tableName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    getTableEntities Result

    The following output properties are available:

    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetTableEntitiesItem>
    A list of items blocks as defined below.
    StorageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    StorageTableId string
    TableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    Selects List<string>
    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetTableEntitiesItem
    A list of items blocks as defined below.
    StorageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    StorageTableId string
    TableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    Selects []string
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetTableEntitiesItem>
    A list of items blocks as defined below.
    storageAccountName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId String
    tableName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    selects List<String>
    filter string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetTableEntitiesItem[]
    A list of items blocks as defined below.
    storageAccountName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId string
    tableName string

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    selects string[]
    filter str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetTableEntitiesItem]
    A list of items blocks as defined below.
    storage_account_name str

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storage_table_id str
    table_name str

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    selects Sequence[str]
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    A list of items blocks as defined below.
    storageAccountName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    storageTableId String
    tableName String

    Deprecated: the table_name and storage_account_name properties have been superseded by the storage_table_id property and will be removed in version 4.0 of the AzureRM provider

    selects List<String>

    Supporting Types

    GetTableEntitiesItem

    PartitionKey string
    Partition Key of the Entity.
    Properties Dictionary<string, string>
    A map of any additional properties in key-value format.
    RowKey string
    Row Key of the Entity.
    PartitionKey string
    Partition Key of the Entity.
    Properties map[string]string
    A map of any additional properties in key-value format.
    RowKey string
    Row Key of the Entity.
    partitionKey String
    Partition Key of the Entity.
    properties Map<String,String>
    A map of any additional properties in key-value format.
    rowKey String
    Row Key of the Entity.
    partitionKey string
    Partition Key of the Entity.
    properties {[key: string]: string}
    A map of any additional properties in key-value format.
    rowKey string
    Row Key of the Entity.
    partition_key str
    Partition Key of the Entity.
    properties Mapping[str, str]
    A map of any additional properties in key-value format.
    row_key str
    Row Key of the Entity.
    partitionKey String
    Partition Key of the Entity.
    properties Map<String>
    A map of any additional properties in key-value format.
    rowKey String
    Row Key of the Entity.

    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 v5.89.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial