1. Packages
  2. Azure Classic
  3. API Docs
  4. streamanalytics
  5. ReferenceInputMssql

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.streamanalytics.ReferenceInputMssql

Explore with Pulumi AI

Manages a Stream Analytics Reference Input from MS SQL. Reference data (also known as a lookup table) is a finite data set that is static or slowly changing in nature, used to perform a lookup or to correlate with your data stream. Learn more here.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const example = azure.streamanalytics.getJobOutput({
    name: "example-job",
    resourceGroupName: exampleResourceGroup.name,
});
const exampleServer = new azure.mssql.Server("example", {
    name: "example-sqlserver",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    version: "12.0",
    administratorLogin: "admin",
    administratorLoginPassword: "password",
});
const exampleDatabase = new azure.mssql.Database("example", {
    name: "example-db",
    serverId: exampleServer.id,
});
const exampleReferenceInputMssql = new azure.streamanalytics.ReferenceInputMssql("example", {
    name: "example-reference-input",
    resourceGroupName: example.apply(example => example.resourceGroupName),
    streamAnalyticsJobName: example.apply(example => example.name),
    server: exampleServer.fullyQualifiedDomainName,
    database: exampleDatabase.name,
    username: "exampleuser",
    password: "examplepassword",
    refreshType: "RefreshPeriodicallyWithFull",
    refreshIntervalDuration: "00:20:00",
    fullSnapshotQuery: `    SELECT *
    INTO [YourOutputAlias]
    FROM [YourInputAlias]
`,
});
Copy
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example = azure.streamanalytics.get_job_output(name="example-job",
    resource_group_name=example_resource_group.name)
example_server = azure.mssql.Server("example",
    name="example-sqlserver",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    version="12.0",
    administrator_login="admin",
    administrator_login_password="password")
example_database = azure.mssql.Database("example",
    name="example-db",
    server_id=example_server.id)
example_reference_input_mssql = azure.streamanalytics.ReferenceInputMssql("example",
    name="example-reference-input",
    resource_group_name=example.resource_group_name,
    stream_analytics_job_name=example.name,
    server=example_server.fully_qualified_domain_name,
    database=example_database.name,
    username="exampleuser",
    password="examplepassword",
    refresh_type="RefreshPeriodicallyWithFull",
    refresh_interval_duration="00:20:00",
    full_snapshot_query="""    SELECT *
    INTO [YourOutputAlias]
    FROM [YourInputAlias]
""")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mssql"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/streamanalytics"
	"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("example-resources"),
			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)
		exampleServer, err := mssql.NewServer(ctx, "example", &mssql.ServerArgs{
			Name:                       pulumi.String("example-sqlserver"),
			ResourceGroupName:          exampleResourceGroup.Name,
			Location:                   exampleResourceGroup.Location,
			Version:                    pulumi.String("12.0"),
			AdministratorLogin:         pulumi.String("admin"),
			AdministratorLoginPassword: pulumi.String("password"),
		})
		if err != nil {
			return err
		}
		exampleDatabase, err := mssql.NewDatabase(ctx, "example", &mssql.DatabaseArgs{
			Name:     pulumi.String("example-db"),
			ServerId: exampleServer.ID(),
		})
		if err != nil {
			return err
		}
		_, err = streamanalytics.NewReferenceInputMssql(ctx, "example", &streamanalytics.ReferenceInputMssqlArgs{
			Name: pulumi.String("example-reference-input"),
			ResourceGroupName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
				return &example.ResourceGroupName, nil
			}).(pulumi.StringPtrOutput)),
			StreamAnalyticsJobName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
				return &example.Name, nil
			}).(pulumi.StringPtrOutput)),
			Server:                  exampleServer.FullyQualifiedDomainName,
			Database:                exampleDatabase.Name,
			Username:                pulumi.String("exampleuser"),
			Password:                pulumi.String("examplepassword"),
			RefreshType:             pulumi.String("RefreshPeriodicallyWithFull"),
			RefreshIntervalDuration: pulumi.String("00:20:00"),
			FullSnapshotQuery:       pulumi.String("    SELECT *\n    INTO [YourOutputAlias]\n    FROM [YourInputAlias]\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var example = Azure.StreamAnalytics.GetJob.Invoke(new()
    {
        Name = "example-job",
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleServer = new Azure.MSSql.Server("example", new()
    {
        Name = "example-sqlserver",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Version = "12.0",
        AdministratorLogin = "admin",
        AdministratorLoginPassword = "password",
    });

    var exampleDatabase = new Azure.MSSql.Database("example", new()
    {
        Name = "example-db",
        ServerId = exampleServer.Id,
    });

    var exampleReferenceInputMssql = new Azure.StreamAnalytics.ReferenceInputMssql("example", new()
    {
        Name = "example-reference-input",
        ResourceGroupName = example.Apply(getJobResult => getJobResult.ResourceGroupName),
        StreamAnalyticsJobName = example.Apply(getJobResult => getJobResult.Name),
        Server = exampleServer.FullyQualifiedDomainName,
        Database = exampleDatabase.Name,
        Username = "exampleuser",
        Password = "examplepassword",
        RefreshType = "RefreshPeriodicallyWithFull",
        RefreshIntervalDuration = "00:20:00",
        FullSnapshotQuery = @"    SELECT *
    INTO [YourOutputAlias]
    FROM [YourInputAlias]
",
    });

});
Copy
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.azure.mssql.Server;
import com.pulumi.azure.mssql.ServerArgs;
import com.pulumi.azure.mssql.Database;
import com.pulumi.azure.mssql.DatabaseArgs;
import com.pulumi.azure.streamanalytics.ReferenceInputMssql;
import com.pulumi.azure.streamanalytics.ReferenceInputMssqlArgs;
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("example-resources")
            .location("West Europe")
            .build());

        final var example = StreamanalyticsFunctions.getJob(GetJobArgs.builder()
            .name("example-job")
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleServer = new Server("exampleServer", ServerArgs.builder()
            .name("example-sqlserver")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .version("12.0")
            .administratorLogin("admin")
            .administratorLoginPassword("password")
            .build());

        var exampleDatabase = new Database("exampleDatabase", DatabaseArgs.builder()
            .name("example-db")
            .serverId(exampleServer.id())
            .build());

        var exampleReferenceInputMssql = new ReferenceInputMssql("exampleReferenceInputMssql", ReferenceInputMssqlArgs.builder()
            .name("example-reference-input")
            .resourceGroupName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.resourceGroupName())))
            .streamAnalyticsJobName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.name())))
            .server(exampleServer.fullyQualifiedDomainName())
            .database(exampleDatabase.name())
            .username("exampleuser")
            .password("examplepassword")
            .refreshType("RefreshPeriodicallyWithFull")
            .refreshIntervalDuration("00:20:00")
            .fullSnapshotQuery("""
    SELECT *
    INTO [YourOutputAlias]
    FROM [YourInputAlias]
            """)
            .build());

    }
}
Copy
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: example-resources
      location: West Europe
  exampleServer:
    type: azure:mssql:Server
    name: example
    properties:
      name: example-sqlserver
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      version: '12.0'
      administratorLogin: admin
      administratorLoginPassword: password
  exampleDatabase:
    type: azure:mssql:Database
    name: example
    properties:
      name: example-db
      serverId: ${exampleServer.id}
  exampleReferenceInputMssql:
    type: azure:streamanalytics:ReferenceInputMssql
    name: example
    properties:
      name: example-reference-input
      resourceGroupName: ${example.resourceGroupName}
      streamAnalyticsJobName: ${example.name}
      server: ${exampleServer.fullyQualifiedDomainName}
      database: ${exampleDatabase.name}
      username: exampleuser
      password: examplepassword
      refreshType: RefreshPeriodicallyWithFull
      refreshIntervalDuration: 00:20:00
      fullSnapshotQuery: |2
            SELECT *
            INTO [YourOutputAlias]
            FROM [YourInputAlias]
variables:
  example:
    fn::invoke:
      function: azure:streamanalytics:getJob
      arguments:
        name: example-job
        resourceGroupName: ${exampleResourceGroup.name}
Copy

Create ReferenceInputMssql Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ReferenceInputMssql(name: string, args: ReferenceInputMssqlArgs, opts?: CustomResourceOptions);
@overload
def ReferenceInputMssql(resource_name: str,
                        args: ReferenceInputMssqlArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def ReferenceInputMssql(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        database: Optional[str] = None,
                        full_snapshot_query: Optional[str] = None,
                        password: Optional[str] = None,
                        refresh_type: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        server: Optional[str] = None,
                        stream_analytics_job_name: Optional[str] = None,
                        username: Optional[str] = None,
                        delta_snapshot_query: Optional[str] = None,
                        name: Optional[str] = None,
                        refresh_interval_duration: Optional[str] = None,
                        table: Optional[str] = None)
func NewReferenceInputMssql(ctx *Context, name string, args ReferenceInputMssqlArgs, opts ...ResourceOption) (*ReferenceInputMssql, error)
public ReferenceInputMssql(string name, ReferenceInputMssqlArgs args, CustomResourceOptions? opts = null)
public ReferenceInputMssql(String name, ReferenceInputMssqlArgs args)
public ReferenceInputMssql(String name, ReferenceInputMssqlArgs args, CustomResourceOptions options)
type: azure:streamanalytics:ReferenceInputMssql
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ReferenceInputMssqlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ReferenceInputMssqlArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ReferenceInputMssqlArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ReferenceInputMssqlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ReferenceInputMssqlArgs
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 referenceInputMssqlResource = new Azure.StreamAnalytics.ReferenceInputMssql("referenceInputMssqlResource", new()
{
    Database = "string",
    FullSnapshotQuery = "string",
    Password = "string",
    RefreshType = "string",
    ResourceGroupName = "string",
    Server = "string",
    StreamAnalyticsJobName = "string",
    Username = "string",
    DeltaSnapshotQuery = "string",
    Name = "string",
    RefreshIntervalDuration = "string",
    Table = "string",
});
Copy
example, err := streamanalytics.NewReferenceInputMssql(ctx, "referenceInputMssqlResource", &streamanalytics.ReferenceInputMssqlArgs{
	Database:                pulumi.String("string"),
	FullSnapshotQuery:       pulumi.String("string"),
	Password:                pulumi.String("string"),
	RefreshType:             pulumi.String("string"),
	ResourceGroupName:       pulumi.String("string"),
	Server:                  pulumi.String("string"),
	StreamAnalyticsJobName:  pulumi.String("string"),
	Username:                pulumi.String("string"),
	DeltaSnapshotQuery:      pulumi.String("string"),
	Name:                    pulumi.String("string"),
	RefreshIntervalDuration: pulumi.String("string"),
	Table:                   pulumi.String("string"),
})
Copy
var referenceInputMssqlResource = new ReferenceInputMssql("referenceInputMssqlResource", ReferenceInputMssqlArgs.builder()
    .database("string")
    .fullSnapshotQuery("string")
    .password("string")
    .refreshType("string")
    .resourceGroupName("string")
    .server("string")
    .streamAnalyticsJobName("string")
    .username("string")
    .deltaSnapshotQuery("string")
    .name("string")
    .refreshIntervalDuration("string")
    .table("string")
    .build());
Copy
reference_input_mssql_resource = azure.streamanalytics.ReferenceInputMssql("referenceInputMssqlResource",
    database="string",
    full_snapshot_query="string",
    password="string",
    refresh_type="string",
    resource_group_name="string",
    server="string",
    stream_analytics_job_name="string",
    username="string",
    delta_snapshot_query="string",
    name="string",
    refresh_interval_duration="string",
    table="string")
Copy
const referenceInputMssqlResource = new azure.streamanalytics.ReferenceInputMssql("referenceInputMssqlResource", {
    database: "string",
    fullSnapshotQuery: "string",
    password: "string",
    refreshType: "string",
    resourceGroupName: "string",
    server: "string",
    streamAnalyticsJobName: "string",
    username: "string",
    deltaSnapshotQuery: "string",
    name: "string",
    refreshIntervalDuration: "string",
    table: "string",
});
Copy
type: azure:streamanalytics:ReferenceInputMssql
properties:
    database: string
    deltaSnapshotQuery: string
    fullSnapshotQuery: string
    name: string
    password: string
    refreshIntervalDuration: string
    refreshType: string
    resourceGroupName: string
    server: string
    streamAnalyticsJobName: string
    table: string
    username: string
Copy

ReferenceInputMssql 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 ReferenceInputMssql resource accepts the following input properties:

Database This property is required. string
The MS SQL database name where the reference data exists.
FullSnapshotQuery This property is required. string
The query used to retrieve the reference data from the MS SQL database.
Password This property is required. string
The password to connect to the MS SQL database.
RefreshType This property is required. string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
Server This property is required. string
The fully qualified domain name of the MS SQL server.
StreamAnalyticsJobName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
Username This property is required. string
The username to connect to the MS SQL database.
DeltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
Name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
RefreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
Table string
The name of the table in the Azure SQL database.
Database This property is required. string
The MS SQL database name where the reference data exists.
FullSnapshotQuery This property is required. string
The query used to retrieve the reference data from the MS SQL database.
Password This property is required. string
The password to connect to the MS SQL database.
RefreshType This property is required. string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
Server This property is required. string
The fully qualified domain name of the MS SQL server.
StreamAnalyticsJobName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
Username This property is required. string
The username to connect to the MS SQL database.
DeltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
Name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
RefreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
Table string
The name of the table in the Azure SQL database.
database This property is required. String
The MS SQL database name where the reference data exists.
fullSnapshotQuery This property is required. String
The query used to retrieve the reference data from the MS SQL database.
password This property is required. String
The password to connect to the MS SQL database.
refreshType This property is required. String
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server This property is required. String
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
username This property is required. String
The username to connect to the MS SQL database.
deltaSnapshotQuery String
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
name Changes to this property will trigger replacement. String
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
refreshIntervalDuration String
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
table String
The name of the table in the Azure SQL database.
database This property is required. string
The MS SQL database name where the reference data exists.
fullSnapshotQuery This property is required. string
The query used to retrieve the reference data from the MS SQL database.
password This property is required. string
The password to connect to the MS SQL database.
refreshType This property is required. string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server This property is required. string
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
username This property is required. string
The username to connect to the MS SQL database.
deltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
refreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
table string
The name of the table in the Azure SQL database.
database This property is required. str
The MS SQL database name where the reference data exists.
full_snapshot_query This property is required. str
The query used to retrieve the reference data from the MS SQL database.
password This property is required. str
The password to connect to the MS SQL database.
refresh_type This property is required. str
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server This property is required. str
The fully qualified domain name of the MS SQL server.
stream_analytics_job_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
username This property is required. str
The username to connect to the MS SQL database.
delta_snapshot_query str
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
name Changes to this property will trigger replacement. str
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
refresh_interval_duration str
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
table str
The name of the table in the Azure SQL database.
database This property is required. String
The MS SQL database name where the reference data exists.
fullSnapshotQuery This property is required. String
The query used to retrieve the reference data from the MS SQL database.
password This property is required. String
The password to connect to the MS SQL database.
refreshType This property is required. String
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server This property is required. String
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
username This property is required. String
The username to connect to the MS SQL database.
deltaSnapshotQuery String
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
name Changes to this property will trigger replacement. String
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
refreshIntervalDuration String
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
table String
The name of the table in the Azure SQL database.

Outputs

All input properties are implicitly available as output properties. Additionally, the ReferenceInputMssql 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 ReferenceInputMssql Resource

Get an existing ReferenceInputMssql 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?: ReferenceInputMssqlState, opts?: CustomResourceOptions): ReferenceInputMssql
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        database: Optional[str] = None,
        delta_snapshot_query: Optional[str] = None,
        full_snapshot_query: Optional[str] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        refresh_interval_duration: Optional[str] = None,
        refresh_type: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        server: Optional[str] = None,
        stream_analytics_job_name: Optional[str] = None,
        table: Optional[str] = None,
        username: Optional[str] = None) -> ReferenceInputMssql
func GetReferenceInputMssql(ctx *Context, name string, id IDInput, state *ReferenceInputMssqlState, opts ...ResourceOption) (*ReferenceInputMssql, error)
public static ReferenceInputMssql Get(string name, Input<string> id, ReferenceInputMssqlState? state, CustomResourceOptions? opts = null)
public static ReferenceInputMssql get(String name, Output<String> id, ReferenceInputMssqlState state, CustomResourceOptions options)
resources:  _:    type: azure:streamanalytics:ReferenceInputMssql    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Database string
The MS SQL database name where the reference data exists.
DeltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
FullSnapshotQuery string
The query used to retrieve the reference data from the MS SQL database.
Name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
Password string
The password to connect to the MS SQL database.
RefreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
RefreshType string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
Server string
The fully qualified domain name of the MS SQL server.
StreamAnalyticsJobName Changes to this property will trigger replacement. string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
Table string
The name of the table in the Azure SQL database.
Username string
The username to connect to the MS SQL database.
Database string
The MS SQL database name where the reference data exists.
DeltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
FullSnapshotQuery string
The query used to retrieve the reference data from the MS SQL database.
Name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
Password string
The password to connect to the MS SQL database.
RefreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
RefreshType string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
Server string
The fully qualified domain name of the MS SQL server.
StreamAnalyticsJobName Changes to this property will trigger replacement. string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
Table string
The name of the table in the Azure SQL database.
Username string
The username to connect to the MS SQL database.
database String
The MS SQL database name where the reference data exists.
deltaSnapshotQuery String
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
fullSnapshotQuery String
The query used to retrieve the reference data from the MS SQL database.
name Changes to this property will trigger replacement. String
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
password String
The password to connect to the MS SQL database.
refreshIntervalDuration String
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
refreshType String
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server String
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName Changes to this property will trigger replacement. String
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
table String
The name of the table in the Azure SQL database.
username String
The username to connect to the MS SQL database.
database string
The MS SQL database name where the reference data exists.
deltaSnapshotQuery string
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
fullSnapshotQuery string
The query used to retrieve the reference data from the MS SQL database.
name Changes to this property will trigger replacement. string
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
password string
The password to connect to the MS SQL database.
refreshIntervalDuration string
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
refreshType string
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server string
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName Changes to this property will trigger replacement. string
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
table string
The name of the table in the Azure SQL database.
username string
The username to connect to the MS SQL database.
database str
The MS SQL database name where the reference data exists.
delta_snapshot_query str
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
full_snapshot_query str
The query used to retrieve the reference data from the MS SQL database.
name Changes to this property will trigger replacement. str
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
password str
The password to connect to the MS SQL database.
refresh_interval_duration str
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
refresh_type str
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resource_group_name Changes to this property will trigger replacement. str
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server str
The fully qualified domain name of the MS SQL server.
stream_analytics_job_name Changes to this property will trigger replacement. str
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
table str
The name of the table in the Azure SQL database.
username str
The username to connect to the MS SQL database.
database String
The MS SQL database name where the reference data exists.
deltaSnapshotQuery String
The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_type is Static.
fullSnapshotQuery String
The query used to retrieve the reference data from the MS SQL database.
name Changes to this property will trigger replacement. String
The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
password String
The password to connect to the MS SQL database.
refreshIntervalDuration String
The frequency in hh:mm:ss with which the reference data should be retrieved from the MS SQL database e.g. 00:20:00 for every 20 minutes. Must be set when refresh_type is RefreshPeriodicallyWithFull or RefreshPeriodicallyWithDelta.
refreshType String
Defines whether and how the reference data should be refreshed. Accepted values are Static, RefreshPeriodicallyWithFull and RefreshPeriodicallyWithDelta.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
server String
The fully qualified domain name of the MS SQL server.
streamAnalyticsJobName Changes to this property will trigger replacement. String
The name of the Stream Analytics Job. Changing this forces a new resource to be created.
table String
The name of the table in the Azure SQL database.
username String
The username to connect to the MS SQL database.

Import

Stream Analytics can be imported using the resource id, e.g.

$ pulumi import azure:streamanalytics/referenceInputMssql:ReferenceInputMssql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/inputs/input1
Copy

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.