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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.streamanalytics.OutputSynapse

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Stream Analytics Output to an Azure Synapse Analytics Workspace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    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 exampleAccount = new azure.storage.Account("example", {
        name: "examplestorageacc",
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
        accountKind: "StorageV2",
        isHnsEnabled: true,
    });
    const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", {
        name: "example",
        storageAccountId: exampleAccount.id,
    });
    const exampleWorkspace = new azure.synapse.Workspace("example", {
        name: "example",
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id,
        sqlAdministratorLogin: "sqladminuser",
        sqlAdministratorLoginPassword: "H@Sh1CoR3!",
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleOutputSynapse = new azure.streamanalytics.OutputSynapse("example", {
        name: "example-output-synapse",
        streamAnalyticsJobName: example.apply(example => example.name),
        resourceGroupName: example.apply(example => example.resourceGroupName),
        server: exampleWorkspace.connectivityEndpoints.sqlOnDemand,
        user: exampleWorkspace.sqlAdministratorLogin,
        password: exampleWorkspace.sqlAdministratorLoginPassword,
        database: "master",
        table: "ExampleTable",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    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_account = azure.storage.Account("example",
        name="examplestorageacc",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        account_tier="Standard",
        account_replication_type="LRS",
        account_kind="StorageV2",
        is_hns_enabled=True)
    example_data_lake_gen2_filesystem = azure.storage.DataLakeGen2Filesystem("example",
        name="example",
        storage_account_id=example_account.id)
    example_workspace = azure.synapse.Workspace("example",
        name="example",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        storage_data_lake_gen2_filesystem_id=example_data_lake_gen2_filesystem.id,
        sql_administrator_login="sqladminuser",
        sql_administrator_login_password="H@Sh1CoR3!",
        identity=azure.synapse.WorkspaceIdentityArgs(
            type="SystemAssigned",
        ))
    example_output_synapse = azure.streamanalytics.OutputSynapse("example",
        name="example-output-synapse",
        stream_analytics_job_name=example.name,
        resource_group_name=example.resource_group_name,
        server=example_workspace.connectivity_endpoints["sqlOnDemand"],
        user=example_workspace.sql_administrator_login,
        password=example_workspace.sql_administrator_login_password,
        database="master",
        table="ExampleTable")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/streamanalytics"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/synapse"
    	"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)
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplestorageacc"),
    			ResourceGroupName:      exampleResourceGroup.Name,
    			Location:               exampleResourceGroup.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    			AccountKind:            pulumi.String("StorageV2"),
    			IsHnsEnabled:           pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleDataLakeGen2Filesystem, err := storage.NewDataLakeGen2Filesystem(ctx, "example", &storage.DataLakeGen2FilesystemArgs{
    			Name:             pulumi.String("example"),
    			StorageAccountId: exampleAccount.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleWorkspace, err := synapse.NewWorkspace(ctx, "example", &synapse.WorkspaceArgs{
    			Name:                            pulumi.String("example"),
    			ResourceGroupName:               exampleResourceGroup.Name,
    			Location:                        exampleResourceGroup.Location,
    			StorageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.ID(),
    			SqlAdministratorLogin:           pulumi.String("sqladminuser"),
    			SqlAdministratorLoginPassword:   pulumi.String("H@Sh1CoR3!"),
    			Identity: &synapse.WorkspaceIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = streamanalytics.NewOutputSynapse(ctx, "example", &streamanalytics.OutputSynapseArgs{
    			Name: pulumi.String("example-output-synapse"),
    			StreamAnalyticsJobName: example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
    				return &example.Name, nil
    			}).(pulumi.StringPtrOutput),
    			ResourceGroupName: example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
    				return &example.ResourceGroupName, nil
    			}).(pulumi.StringPtrOutput),
    			Server: exampleWorkspace.ConnectivityEndpoints.ApplyT(func(connectivityEndpoints map[string]string) (string, error) {
    				return connectivityEndpoints.SqlOnDemand, nil
    			}).(pulumi.StringOutput),
    			User:     exampleWorkspace.SqlAdministratorLogin,
    			Password: exampleWorkspace.SqlAdministratorLoginPassword,
    			Database: pulumi.String("master"),
    			Table:    pulumi.String("ExampleTable"),
    		})
    		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 = "rg-example",
            Location = "West Europe",
        });
    
        var example = Azure.StreamAnalytics.GetJob.Invoke(new()
        {
            Name = "example-job",
            ResourceGroupName = exampleResourceGroup.Name,
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestorageacc",
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
            AccountKind = "StorageV2",
            IsHnsEnabled = true,
        });
    
        var exampleDataLakeGen2Filesystem = new Azure.Storage.DataLakeGen2Filesystem("example", new()
        {
            Name = "example",
            StorageAccountId = exampleAccount.Id,
        });
    
        var exampleWorkspace = new Azure.Synapse.Workspace("example", new()
        {
            Name = "example",
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            StorageDataLakeGen2FilesystemId = exampleDataLakeGen2Filesystem.Id,
            SqlAdministratorLogin = "sqladminuser",
            SqlAdministratorLoginPassword = "H@Sh1CoR3!",
            Identity = new Azure.Synapse.Inputs.WorkspaceIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleOutputSynapse = new Azure.StreamAnalytics.OutputSynapse("example", new()
        {
            Name = "example-output-synapse",
            StreamAnalyticsJobName = example.Apply(getJobResult => getJobResult.Name),
            ResourceGroupName = example.Apply(getJobResult => getJobResult.ResourceGroupName),
            Server = exampleWorkspace.ConnectivityEndpoints.Apply(connectivityEndpoints => connectivityEndpoints.SqlOnDemand),
            User = exampleWorkspace.SqlAdministratorLogin,
            Password = exampleWorkspace.SqlAdministratorLoginPassword,
            Database = "master",
            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.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.DataLakeGen2Filesystem;
    import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
    import com.pulumi.azure.synapse.Workspace;
    import com.pulumi.azure.synapse.WorkspaceArgs;
    import com.pulumi.azure.synapse.inputs.WorkspaceIdentityArgs;
    import com.pulumi.azure.streamanalytics.OutputSynapse;
    import com.pulumi.azure.streamanalytics.OutputSynapseArgs;
    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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("examplestorageacc")
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .accountKind("StorageV2")
                .isHnsEnabled("true")
                .build());
    
            var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()
                .name("example")
                .storageAccountId(exampleAccount.id())
                .build());
    
            var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
                .name("example")
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .storageDataLakeGen2FilesystemId(exampleDataLakeGen2Filesystem.id())
                .sqlAdministratorLogin("sqladminuser")
                .sqlAdministratorLoginPassword("H@Sh1CoR3!")
                .identity(WorkspaceIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleOutputSynapse = new OutputSynapse("exampleOutputSynapse", OutputSynapseArgs.builder()
                .name("example-output-synapse")
                .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(exampleWorkspace.connectivityEndpoints().applyValue(connectivityEndpoints -> connectivityEndpoints.sqlOnDemand()))
                .user(exampleWorkspace.sqlAdministratorLogin())
                .password(exampleWorkspace.sqlAdministratorLoginPassword())
                .database("master")
                .table("ExampleTable")
                .build());
    
        }
    }
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        name: example
        properties:
          name: rg-example
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestorageacc
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          accountTier: Standard
          accountReplicationType: LRS
          accountKind: StorageV2
          isHnsEnabled: 'true'
      exampleDataLakeGen2Filesystem:
        type: azure:storage:DataLakeGen2Filesystem
        name: example
        properties:
          name: example
          storageAccountId: ${exampleAccount.id}
      exampleWorkspace:
        type: azure:synapse:Workspace
        name: example
        properties:
          name: example
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          storageDataLakeGen2FilesystemId: ${exampleDataLakeGen2Filesystem.id}
          sqlAdministratorLogin: sqladminuser
          sqlAdministratorLoginPassword: H@Sh1CoR3!
          identity:
            type: SystemAssigned
      exampleOutputSynapse:
        type: azure:streamanalytics:OutputSynapse
        name: example
        properties:
          name: example-output-synapse
          streamAnalyticsJobName: ${example.name}
          resourceGroupName: ${example.resourceGroupName}
          server: ${exampleWorkspace.connectivityEndpoints.sqlOnDemand}
          user: ${exampleWorkspace.sqlAdministratorLogin}
          password: ${exampleWorkspace.sqlAdministratorLoginPassword}
          database: master
          table: ExampleTable
    variables:
      example:
        fn::invoke:
          Function: azure:streamanalytics:getJob
          Arguments:
            name: example-job
            resourceGroupName: ${exampleResourceGroup.name}
    

    Create OutputSynapse Resource

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

    Constructor syntax

    new OutputSynapse(name: string, args: OutputSynapseArgs, opts?: CustomResourceOptions);
    @overload
    def OutputSynapse(resource_name: str,
                      args: OutputSynapseArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def OutputSynapse(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      database: Optional[str] = None,
                      password: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      server: Optional[str] = None,
                      stream_analytics_job_name: Optional[str] = None,
                      table: Optional[str] = None,
                      user: Optional[str] = None,
                      name: Optional[str] = None)
    func NewOutputSynapse(ctx *Context, name string, args OutputSynapseArgs, opts ...ResourceOption) (*OutputSynapse, error)
    public OutputSynapse(string name, OutputSynapseArgs args, CustomResourceOptions? opts = null)
    public OutputSynapse(String name, OutputSynapseArgs args)
    public OutputSynapse(String name, OutputSynapseArgs args, CustomResourceOptions options)
    
    type: azure:streamanalytics:OutputSynapse
    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 OutputSynapseArgs
    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 OutputSynapseArgs
    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 OutputSynapseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OutputSynapseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OutputSynapseArgs
    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 outputSynapseResource = new Azure.StreamAnalytics.OutputSynapse("outputSynapseResource", new()
    {
        Database = "string",
        Password = "string",
        ResourceGroupName = "string",
        Server = "string",
        StreamAnalyticsJobName = "string",
        Table = "string",
        User = "string",
        Name = "string",
    });
    
    example, err := streamanalytics.NewOutputSynapse(ctx, "outputSynapseResource", &streamanalytics.OutputSynapseArgs{
    	Database:               pulumi.String("string"),
    	Password:               pulumi.String("string"),
    	ResourceGroupName:      pulumi.String("string"),
    	Server:                 pulumi.String("string"),
    	StreamAnalyticsJobName: pulumi.String("string"),
    	Table:                  pulumi.String("string"),
    	User:                   pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    })
    
    var outputSynapseResource = new OutputSynapse("outputSynapseResource", OutputSynapseArgs.builder()
        .database("string")
        .password("string")
        .resourceGroupName("string")
        .server("string")
        .streamAnalyticsJobName("string")
        .table("string")
        .user("string")
        .name("string")
        .build());
    
    output_synapse_resource = azure.streamanalytics.OutputSynapse("outputSynapseResource",
        database="string",
        password="string",
        resource_group_name="string",
        server="string",
        stream_analytics_job_name="string",
        table="string",
        user="string",
        name="string")
    
    const outputSynapseResource = new azure.streamanalytics.OutputSynapse("outputSynapseResource", {
        database: "string",
        password: "string",
        resourceGroupName: "string",
        server: "string",
        streamAnalyticsJobName: "string",
        table: "string",
        user: "string",
        name: "string",
    });
    
    type: azure:streamanalytics:OutputSynapse
    properties:
        database: string
        name: string
        password: string
        resourceGroupName: string
        server: string
        streamAnalyticsJobName: string
        table: string
        user: string
    

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

    Database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    Password string
    The password that will be used to connect to the Azure SQL database.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    StreamAnalyticsJobName 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. Changing this forces a new resource to be created.
    User string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    Database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    Password string
    The password that will be used to connect to the Azure SQL database.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    StreamAnalyticsJobName 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. Changing this forces a new resource to be created.
    User string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    database String
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    password String
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server String
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user String
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    password string
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    database str
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    password str
    The password that will be used to connect to the Azure SQL database.
    resource_group_name str
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server str
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    stream_analytics_job_name 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. Changing this forces a new resource to be created.
    user str
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    name str
    The name of the Stream Output. Changing this forces a new resource to be created.
    database String
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    password String
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server String
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user String
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.

    Outputs

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

    Get an existing OutputSynapse 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?: OutputSynapseState, opts?: CustomResourceOptions): OutputSynapse
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            server: Optional[str] = None,
            stream_analytics_job_name: Optional[str] = None,
            table: Optional[str] = None,
            user: Optional[str] = None) -> OutputSynapse
    func GetOutputSynapse(ctx *Context, name string, id IDInput, state *OutputSynapseState, opts ...ResourceOption) (*OutputSynapse, error)
    public static OutputSynapse Get(string name, Input<string> id, OutputSynapseState? state, CustomResourceOptions? opts = null)
    public static OutputSynapse get(String name, Output<String> id, OutputSynapseState 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.
    The following state arguments are supported:
    Database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    Password string
    The password that will be used to connect to the Azure SQL database.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    StreamAnalyticsJobName 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. Changing this forces a new resource to be created.
    User string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    Database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    Password string
    The password that will be used to connect to the Azure SQL database.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    StreamAnalyticsJobName 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. Changing this forces a new resource to be created.
    User string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    database String
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    password String
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server String
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user String
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    database string
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    password string
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server string
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user string
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    database str
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    name str
    The name of the Stream Output. Changing this forces a new resource to be created.
    password str
    The password that will be used to connect to the Azure SQL database.
    resource_group_name str
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server str
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    stream_analytics_job_name 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. Changing this forces a new resource to be created.
    user str
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.
    database String
    The name of the Azure SQL database. Changing this forces a new resource to be created.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    password String
    The password that will be used to connect to the Azure SQL database.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    server String
    The name of the SQL server containing the Azure SQL database. Changing this forces a new resource to be created.
    streamAnalyticsJobName 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. Changing this forces a new resource to be created.
    user String
    The user name that will be used to connect to the Azure SQL database. Changing this forces a new resource to be created.

    Import

    A Stream Analytics Output to an Azure Synapse Analytics Workspace can be imported using the resource id, e.g.

    $ pulumi import azure:streamanalytics/outputSynapse:OutputSynapse 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.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi