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

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.streamanalytics.OutputEventHub

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Manages a Stream Analytics Output to an EventHub.

    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 exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", {
        name: "example-ehnamespace",
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        sku: "Standard",
        capacity: 1,
    });
    const exampleEventHub = new azure.eventhub.EventHub("example", {
        name: "example-eventhub",
        namespaceName: exampleEventHubNamespace.name,
        resourceGroupName: exampleResourceGroup.name,
        partitionCount: 2,
        messageRetention: 1,
    });
    const exampleOutputEventHub = new azure.streamanalytics.OutputEventHub("example", {
        name: "output-to-eventhub",
        streamAnalyticsJobName: example.apply(example => example.name),
        resourceGroupName: example.apply(example => example.resourceGroupName),
        eventhubName: exampleEventHub.name,
        servicebusNamespace: exampleEventHubNamespace.name,
        sharedAccessPolicyKey: exampleEventHubNamespace.defaultPrimaryKey,
        sharedAccessPolicyName: "RootManageSharedAccessKey",
        serialization: {
            type: "Avro",
        },
    });
    
    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_event_hub_namespace = azure.eventhub.EventHubNamespace("example",
        name="example-ehnamespace",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        sku="Standard",
        capacity=1)
    example_event_hub = azure.eventhub.EventHub("example",
        name="example-eventhub",
        namespace_name=example_event_hub_namespace.name,
        resource_group_name=example_resource_group.name,
        partition_count=2,
        message_retention=1)
    example_output_event_hub = azure.streamanalytics.OutputEventHub("example",
        name="output-to-eventhub",
        stream_analytics_job_name=example.name,
        resource_group_name=example.resource_group_name,
        eventhub_name=example_event_hub.name,
        servicebus_namespace=example_event_hub_namespace.name,
        shared_access_policy_key=example_event_hub_namespace.default_primary_key,
        shared_access_policy_name="RootManageSharedAccessKey",
        serialization=azure.streamanalytics.OutputEventHubSerializationArgs(
            type="Avro",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventhub"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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("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)
    		exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{
    			Name:              pulumi.String("example-ehnamespace"),
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Sku:               pulumi.String("Standard"),
    			Capacity:          pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEventHub, err := eventhub.NewEventHub(ctx, "example", &eventhub.EventHubArgs{
    			Name:              pulumi.String("example-eventhub"),
    			NamespaceName:     exampleEventHubNamespace.Name,
    			ResourceGroupName: exampleResourceGroup.Name,
    			PartitionCount:    pulumi.Int(2),
    			MessageRetention:  pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = streamanalytics.NewOutputEventHub(ctx, "example", &streamanalytics.OutputEventHubArgs{
    			Name: pulumi.String("output-to-eventhub"),
    			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),
    			EventhubName:           exampleEventHub.Name,
    			ServicebusNamespace:    exampleEventHubNamespace.Name,
    			SharedAccessPolicyKey:  exampleEventHubNamespace.DefaultPrimaryKey,
    			SharedAccessPolicyName: pulumi.String("RootManageSharedAccessKey"),
    			Serialization: &streamanalytics.OutputEventHubSerializationArgs{
    				Type: pulumi.String("Avro"),
    			},
    		})
    		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 exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("example", new()
        {
            Name = "example-ehnamespace",
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "Standard",
            Capacity = 1,
        });
    
        var exampleEventHub = new Azure.EventHub.EventHub("example", new()
        {
            Name = "example-eventhub",
            NamespaceName = exampleEventHubNamespace.Name,
            ResourceGroupName = exampleResourceGroup.Name,
            PartitionCount = 2,
            MessageRetention = 1,
        });
    
        var exampleOutputEventHub = new Azure.StreamAnalytics.OutputEventHub("example", new()
        {
            Name = "output-to-eventhub",
            StreamAnalyticsJobName = example.Apply(getJobResult => getJobResult.Name),
            ResourceGroupName = example.Apply(getJobResult => getJobResult.ResourceGroupName),
            EventhubName = exampleEventHub.Name,
            ServicebusNamespace = exampleEventHubNamespace.Name,
            SharedAccessPolicyKey = exampleEventHubNamespace.DefaultPrimaryKey,
            SharedAccessPolicyName = "RootManageSharedAccessKey",
            Serialization = new Azure.StreamAnalytics.Inputs.OutputEventHubSerializationArgs
            {
                Type = "Avro",
            },
        });
    
    });
    
    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.eventhub.EventHubNamespace;
    import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
    import com.pulumi.azure.eventhub.EventHub;
    import com.pulumi.azure.eventhub.EventHubArgs;
    import com.pulumi.azure.streamanalytics.OutputEventHub;
    import com.pulumi.azure.streamanalytics.OutputEventHubArgs;
    import com.pulumi.azure.streamanalytics.inputs.OutputEventHubSerializationArgs;
    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 exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()        
                .name("example-ehnamespace")
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .sku("Standard")
                .capacity(1)
                .build());
    
            var exampleEventHub = new EventHub("exampleEventHub", EventHubArgs.builder()        
                .name("example-eventhub")
                .namespaceName(exampleEventHubNamespace.name())
                .resourceGroupName(exampleResourceGroup.name())
                .partitionCount(2)
                .messageRetention(1)
                .build());
    
            var exampleOutputEventHub = new OutputEventHub("exampleOutputEventHub", OutputEventHubArgs.builder()        
                .name("output-to-eventhub")
                .streamAnalyticsJobName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.name())))
                .resourceGroupName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.resourceGroupName())))
                .eventhubName(exampleEventHub.name())
                .servicebusNamespace(exampleEventHubNamespace.name())
                .sharedAccessPolicyKey(exampleEventHubNamespace.defaultPrimaryKey())
                .sharedAccessPolicyName("RootManageSharedAccessKey")
                .serialization(OutputEventHubSerializationArgs.builder()
                    .type("Avro")
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        name: example
        properties:
          name: rg-example
          location: West Europe
      exampleEventHubNamespace:
        type: azure:eventhub:EventHubNamespace
        name: example
        properties:
          name: example-ehnamespace
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          sku: Standard
          capacity: 1
      exampleEventHub:
        type: azure:eventhub:EventHub
        name: example
        properties:
          name: example-eventhub
          namespaceName: ${exampleEventHubNamespace.name}
          resourceGroupName: ${exampleResourceGroup.name}
          partitionCount: 2
          messageRetention: 1
      exampleOutputEventHub:
        type: azure:streamanalytics:OutputEventHub
        name: example
        properties:
          name: output-to-eventhub
          streamAnalyticsJobName: ${example.name}
          resourceGroupName: ${example.resourceGroupName}
          eventhubName: ${exampleEventHub.name}
          servicebusNamespace: ${exampleEventHubNamespace.name}
          sharedAccessPolicyKey: ${exampleEventHubNamespace.defaultPrimaryKey}
          sharedAccessPolicyName: RootManageSharedAccessKey
          serialization:
            type: Avro
    variables:
      example:
        fn::invoke:
          Function: azure:streamanalytics:getJob
          Arguments:
            name: example-job
            resourceGroupName: ${exampleResourceGroup.name}
    

    Create OutputEventHub Resource

    new OutputEventHub(name: string, args: OutputEventHubArgs, opts?: CustomResourceOptions);
    @overload
    def OutputEventHub(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       authentication_mode: Optional[str] = None,
                       eventhub_name: Optional[str] = None,
                       name: Optional[str] = None,
                       partition_key: Optional[str] = None,
                       property_columns: Optional[Sequence[str]] = None,
                       resource_group_name: Optional[str] = None,
                       serialization: Optional[OutputEventHubSerializationArgs] = None,
                       servicebus_namespace: Optional[str] = None,
                       shared_access_policy_key: Optional[str] = None,
                       shared_access_policy_name: Optional[str] = None,
                       stream_analytics_job_name: Optional[str] = None)
    @overload
    def OutputEventHub(resource_name: str,
                       args: OutputEventHubArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewOutputEventHub(ctx *Context, name string, args OutputEventHubArgs, opts ...ResourceOption) (*OutputEventHub, error)
    public OutputEventHub(string name, OutputEventHubArgs args, CustomResourceOptions? opts = null)
    public OutputEventHub(String name, OutputEventHubArgs args)
    public OutputEventHub(String name, OutputEventHubArgs args, CustomResourceOptions options)
    
    type: azure:streamanalytics:OutputEventHub
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args OutputEventHubArgs
    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 OutputEventHubArgs
    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 OutputEventHubArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OutputEventHubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OutputEventHubArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EventhubName string
    The name of the Event Hub.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Serialization OutputEventHubSerialization
    A serialization block as defined below.
    ServicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    StreamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    AuthenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    PartitionKey string
    The column that is used for the Event Hub partition key.
    PropertyColumns List<string>
    A list of property columns to add to the Event Hub output.
    SharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    SharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    EventhubName string
    The name of the Event Hub.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Serialization OutputEventHubSerializationArgs
    A serialization block as defined below.
    ServicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    StreamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    AuthenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    PartitionKey string
    The column that is used for the Event Hub partition key.
    PropertyColumns []string
    A list of property columns to add to the Event Hub output.
    SharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    SharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    eventhubName String
    The name of the Event Hub.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization OutputEventHubSerialization
    A serialization block as defined below.
    servicebusNamespace String
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    streamAnalyticsJobName String
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode String
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey String
    The column that is used for the Event Hub partition key.
    propertyColumns List<String>
    A list of property columns to add to the Event Hub output.
    sharedAccessPolicyKey String
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName String
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    eventhubName string
    The name of the Event Hub.
    resourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization OutputEventHubSerialization
    A serialization block as defined below.
    servicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    streamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey string
    The column that is used for the Event Hub partition key.
    propertyColumns string[]
    A list of property columns to add to the Event Hub output.
    sharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    eventhub_name str
    The name of the Event Hub.
    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.
    serialization OutputEventHubSerializationArgs
    A serialization block as defined below.
    servicebus_namespace str
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    stream_analytics_job_name str
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authentication_mode str
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    name str
    The name of the Stream Output. Changing this forces a new resource to be created.
    partition_key str
    The column that is used for the Event Hub partition key.
    property_columns Sequence[str]
    A list of property columns to add to the Event Hub output.
    shared_access_policy_key str
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    shared_access_policy_name str
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    eventhubName String
    The name of the Event Hub.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization Property Map
    A serialization block as defined below.
    servicebusNamespace String
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    streamAnalyticsJobName String
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode String
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey String
    The column that is used for the Event Hub partition key.
    propertyColumns List<String>
    A list of property columns to add to the Event Hub output.
    sharedAccessPolicyKey String
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName String
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.

    Outputs

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

    Get an existing OutputEventHub 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?: OutputEventHubState, opts?: CustomResourceOptions): OutputEventHub
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication_mode: Optional[str] = None,
            eventhub_name: Optional[str] = None,
            name: Optional[str] = None,
            partition_key: Optional[str] = None,
            property_columns: Optional[Sequence[str]] = None,
            resource_group_name: Optional[str] = None,
            serialization: Optional[OutputEventHubSerializationArgs] = None,
            servicebus_namespace: Optional[str] = None,
            shared_access_policy_key: Optional[str] = None,
            shared_access_policy_name: Optional[str] = None,
            stream_analytics_job_name: Optional[str] = None) -> OutputEventHub
    func GetOutputEventHub(ctx *Context, name string, id IDInput, state *OutputEventHubState, opts ...ResourceOption) (*OutputEventHub, error)
    public static OutputEventHub Get(string name, Input<string> id, OutputEventHubState? state, CustomResourceOptions? opts = null)
    public static OutputEventHub get(String name, Output<String> id, OutputEventHubState 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:
    AuthenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    EventhubName string
    The name of the Event Hub.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    PartitionKey string
    The column that is used for the Event Hub partition key.
    PropertyColumns List<string>
    A list of property columns to add to the Event Hub output.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Serialization OutputEventHubSerialization
    A serialization block as defined below.
    ServicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    SharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    SharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    StreamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    AuthenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    EventhubName string
    The name of the Event Hub.
    Name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    PartitionKey string
    The column that is used for the Event Hub partition key.
    PropertyColumns []string
    A list of property columns to add to the Event Hub output.
    ResourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    Serialization OutputEventHubSerializationArgs
    A serialization block as defined below.
    ServicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    SharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    SharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    StreamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode String
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    eventhubName String
    The name of the Event Hub.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey String
    The column that is used for the Event Hub partition key.
    propertyColumns List<String>
    A list of property columns to add to the Event Hub output.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization OutputEventHubSerialization
    A serialization block as defined below.
    servicebusNamespace String
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    sharedAccessPolicyKey String
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName String
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    streamAnalyticsJobName String
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode string
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    eventhubName string
    The name of the Event Hub.
    name string
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey string
    The column that is used for the Event Hub partition key.
    propertyColumns string[]
    A list of property columns to add to the Event Hub output.
    resourceGroupName string
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization OutputEventHubSerialization
    A serialization block as defined below.
    servicebusNamespace string
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    sharedAccessPolicyKey string
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName string
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    streamAnalyticsJobName string
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authentication_mode str
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    eventhub_name str
    The name of the Event Hub.
    name str
    The name of the Stream Output. Changing this forces a new resource to be created.
    partition_key str
    The column that is used for the Event Hub partition key.
    property_columns Sequence[str]
    A list of property columns to add to the Event Hub output.
    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.
    serialization OutputEventHubSerializationArgs
    A serialization block as defined below.
    servicebus_namespace str
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    shared_access_policy_key str
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    shared_access_policy_name str
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    stream_analytics_job_name str
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.
    authenticationMode String
    The authentication mode for the Stream Output. Possible values are Msi and ConnectionString. Defaults to ConnectionString.
    eventhubName String
    The name of the Event Hub.
    name String
    The name of the Stream Output. Changing this forces a new resource to be created.
    partitionKey String
    The column that is used for the Event Hub partition key.
    propertyColumns List<String>
    A list of property columns to add to the Event Hub output.
    resourceGroupName String
    The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
    serialization Property Map
    A serialization block as defined below.
    servicebusNamespace String
    The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
    sharedAccessPolicyKey String
    The shared access policy key for the specified shared access policy. Required when authentication_mode is set to ConnectionString.
    sharedAccessPolicyName String
    The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required when authentication_mode is set to ConnectionString.
    streamAnalyticsJobName String
    The name of the Stream Analytics Job. Changing this forces a new resource to be created.

    Supporting Types

    OutputEventHubSerialization, OutputEventHubSerializationArgs

    Type string
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    Encoding string

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    FieldDelimiter string

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    Format string

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    Type string
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    Encoding string

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    FieldDelimiter string

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    Format string

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    type String
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    encoding String

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    fieldDelimiter String

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    format String

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    type string
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    encoding string

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    fieldDelimiter string

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    format string

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    type str
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    encoding str

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    field_delimiter str

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    format str

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    type String
    The serialization format used for outgoing data streams. Possible values are Avro, Csv, Json and Parquet.
    encoding String

    The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to UTF8.

    NOTE: This is required when type is set to Csv or Json.

    fieldDelimiter String

    The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are (space), , (comma), (tab), | (pipe) and ;.

    NOTE: This is required when type is set to Csv.

    format String

    Specifies the format of the JSON the output will be written in. Possible values are Array and LineSeparated.

    NOTE: This is Required and can only be specified when type is set to Json.

    Import

    Stream Analytics Outputs to an EventHub can be imported using the resource id, e.g.

    $ pulumi import azure:streamanalytics/outputEventHub:OutputEventHub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1
    

    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.70.0 published on Wednesday, Mar 27, 2024 by Pulumi