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 Stream Analytics Output Table.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = Output.Create(Azure.Core.GetResourceGroup.InvokeAsync(new Azure.Core.GetResourceGroupArgs
{
Name = "example-resources",
}));
var exampleJob = Output.Create(Azure.StreamAnalytics.GetJob.InvokeAsync(new Azure.StreamAnalytics.GetJobArgs
{
Name = "example-job",
ResourceGroupName = azurerm_resource_group.Example.Name,
}));
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Apply(exampleResourceGroup => exampleResourceGroup.Name),
Location = exampleResourceGroup.Apply(exampleResourceGroup => exampleResourceGroup.Location),
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleTable = new Azure.Storage.Table("exampleTable", new Azure.Storage.TableArgs
{
StorageAccountName = exampleAccount.Name,
});
var exampleOutputTable = new Azure.StreamAnalytics.OutputTable("exampleOutputTable", new Azure.StreamAnalytics.OutputTableArgs
{
StreamAnalyticsJobName = azurerm_stream_analytics_job.Example.Name,
ResourceGroupName = azurerm_stream_analytics_job.Example.Resource_group_name,
StorageAccountName = exampleAccount.Name,
StorageAccountKey = exampleAccount.PrimaryAccessKey,
Table = exampleTable.Name,
PartitionKey = "foo",
RowKey = "bar",
BatchSize = 100,
});
}
}
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-azure/sdk/v4/go/azure/streamanalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.LookupResourceGroup(ctx, &core.LookupResourceGroupArgs{
Name: "example-resources",
}, nil)
if err != nil {
return err
}
_, err = streamanalytics.LookupJob(ctx, &streamanalytics.LookupJobArgs{
Name: "example-job",
ResourceGroupName: azurerm_resource_group.Example.Name,
}, nil)
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: pulumi.String(exampleResourceGroup.Name),
Location: pulumi.String(exampleResourceGroup.Location),
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
exampleTable, err := storage.NewTable(ctx, "exampleTable", &storage.TableArgs{
StorageAccountName: exampleAccount.Name,
})
if err != nil {
return err
}
_, err = streamanalytics.NewOutputTable(ctx, "exampleOutputTable", &streamanalytics.OutputTableArgs{
StreamAnalyticsJobName: pulumi.Any(azurerm_stream_analytics_job.Example.Name),
ResourceGroupName: pulumi.Any(azurerm_stream_analytics_job.Example.Resource_group_name),
StorageAccountName: exampleAccount.Name,
StorageAccountKey: exampleAccount.PrimaryAccessKey,
Table: exampleTable.Name,
PartitionKey: pulumi.String("foo"),
RowKey: pulumi.String("bar"),
BatchSize: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = azure.core.getResourceGroup({
name: "example-resources",
});
const exampleJob = azure.streamanalytics.getJob({
name: "example-job",
resourceGroupName: azurerm_resource_group.example.name,
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.then(exampleResourceGroup => exampleResourceGroup.name),
location: exampleResourceGroup.then(exampleResourceGroup => exampleResourceGroup.location),
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleTable = new azure.storage.Table("exampleTable", {storageAccountName: exampleAccount.name});
const exampleOutputTable = new azure.streamanalytics.OutputTable("exampleOutputTable", {
streamAnalyticsJobName: azurerm_stream_analytics_job.example.name,
resourceGroupName: azurerm_stream_analytics_job.example.resource_group_name,
storageAccountName: exampleAccount.name,
storageAccountKey: exampleAccount.primaryAccessKey,
table: exampleTable.name,
partitionKey: "foo",
rowKey: "bar",
batchSize: 100,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.get_resource_group(name="example-resources")
example_job = azure.streamanalytics.get_job(name="example-job",
resource_group_name=azurerm_resource_group["example"]["name"])
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_output_table = azure.streamanalytics.OutputTable("exampleOutputTable",
stream_analytics_job_name=azurerm_stream_analytics_job["example"]["name"],
resource_group_name=azurerm_stream_analytics_job["example"]["resource_group_name"],
storage_account_name=example_account.name,
storage_account_key=example_account.primary_access_key,
table=example_table.name,
partition_key="foo",
row_key="bar",
batch_size=100)
Example coming soon!
Create OutputTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OutputTable(name: string, args: OutputTableArgs, opts?: CustomResourceOptions);@overload
def OutputTable(resource_name: str,
args: OutputTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OutputTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
batch_size: Optional[int] = None,
partition_key: Optional[str] = None,
resource_group_name: Optional[str] = None,
row_key: Optional[str] = None,
storage_account_key: Optional[str] = None,
storage_account_name: Optional[str] = None,
stream_analytics_job_name: Optional[str] = None,
table: Optional[str] = None,
name: Optional[str] = None)func NewOutputTable(ctx *Context, name string, args OutputTableArgs, opts ...ResourceOption) (*OutputTable, error)public OutputTable(string name, OutputTableArgs args, CustomResourceOptions? opts = null)
public OutputTable(String name, OutputTableArgs args)
public OutputTable(String name, OutputTableArgs args, CustomResourceOptions options)
type: azure:streamanalytics:OutputTable
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 OutputTableArgs
- 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 OutputTableArgs
- 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 OutputTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutputTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OutputTableArgs
- 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 outputTableResource = new Azure.StreamAnalytics.OutputTable("outputTableResource", new()
{
BatchSize = 0,
PartitionKey = "string",
ResourceGroupName = "string",
RowKey = "string",
StorageAccountKey = "string",
StorageAccountName = "string",
StreamAnalyticsJobName = "string",
Table = "string",
Name = "string",
});
example, err := streamanalytics.NewOutputTable(ctx, "outputTableResource", &streamanalytics.OutputTableArgs{
BatchSize: pulumi.Int(0),
PartitionKey: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
RowKey: pulumi.String("string"),
StorageAccountKey: pulumi.String("string"),
StorageAccountName: pulumi.String("string"),
StreamAnalyticsJobName: pulumi.String("string"),
Table: pulumi.String("string"),
Name: pulumi.String("string"),
})
var outputTableResource = new OutputTable("outputTableResource", OutputTableArgs.builder()
.batchSize(0)
.partitionKey("string")
.resourceGroupName("string")
.rowKey("string")
.storageAccountKey("string")
.storageAccountName("string")
.streamAnalyticsJobName("string")
.table("string")
.name("string")
.build());
output_table_resource = azure.streamanalytics.OutputTable("outputTableResource",
batch_size=0,
partition_key="string",
resource_group_name="string",
row_key="string",
storage_account_key="string",
storage_account_name="string",
stream_analytics_job_name="string",
table="string",
name="string")
const outputTableResource = new azure.streamanalytics.OutputTable("outputTableResource", {
batchSize: 0,
partitionKey: "string",
resourceGroupName: "string",
rowKey: "string",
storageAccountKey: "string",
storageAccountName: "string",
streamAnalyticsJobName: "string",
table: "string",
name: "string",
});
type: azure:streamanalytics:OutputTable
properties:
batchSize: 0
name: string
partitionKey: string
resourceGroupName: string
rowKey: string
storageAccountKey: string
storageAccountName: string
streamAnalyticsJobName: string
table: string
OutputTable 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 OutputTable resource accepts the following input properties:
- Batch
Size int - The number of records for a batch operation. Must be between
1and100. - Partition
Key string - The name of the output column that contains the partition key.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Row
Key string - The name of the output column that contains the row key.
- Storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- Storage
Account stringName - The name of the Storage Account.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table where the stream should be output to.
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Batch
Size int - The number of records for a batch operation. Must be between
1and100. - Partition
Key string - The name of the output column that contains the partition key.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Row
Key string - The name of the output column that contains the row key.
- Storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- Storage
Account stringName - The name of the Storage Account.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table where the stream should be output to.
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- batch
Size Integer - The number of records for a batch operation. Must be between
1and100. - partition
Key String - The name of the output column that contains the partition key.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key String - The name of the output column that contains the row key.
- storage
Account StringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account StringName - The name of the Storage Account.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table where the stream should be output to.
- name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- batch
Size number - The number of records for a batch operation. Must be between
1and100. - partition
Key string - The name of the output column that contains the partition key.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key string - The name of the output column that contains the row key.
- storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account stringName - The name of the Storage Account.
- stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table string
- The name of the table where the stream should be output to.
- name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- batch_
size int - The number of records for a batch operation. Must be between
1and100. - partition_
key str - The name of the output column that contains the partition key.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row_
key str - The name of the output column that contains the row key.
- storage_
account_ strkey - The Access Key which should be used to connect to this Storage Account.
- storage_
account_ strname - The name of the Storage Account.
- stream_
analytics_ strjob_ name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table str
- The name of the table where the stream should be output to.
- name str
- The name of the Stream Output. Changing this forces a new resource to be created.
- batch
Size Number - The number of records for a batch operation. Must be between
1and100. - partition
Key String - The name of the output column that contains the partition key.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key String - The name of the output column that contains the row key.
- storage
Account StringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account StringName - The name of the Storage Account.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table where the stream should be output to.
- name String
- The name of the Stream Output. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the OutputTable 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 OutputTable Resource
Get an existing OutputTable 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?: OutputTableState, opts?: CustomResourceOptions): OutputTable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
batch_size: Optional[int] = None,
name: Optional[str] = None,
partition_key: Optional[str] = None,
resource_group_name: Optional[str] = None,
row_key: Optional[str] = None,
storage_account_key: Optional[str] = None,
storage_account_name: Optional[str] = None,
stream_analytics_job_name: Optional[str] = None,
table: Optional[str] = None) -> OutputTablefunc GetOutputTable(ctx *Context, name string, id IDInput, state *OutputTableState, opts ...ResourceOption) (*OutputTable, error)public static OutputTable Get(string name, Input<string> id, OutputTableState? state, CustomResourceOptions? opts = null)public static OutputTable get(String name, Output<String> id, OutputTableState state, CustomResourceOptions options)resources: _: type: azure:streamanalytics:OutputTable 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.
- Batch
Size int - The number of records for a batch operation. Must be between
1and100. - Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Partition
Key string - The name of the output column that contains the partition key.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Row
Key string - The name of the output column that contains the row key.
- Storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- Storage
Account stringName - The name of the Storage Account.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table where the stream should be output to.
- Batch
Size int - The number of records for a batch operation. Must be between
1and100. - Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Partition
Key string - The name of the output column that contains the partition key.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Row
Key string - The name of the output column that contains the row key.
- Storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- Storage
Account stringName - The name of the Storage Account.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table where the stream should be output to.
- batch
Size Integer - The number of records for a batch operation. Must be between
1and100. - name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- partition
Key String - The name of the output column that contains the partition key.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key String - The name of the output column that contains the row key.
- storage
Account StringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account StringName - The name of the Storage Account.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table where the stream should be output to.
- batch
Size number - The number of records for a batch operation. Must be between
1and100. - name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- partition
Key string - The name of the output column that contains the partition key.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key string - The name of the output column that contains the row key.
- storage
Account stringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account stringName - The name of the Storage Account.
- stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table string
- The name of the table where the stream should be output to.
- batch_
size int - The number of records for a batch operation. Must be between
1and100. - name str
- The name of the Stream Output. Changing this forces a new resource to be created.
- partition_
key str - The name of the output column that contains the partition key.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row_
key str - The name of the output column that contains the row key.
- storage_
account_ strkey - The Access Key which should be used to connect to this Storage Account.
- storage_
account_ strname - The name of the Storage Account.
- stream_
analytics_ strjob_ name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table str
- The name of the table where the stream should be output to.
- batch
Size Number - The number of records for a batch operation. Must be between
1and100. - name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- partition
Key String - The name of the output column that contains the partition key.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- row
Key String - The name of the output column that contains the row key.
- storage
Account StringKey - The Access Key which should be used to connect to this Storage Account.
- storage
Account StringName - The name of the Storage Account.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table where the stream should be output to.
Import
Stream Analytics Output to Table can be imported using the resource id, e.g.
$ pulumi import azure:streamanalytics/outputTable:OutputTable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingjobs/job1/outputs/output1
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
