We recommend using Azure Native.
azure.streamanalytics.OutputMssql
Explore with Pulumi AI
Manages a Stream Analytics Output to Microsoft SQL Server Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azurerm from "@pulumi/azurerm";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
name: "rg-example",
location: "West Europe",
});
const example = azure.streamanalytics.getJobOutput({
name: "example-job",
resourceGroupName: exampleResourceGroup.name,
});
const exampleSqlServer = new azurerm.index.SqlServer("example", {
name: "example-server",
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
version: "12.0",
administratorLogin: "dbadmin",
administratorLoginPassword: "example-password",
});
const exampleSqlDatabase = new azurerm.index.SqlDatabase("example", {
name: "exampledb",
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
serverName: exampleSqlServer.name,
requestedServiceObjectiveName: "S0",
collation: "SQL_LATIN1_GENERAL_CP1_CI_AS",
maxSizeBytes: "268435456000",
createMode: "Default",
});
const exampleOutputMssql = new azure.streamanalytics.OutputMssql("example", {
name: "example-output-sql",
streamAnalyticsJobName: example.apply(example => example.name),
resourceGroupName: example.apply(example => example.resourceGroupName),
server: exampleSqlServer.fullyQualifiedDomainName,
user: exampleSqlServer.administratorLogin,
password: exampleSqlServer.administratorLoginPassword,
database: exampleSqlDatabase.name,
table: "ExampleTable",
});
import pulumi
import pulumi_azure as azure
import pulumi_azurerm as azurerm
example_resource_group = azure.core.ResourceGroup("example",
name="rg-example",
location="West Europe")
example = azure.streamanalytics.get_job_output(name="example-job",
resource_group_name=example_resource_group.name)
example_sql_server = azurerm.index.SqlServer("example",
name=example-server,
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
version=12.0,
administrator_login=dbadmin,
administrator_login_password=example-password)
example_sql_database = azurerm.index.SqlDatabase("example",
name=exampledb,
resource_group_name=example_resource_group.name,
location=example_resource_group.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("example",
name="example-output-sql",
stream_analytics_job_name=example.name,
resource_group_name=example.resource_group_name,
server=example_sql_server["fullyQualifiedDomainName"],
user=example_sql_server["administratorLogin"],
password=example_sql_server["administratorLoginPassword"],
database=example_sql_database["name"],
table="ExampleTable")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/streamanalytics"
"github.com/pulumi/pulumi-azurerm/sdk/go/azurerm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("rg-example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
example := streamanalytics.LookupJobOutput(ctx, streamanalytics.GetJobOutputArgs{
Name: pulumi.String("example-job"),
ResourceGroupName: exampleResourceGroup.Name,
}, nil)
exampleSqlServer, err := azurerm.NewSqlServer(ctx, "example", &azurerm.SqlServerArgs{
Name: "example-server",
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Version: "12.0",
AdministratorLogin: "dbadmin",
AdministratorLoginPassword: "example-password",
})
if err != nil {
return err
}
exampleSqlDatabase, err := azurerm.NewSqlDatabase(ctx, "example", &azurerm.SqlDatabaseArgs{
Name: "exampledb",
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
ServerName: exampleSqlServer.Name,
RequestedServiceObjectiveName: "S0",
Collation: "SQL_LATIN1_GENERAL_CP1_CI_AS",
MaxSizeBytes: "268435456000",
CreateMode: "Default",
})
if err != nil {
return err
}
_, err = streamanalytics.NewOutputMssql(ctx, "example", &streamanalytics.OutputMssqlArgs{
Name: pulumi.String("example-output-sql"),
StreamAnalyticsJobName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
return &example.Name, nil
}).(pulumi.StringPtrOutput)),
ResourceGroupName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
return &example.ResourceGroupName, nil
}).(pulumi.StringPtrOutput)),
Server: exampleSqlServer.FullyQualifiedDomainName,
User: exampleSqlServer.AdministratorLogin,
Password: exampleSqlServer.AdministratorLoginPassword,
Database: exampleSqlDatabase.Name,
Table: pulumi.String("ExampleTable"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Azurerm = Pulumi.Azurerm;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
{
Name = "rg-example",
Location = "West Europe",
});
var example = Azure.StreamAnalytics.GetJob.Invoke(new()
{
Name = "example-job",
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSqlServer = new Azurerm.Index.SqlServer("example", new()
{
Name = "example-server",
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Version = "12.0",
AdministratorLogin = "dbadmin",
AdministratorLoginPassword = "example-password",
});
var exampleSqlDatabase = new Azurerm.Index.SqlDatabase("example", new()
{
Name = "exampledb",
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ServerName = exampleSqlServer.Name,
RequestedServiceObjectiveName = "S0",
Collation = "SQL_LATIN1_GENERAL_CP1_CI_AS",
MaxSizeBytes = "268435456000",
CreateMode = "Default",
});
var exampleOutputMssql = new Azure.StreamAnalytics.OutputMssql("example", new()
{
Name = "example-output-sql",
StreamAnalyticsJobName = example.Apply(getJobResult => getJobResult.Name),
ResourceGroupName = example.Apply(getJobResult => getJobResult.ResourceGroupName),
Server = exampleSqlServer.FullyQualifiedDomainName,
User = exampleSqlServer.AdministratorLogin,
Password = exampleSqlServer.AdministratorLoginPassword,
Database = exampleSqlDatabase.Name,
Table = "ExampleTable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.streamanalytics.StreamanalyticsFunctions;
import com.pulumi.azure.streamanalytics.inputs.GetJobArgs;
import com.pulumi.azurerm.sqlServer;
import com.pulumi.azurerm.SqlServerArgs;
import com.pulumi.azurerm.sqlDatabase;
import com.pulumi.azurerm.SqlDatabaseArgs;
import com.pulumi.azure.streamanalytics.OutputMssql;
import com.pulumi.azure.streamanalytics.OutputMssqlArgs;
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) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("rg-example")
.location("West Europe")
.build());
final var example = StreamanalyticsFunctions.getJob(GetJobArgs.builder()
.name("example-job")
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSqlServer = new SqlServer("exampleSqlServer", SqlServerArgs.builder()
.name("example-server")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.version("12.0")
.administratorLogin("dbadmin")
.administratorLoginPassword("example-password")
.build());
var exampleSqlDatabase = new SqlDatabase("exampleSqlDatabase", SqlDatabaseArgs.builder()
.name("exampledb")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.serverName(exampleSqlServer.name())
.requestedServiceObjectiveName("S0")
.collation("SQL_LATIN1_GENERAL_CP1_CI_AS")
.maxSizeBytes("268435456000")
.createMode("Default")
.build());
var exampleOutputMssql = new OutputMssql("exampleOutputMssql", OutputMssqlArgs.builder()
.name("example-output-sql")
.streamAnalyticsJobName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.name())))
.resourceGroupName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.resourceGroupName())))
.server(exampleSqlServer.fullyQualifiedDomainName())
.user(exampleSqlServer.administratorLogin())
.password(exampleSqlServer.administratorLoginPassword())
.database(exampleSqlDatabase.name())
.table("ExampleTable")
.build());
}
}
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
name: example
properties:
name: rg-example
location: West Europe
exampleSqlServer:
type: azurerm:sqlServer
name: example
properties:
name: example-server
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
version: '12.0'
administratorLogin: dbadmin
administratorLoginPassword: example-password
exampleSqlDatabase:
type: azurerm:sqlDatabase
name: example
properties:
name: exampledb
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
serverName: ${exampleSqlServer.name}
requestedServiceObjectiveName: S0
collation: SQL_LATIN1_GENERAL_CP1_CI_AS
maxSizeBytes: '268435456000'
createMode: Default
exampleOutputMssql:
type: azure:streamanalytics:OutputMssql
name: example
properties:
name: example-output-sql
streamAnalyticsJobName: ${example.name}
resourceGroupName: ${example.resourceGroupName}
server: ${exampleSqlServer.fullyQualifiedDomainName}
user: ${exampleSqlServer.administratorLogin}
password: ${exampleSqlServer.administratorLoginPassword}
database: ${exampleSqlDatabase.name}
table: ExampleTable
variables:
example:
fn::invoke:
Function: azure:streamanalytics:getJob
Arguments:
name: example-job
resourceGroupName: ${exampleResourceGroup.name}
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,
resource_group_name: Optional[str] = None,
server: Optional[str] = None,
stream_analytics_job_name: Optional[str] = None,
table: Optional[str] = None,
authentication_mode: Optional[str] = None,
max_batch_count: Optional[float] = None,
max_writer_count: Optional[float] = None,
name: Optional[str] = None,
password: Optional[str] = None,
user: 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",
ResourceGroupName = "string",
Server = "string",
StreamAnalyticsJobName = "string",
Table = "string",
AuthenticationMode = "string",
MaxBatchCount = 0,
MaxWriterCount = 0,
Name = "string",
Password = "string",
User = "string",
});
example, err := streamanalytics.NewOutputMssql(ctx, "outputMssqlResource", &streamanalytics.OutputMssqlArgs{
Database: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Server: pulumi.String("string"),
StreamAnalyticsJobName: pulumi.String("string"),
Table: pulumi.String("string"),
AuthenticationMode: pulumi.String("string"),
MaxBatchCount: pulumi.Float64(0),
MaxWriterCount: pulumi.Float64(0),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
User: pulumi.String("string"),
})
var outputMssqlResource = new OutputMssql("outputMssqlResource", OutputMssqlArgs.builder()
.database("string")
.resourceGroupName("string")
.server("string")
.streamAnalyticsJobName("string")
.table("string")
.authenticationMode("string")
.maxBatchCount(0)
.maxWriterCount(0)
.name("string")
.password("string")
.user("string")
.build());
output_mssql_resource = azure.streamanalytics.OutputMssql("outputMssqlResource",
database="string",
resource_group_name="string",
server="string",
stream_analytics_job_name="string",
table="string",
authentication_mode="string",
max_batch_count=0,
max_writer_count=0,
name="string",
password="string",
user="string")
const outputMssqlResource = new azure.streamanalytics.OutputMssql("outputMssqlResource", {
database: "string",
resourceGroupName: "string",
server: "string",
streamAnalyticsJobName: "string",
table: "string",
authenticationMode: "string",
maxBatchCount: 0,
maxWriterCount: 0,
name: "string",
password: "string",
user: "string",
});
type: azure:streamanalytics:OutputMssql
properties:
authenticationMode: string
database: string
maxBatchCount: 0
maxWriterCount: 0
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
The OutputMssql resource accepts the following input properties:
- Database string
- The MS SQL database name where the reference table exists. 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.
- Authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - Max
Batch doubleCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - Max
Writer doubleCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
- Database string
- The MS SQL database name where the reference table exists. 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.
- Authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - Max
Batch float64Count - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - Max
Writer float64Count - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - User string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
- database String
- The MS SQL database name where the reference table exists. 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.
- authentication
Mode String - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - max
Batch DoubleCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer DoubleCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
- database string
- The MS SQL database name where the reference table exists. 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.
- authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - max
Batch numberCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer numberCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - user string
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
- database str
- The MS SQL database name where the reference table exists. 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.
- authentication_
mode str - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - max_
batch_ floatcount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max_
writer_ floatcount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - user str
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
- database String
- The MS SQL database name where the reference table exists. 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.
- authentication
Mode String - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - max
Batch NumberCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer NumberCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - user String
- Username used to login to the Microsoft SQL Server. Changing this forces a new resource to be created. Required if
authentication_mode
isConnectionString
.
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,
authentication_mode: Optional[str] = None,
database: Optional[str] = None,
max_batch_count: Optional[float] = None,
max_writer_count: Optional[float] = 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) -> OutputMssql
func 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)
Resource lookup is not supported in YAML
- 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.
- Authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - Database string
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- Max
Batch doubleCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - Max
Writer doubleCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
- Authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - Database string
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- Max
Batch float64Count - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - Max
Writer float64Count - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
- authentication
Mode String - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - database String
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- max
Batch DoubleCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer DoubleCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
- authentication
Mode string - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - database string
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- max
Batch numberCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer numberCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
- authentication_
mode str - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - database str
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- max_
batch_ floatcount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max_
writer_ floatcount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
- authentication
Mode String - The authentication mode for the Stream Output. Possible values are
Msi
andConnectionString
. Defaults toConnectionString
. - database String
- The MS SQL database name where the reference table exists. Changing this forces a new resource to be created.
- max
Batch NumberCount - The max batch count to write to the SQL Database. Defaults to
10000
. Possible values are between1
and1073741824
. - max
Writer NumberCount - The max writer count for the SQL Database. Defaults to
1
. Possible values are0
which bases the writer count on the query partition and1
which corresponds to a single writer. - 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. Required if
authentication_mode
isConnectionString
. - 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. Required if
authentication_mode
isConnectionString
.
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
azurerm
Terraform Provider.