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 to Microsoft SQL Server Database.
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 exampleSqlServer = new Azure.Sql.SqlServer("exampleSqlServer", new Azure.Sql.SqlServerArgs
{
ResourceGroupName = azurerm_resource_group.Example.Name,
Location = azurerm_resource_group.Example.Location,
Version = "12.0",
AdministratorLogin = "dbadmin",
AdministratorLoginPassword = "example-password",
});
var exampleDatabase = new Azure.Sql.Database("exampleDatabase", new Azure.Sql.DatabaseArgs
{
ResourceGroupName = azurerm_resource_group.Example.Name,
Location = azurerm_resource_group.Example.Location,
ServerName = exampleSqlServer.Name,
RequestedServiceObjectiveName = "S0",
Collation = "SQL_LATIN1_GENERAL_CP1_CI_AS",
MaxSizeBytes = "268435456000",
CreateMode = "Default",
});
var exampleOutputMssql = new Azure.StreamAnalytics.OutputMssql("exampleOutputMssql", new Azure.StreamAnalytics.OutputMssqlArgs
{
StreamAnalyticsJobName = azurerm_stream_analytics_job.Example.Name,
ResourceGroupName = azurerm_stream_analytics_job.Example.Resource_group_name,
Server = exampleSqlServer.FullyQualifiedDomainName,
User = exampleSqlServer.AdministratorLogin,
Password = exampleSqlServer.AdministratorLoginPassword,
Database = exampleDatabase.Name,
Table = "ExampleTable",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/sql"
"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 {
_, 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
}
exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{
ResourceGroupName: pulumi.Any(azurerm_resource_group.Example.Name),
Location: pulumi.Any(azurerm_resource_group.Example.Location),
Version: pulumi.String("12.0"),
AdministratorLogin: pulumi.String("dbadmin"),
AdministratorLoginPassword: pulumi.String("example-password"),
})
if err != nil {
return err
}
exampleDatabase, err := sql.NewDatabase(ctx, "exampleDatabase", &sql.DatabaseArgs{
ResourceGroupName: pulumi.Any(azurerm_resource_group.Example.Name),
Location: pulumi.Any(azurerm_resource_group.Example.Location),
ServerName: exampleSqlServer.Name,
RequestedServiceObjectiveName: pulumi.String("S0"),
Collation: pulumi.String("SQL_LATIN1_GENERAL_CP1_CI_AS"),
MaxSizeBytes: pulumi.String("268435456000"),
CreateMode: pulumi.String("Default"),
})
if err != nil {
return err
}
_, err = streamanalytics.NewOutputMssql(ctx, "exampleOutputMssql", &streamanalytics.OutputMssqlArgs{
StreamAnalyticsJobName: pulumi.Any(azurerm_stream_analytics_job.Example.Name),
ResourceGroupName: pulumi.Any(azurerm_stream_analytics_job.Example.Resource_group_name),
Server: exampleSqlServer.FullyQualifiedDomainName,
User: exampleSqlServer.AdministratorLogin,
Password: exampleSqlServer.AdministratorLoginPassword,
Database: exampleDatabase.Name,
Table: pulumi.String("ExampleTable"),
})
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 exampleSqlServer = new azure.sql.SqlServer("exampleSqlServer", {
resourceGroupName: azurerm_resource_group.example.name,
location: azurerm_resource_group.example.location,
version: "12.0",
administratorLogin: "dbadmin",
administratorLoginPassword: "example-password",
});
const exampleDatabase = new azure.sql.Database("exampleDatabase", {
resourceGroupName: azurerm_resource_group.example.name,
location: azurerm_resource_group.example.location,
serverName: exampleSqlServer.name,
requestedServiceObjectiveName: "S0",
collation: "SQL_LATIN1_GENERAL_CP1_CI_AS",
maxSizeBytes: "268435456000",
createMode: "Default",
});
const exampleOutputMssql = new azure.streamanalytics.OutputMssql("exampleOutputMssql", {
streamAnalyticsJobName: azurerm_stream_analytics_job.example.name,
resourceGroupName: azurerm_stream_analytics_job.example.resource_group_name,
server: exampleSqlServer.fullyQualifiedDomainName,
user: exampleSqlServer.administratorLogin,
password: exampleSqlServer.administratorLoginPassword,
database: exampleDatabase.name,
table: "ExampleTable",
});
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_sql_server = azure.sql.SqlServer("exampleSqlServer",
resource_group_name=azurerm_resource_group["example"]["name"],
location=azurerm_resource_group["example"]["location"],
version="12.0",
administrator_login="dbadmin",
administrator_login_password="example-password")
example_database = azure.sql.Database("exampleDatabase",
resource_group_name=azurerm_resource_group["example"]["name"],
location=azurerm_resource_group["example"]["location"],
server_name=example_sql_server.name,
requested_service_objective_name="S0",
collation="SQL_LATIN1_GENERAL_CP1_CI_AS",
max_size_bytes="268435456000",
create_mode="Default")
example_output_mssql = azure.streamanalytics.OutputMssql("exampleOutputMssql",
stream_analytics_job_name=azurerm_stream_analytics_job["example"]["name"],
resource_group_name=azurerm_stream_analytics_job["example"]["resource_group_name"],
server=example_sql_server.fully_qualified_domain_name,
user=example_sql_server.administrator_login,
password=example_sql_server.administrator_login_password,
database=example_database.name,
table="ExampleTable")
Example coming soon!
Create OutputMssql Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OutputMssql(name: string, args: OutputMssqlArgs, opts?: CustomResourceOptions);@overload
def OutputMssql(resource_name: str,
args: OutputMssqlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OutputMssql(resource_name: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
password: Optional[str] = None,
resource_group_name: Optional[str] = None,
server: Optional[str] = None,
stream_analytics_job_name: Optional[str] = None,
table: Optional[str] = None,
user: Optional[str] = None,
name: Optional[str] = None)func NewOutputMssql(ctx *Context, name string, args OutputMssqlArgs, opts ...ResourceOption) (*OutputMssql, error)public OutputMssql(string name, OutputMssqlArgs args, CustomResourceOptions? opts = null)
public OutputMssql(String name, OutputMssqlArgs args)
public OutputMssql(String name, OutputMssqlArgs args, CustomResourceOptions options)
type: azure:streamanalytics:OutputMssql
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 OutputMssqlArgs
- 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 OutputMssqlArgs
- 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 OutputMssqlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutputMssqlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OutputMssqlArgs
- 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 outputMssqlResource = new Azure.StreamAnalytics.OutputMssql("outputMssqlResource", new()
{
Database = "string",
Password = "string",
ResourceGroupName = "string",
Server = "string",
StreamAnalyticsJobName = "string",
Table = "string",
User = "string",
Name = "string",
});
example, err := streamanalytics.NewOutputMssql(ctx, "outputMssqlResource", &streamanalytics.OutputMssqlArgs{
Database: pulumi.String("string"),
Password: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Server: pulumi.String("string"),
StreamAnalyticsJobName: pulumi.String("string"),
Table: pulumi.String("string"),
User: pulumi.String("string"),
Name: pulumi.String("string"),
})
var outputMssqlResource = new OutputMssql("outputMssqlResource", OutputMssqlArgs.builder()
.database("string")
.password("string")
.resourceGroupName("string")
.server("string")
.streamAnalyticsJobName("string")
.table("string")
.user("string")
.name("string")
.build());
output_mssql_resource = azure.streamanalytics.OutputMssql("outputMssqlResource",
database="string",
password="string",
resource_group_name="string",
server="string",
stream_analytics_job_name="string",
table="string",
user="string",
name="string")
const outputMssqlResource = new azure.streamanalytics.OutputMssql("outputMssqlResource", {
database: "string",
password: "string",
resourceGroupName: "string",
server: "string",
streamAnalyticsJobName: "string",
table: "string",
user: "string",
name: "string",
});
type: azure:streamanalytics:OutputMssql
properties:
database: string
name: string
password: string
resourceGroupName: string
server: string
streamAnalyticsJobName: string
table: string
user: string
OutputMssql 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 OutputMssql resource accepts the following input properties:
- Database string
- Password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Server string
- The SQL server url. Changing this forces a new resource to be created.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Database string
- Password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Server string
- The SQL server url. Changing this forces a new resource to be created.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- database String
- password String
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server String
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- database string
- password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server string
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- database str
- password str
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server str
- The SQL server url. Changing this forces a new resource to be created.
- stream_
analytics_ strjob_ name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table str
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user str
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- name str
- The name of the Stream Output. Changing this forces a new resource to be created.
- database String
- password String
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server String
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- 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 OutputMssql 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 OutputMssql Resource
Get an existing OutputMssql 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?: OutputMssqlState, opts?: CustomResourceOptions): OutputMssql@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
resource_group_name: Optional[str] = None,
server: Optional[str] = None,
stream_analytics_job_name: Optional[str] = None,
table: Optional[str] = None,
user: Optional[str] = None) -> OutputMssqlfunc GetOutputMssql(ctx *Context, name string, id IDInput, state *OutputMssqlState, opts ...ResourceOption) (*OutputMssql, error)public static OutputMssql Get(string name, Input<string> id, OutputMssqlState? state, CustomResourceOptions? opts = null)public static OutputMssql get(String name, Output<String> id, OutputMssqlState state, CustomResourceOptions options)resources: _: type: azure:streamanalytics:OutputMssql 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.
- Database string
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Server string
- The SQL server url. Changing this forces a new resource to be created.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Database string
- Name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- Password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- Server string
- The SQL server url. Changing this forces a new resource to be created.
- Stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- database String
- name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- password String
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server String
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- database string
- name string
- The name of the Stream Output. Changing this forces a new resource to be created.
- password string
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server string
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics stringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table string
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- database str
- name str
- The name of the Stream Output. Changing this forces a new resource to be created.
- password str
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server str
- The SQL server url. Changing this forces a new resource to be created.
- stream_
analytics_ strjob_ name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table str
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user str
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- database String
- name String
- The name of the Stream Output. Changing this forces a new resource to be created.
- password String
- Password used together with username, to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
- server String
- The SQL server url. Changing this forces a new resource to be created.
- stream
Analytics StringJob Name - The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- Table in the database that the output points to. Changing this forces a new resource to be created.
- user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created.
Import
Stream Analytics Outputs to Microsoft SQL Server Database can be imported using the resource id, e.g.
$ pulumi import azure:streamanalytics/outputMssql:OutputMssql 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