We recommend using Azure Native.
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]
`,
});
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]
""")
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
	})
}
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]
",
    });
});
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());
    }
}
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}
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 string
- The unique name of the resource.
- args ReferenceInputMssqlArgs
- 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 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 string
- The unique name of the resource.
- args ReferenceInputMssqlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReferenceInputMssqlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- The MS SQL database name where the reference data exists.
- FullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- Password string
- The password to connect to the MS SQL database.
- RefreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- ResourceGroup stringName 
- 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.
- StreamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Username string
- The username to connect to the MS SQL database.
- DeltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- Name string
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- RefreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- Table string
- The name of the table in the Azure SQL database.
- Database string
- The MS SQL database name where the reference data exists.
- FullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- Password string
- The password to connect to the MS SQL database.
- RefreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- ResourceGroup stringName 
- 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.
- StreamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Username string
- The username to connect to the MS SQL database.
- DeltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- Name string
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- RefreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- Table string
- The name of the table in the Azure SQL database.
- database String
- The MS SQL database name where the reference data exists.
- fullSnapshot StringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- password String
- The password to connect to the MS SQL database.
- refreshType String
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup StringName 
- 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.
- streamAnalytics StringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- username String
- The username to connect to the MS SQL database.
- deltaSnapshot StringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- name String
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- refreshInterval StringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- table String
- The name of the table in the Azure SQL database.
- database string
- The MS SQL database name where the reference data exists.
- fullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- password string
- The password to connect to the MS SQL database.
- refreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup stringName 
- 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.
- streamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- username string
- The username to connect to the MS SQL database.
- deltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- name string
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- refreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- table string
- The name of the table in the Azure SQL database.
- database str
- The MS SQL database name where the reference data exists.
- full_snapshot_ strquery 
- The query used to retrieve the reference data from the MS SQL database.
- password str
- The password to connect to the MS SQL database.
- refresh_type str
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resource_group_ strname 
- 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_ strjob_ name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- username str
- The username to connect to the MS SQL database.
- delta_snapshot_ strquery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- name str
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- refresh_interval_ strduration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- table str
- The name of the table in the Azure SQL database.
- database String
- The MS SQL database name where the reference data exists.
- fullSnapshot StringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- password String
- The password to connect to the MS SQL database.
- refreshType String
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup StringName 
- 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.
- streamAnalytics StringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- username String
- The username to connect to the MS SQL database.
- deltaSnapshot StringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- name String
- The name of the Reference Input MS SQL data. Changing this forces a new resource to be created.
- refreshInterval StringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- 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) -> ReferenceInputMssqlfunc 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
- 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
- The MS SQL database name where the reference data exists.
- DeltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- FullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- Name 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.
- RefreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- RefreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- ResourceGroup stringName 
- 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.
- StreamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table 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.
- DeltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- FullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- Name 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.
- RefreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- RefreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- ResourceGroup stringName 
- 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.
- StreamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- Table string
- The name of the table 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.
- deltaSnapshot StringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- fullSnapshot StringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- name 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.
- refreshInterval StringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- refreshType String
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup StringName 
- 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.
- streamAnalytics StringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table 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.
- deltaSnapshot stringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- fullSnapshot stringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- name 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.
- refreshInterval stringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- refreshType string
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup stringName 
- 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.
- streamAnalytics stringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table string
- The name of the table 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_ strquery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- full_snapshot_ strquery 
- The query used to retrieve the reference data from the MS SQL database.
- name 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_ strduration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- refresh_type str
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resource_group_ strname 
- 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_ strjob_ name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table str
- The name of the table 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.
- deltaSnapshot StringQuery 
- The query used to retrieve incremental changes in the reference data from the MS SQL database. Cannot be set when refresh_typeisStatic.
- fullSnapshot StringQuery 
- The query used to retrieve the reference data from the MS SQL database.
- name 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.
- refreshInterval StringDuration 
- The frequency in hh:mm:sswith which the reference data should be retrieved from the MS SQL database e.g.00:20:00for every 20 minutes. Must be set whenrefresh_typeisRefreshPeriodicallyWithFullorRefreshPeriodicallyWithDelta.
- refreshType String
- Defines whether and how the reference data should be refreshed. Accepted values are Static,RefreshPeriodicallyWithFullandRefreshPeriodicallyWithDelta.
- resourceGroup StringName 
- 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.
- streamAnalytics StringJob Name 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
- table String
- The name of the table 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
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.