We recommend using Azure Native.
azure.streamanalytics.StreamInputEventHubV2
Explore with Pulumi AI
Note: This resource creates a Stream Input of type
Microsoft.EventHub/EventHub, to create a Stream Input of typeMicrosoft.ServiceBus/EventHubplease use the resource azurerm_stream_analytics_stream_input_eventhub.
Manages a Stream Analytics Stream Input EventHub V2.
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 exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", {
    name: "example-namespace",
    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 exampleConsumerGroup = new azure.eventhub.ConsumerGroup("example", {
    name: "example-consumergroup",
    namespaceName: exampleEventHubNamespace.name,
    eventhubName: exampleEventHub.name,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleStreamInputEventHubV2 = new azure.streamanalytics.StreamInputEventHubV2("example", {
    name: "eventhub-stream-input",
    streamAnalyticsJobId: example.apply(example => example.id),
    eventhubConsumerGroupName: exampleConsumerGroup.name,
    eventhubName: exampleEventHub.name,
    servicebusNamespace: exampleEventHubNamespace.name,
    sharedAccessPolicyKey: exampleEventHubNamespace.defaultPrimaryKey,
    sharedAccessPolicyName: "RootManageSharedAccessKey",
    serialization: {
        type: "Json",
        encoding: "UTF8",
    },
});
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_event_hub_namespace = azure.eventhub.EventHubNamespace("example",
    name="example-namespace",
    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_consumer_group = azure.eventhub.ConsumerGroup("example",
    name="example-consumergroup",
    namespace_name=example_event_hub_namespace.name,
    eventhub_name=example_event_hub.name,
    resource_group_name=example_resource_group.name)
example_stream_input_event_hub_v2 = azure.streamanalytics.StreamInputEventHubV2("example",
    name="eventhub-stream-input",
    stream_analytics_job_id=example.id,
    eventhub_consumer_group_name=example_consumer_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={
        "type": "Json",
        "encoding": "UTF8",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventhub"
	"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)
		exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{
			Name:              pulumi.String("example-namespace"),
			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
		}
		exampleConsumerGroup, err := eventhub.NewConsumerGroup(ctx, "example", &eventhub.ConsumerGroupArgs{
			Name:              pulumi.String("example-consumergroup"),
			NamespaceName:     exampleEventHubNamespace.Name,
			EventhubName:      exampleEventHub.Name,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = streamanalytics.NewStreamInputEventHubV2(ctx, "example", &streamanalytics.StreamInputEventHubV2Args{
			Name: pulumi.String("eventhub-stream-input"),
			StreamAnalyticsJobId: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
				return &example.Id, nil
			}).(pulumi.StringPtrOutput)),
			EventhubConsumerGroupName: exampleConsumerGroup.Name,
			EventhubName:              exampleEventHub.Name,
			ServicebusNamespace:       exampleEventHubNamespace.Name,
			SharedAccessPolicyKey:     exampleEventHubNamespace.DefaultPrimaryKey,
			SharedAccessPolicyName:    pulumi.String("RootManageSharedAccessKey"),
			Serialization: &streamanalytics.StreamInputEventHubV2SerializationArgs{
				Type:     pulumi.String("Json"),
				Encoding: pulumi.String("UTF8"),
			},
		})
		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 exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("example", new()
    {
        Name = "example-namespace",
        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 exampleConsumerGroup = new Azure.EventHub.ConsumerGroup("example", new()
    {
        Name = "example-consumergroup",
        NamespaceName = exampleEventHubNamespace.Name,
        EventhubName = exampleEventHub.Name,
        ResourceGroupName = exampleResourceGroup.Name,
    });
    var exampleStreamInputEventHubV2 = new Azure.StreamAnalytics.StreamInputEventHubV2("example", new()
    {
        Name = "eventhub-stream-input",
        StreamAnalyticsJobId = example.Apply(getJobResult => getJobResult.Id),
        EventhubConsumerGroupName = exampleConsumerGroup.Name,
        EventhubName = exampleEventHub.Name,
        ServicebusNamespace = exampleEventHubNamespace.Name,
        SharedAccessPolicyKey = exampleEventHubNamespace.DefaultPrimaryKey,
        SharedAccessPolicyName = "RootManageSharedAccessKey",
        Serialization = new Azure.StreamAnalytics.Inputs.StreamInputEventHubV2SerializationArgs
        {
            Type = "Json",
            Encoding = "UTF8",
        },
    });
});
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.eventhub.ConsumerGroup;
import com.pulumi.azure.eventhub.ConsumerGroupArgs;
import com.pulumi.azure.streamanalytics.StreamInputEventHubV2;
import com.pulumi.azure.streamanalytics.StreamInputEventHubV2Args;
import com.pulumi.azure.streamanalytics.inputs.StreamInputEventHubV2SerializationArgs;
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 exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()
            .name("example-namespace")
            .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 exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()
            .name("example-consumergroup")
            .namespaceName(exampleEventHubNamespace.name())
            .eventhubName(exampleEventHub.name())
            .resourceGroupName(exampleResourceGroup.name())
            .build());
        var exampleStreamInputEventHubV2 = new StreamInputEventHubV2("exampleStreamInputEventHubV2", StreamInputEventHubV2Args.builder()
            .name("eventhub-stream-input")
            .streamAnalyticsJobId(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.id())))
            .eventhubConsumerGroupName(exampleConsumerGroup.name())
            .eventhubName(exampleEventHub.name())
            .servicebusNamespace(exampleEventHubNamespace.name())
            .sharedAccessPolicyKey(exampleEventHubNamespace.defaultPrimaryKey())
            .sharedAccessPolicyName("RootManageSharedAccessKey")
            .serialization(StreamInputEventHubV2SerializationArgs.builder()
                .type("Json")
                .encoding("UTF8")
                .build())
            .build());
    }
}
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: example-resources
      location: West Europe
  exampleEventHubNamespace:
    type: azure:eventhub:EventHubNamespace
    name: example
    properties:
      name: example-namespace
      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
  exampleConsumerGroup:
    type: azure:eventhub:ConsumerGroup
    name: example
    properties:
      name: example-consumergroup
      namespaceName: ${exampleEventHubNamespace.name}
      eventhubName: ${exampleEventHub.name}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleStreamInputEventHubV2:
    type: azure:streamanalytics:StreamInputEventHubV2
    name: example
    properties:
      name: eventhub-stream-input
      streamAnalyticsJobId: ${example.id}
      eventhubConsumerGroupName: ${exampleConsumerGroup.name}
      eventhubName: ${exampleEventHub.name}
      servicebusNamespace: ${exampleEventHubNamespace.name}
      sharedAccessPolicyKey: ${exampleEventHubNamespace.defaultPrimaryKey}
      sharedAccessPolicyName: RootManageSharedAccessKey
      serialization:
        type: Json
        encoding: UTF8
variables:
  example:
    fn::invoke:
      function: azure:streamanalytics:getJob
      arguments:
        name: example-job
        resourceGroupName: ${exampleResourceGroup.name}
Create StreamInputEventHubV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamInputEventHubV2(name: string, args: StreamInputEventHubV2Args, opts?: CustomResourceOptions);@overload
def StreamInputEventHubV2(resource_name: str,
                          args: StreamInputEventHubV2Args,
                          opts: Optional[ResourceOptions] = None)
@overload
def StreamInputEventHubV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          eventhub_name: Optional[str] = None,
                          serialization: Optional[StreamInputEventHubV2SerializationArgs] = None,
                          servicebus_namespace: Optional[str] = None,
                          stream_analytics_job_id: Optional[str] = None,
                          authentication_mode: Optional[str] = None,
                          eventhub_consumer_group_name: Optional[str] = None,
                          name: Optional[str] = None,
                          partition_key: Optional[str] = None,
                          shared_access_policy_key: Optional[str] = None,
                          shared_access_policy_name: Optional[str] = None)func NewStreamInputEventHubV2(ctx *Context, name string, args StreamInputEventHubV2Args, opts ...ResourceOption) (*StreamInputEventHubV2, error)public StreamInputEventHubV2(string name, StreamInputEventHubV2Args args, CustomResourceOptions? opts = null)
public StreamInputEventHubV2(String name, StreamInputEventHubV2Args args)
public StreamInputEventHubV2(String name, StreamInputEventHubV2Args args, CustomResourceOptions options)
type: azure:streamanalytics:StreamInputEventHubV2
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 StreamInputEventHubV2Args
- 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 StreamInputEventHubV2Args
- 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 StreamInputEventHubV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamInputEventHubV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamInputEventHubV2Args
- 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 streamInputEventHubV2Resource = new Azure.StreamAnalytics.StreamInputEventHubV2("streamInputEventHubV2Resource", new()
{
    EventhubName = "string",
    Serialization = new Azure.StreamAnalytics.Inputs.StreamInputEventHubV2SerializationArgs
    {
        Type = "string",
        Encoding = "string",
        FieldDelimiter = "string",
    },
    ServicebusNamespace = "string",
    StreamAnalyticsJobId = "string",
    AuthenticationMode = "string",
    EventhubConsumerGroupName = "string",
    Name = "string",
    PartitionKey = "string",
    SharedAccessPolicyKey = "string",
    SharedAccessPolicyName = "string",
});
example, err := streamanalytics.NewStreamInputEventHubV2(ctx, "streamInputEventHubV2Resource", &streamanalytics.StreamInputEventHubV2Args{
	EventhubName: pulumi.String("string"),
	Serialization: &streamanalytics.StreamInputEventHubV2SerializationArgs{
		Type:           pulumi.String("string"),
		Encoding:       pulumi.String("string"),
		FieldDelimiter: pulumi.String("string"),
	},
	ServicebusNamespace:       pulumi.String("string"),
	StreamAnalyticsJobId:      pulumi.String("string"),
	AuthenticationMode:        pulumi.String("string"),
	EventhubConsumerGroupName: pulumi.String("string"),
	Name:                      pulumi.String("string"),
	PartitionKey:              pulumi.String("string"),
	SharedAccessPolicyKey:     pulumi.String("string"),
	SharedAccessPolicyName:    pulumi.String("string"),
})
var streamInputEventHubV2Resource = new StreamInputEventHubV2("streamInputEventHubV2Resource", StreamInputEventHubV2Args.builder()
    .eventhubName("string")
    .serialization(StreamInputEventHubV2SerializationArgs.builder()
        .type("string")
        .encoding("string")
        .fieldDelimiter("string")
        .build())
    .servicebusNamespace("string")
    .streamAnalyticsJobId("string")
    .authenticationMode("string")
    .eventhubConsumerGroupName("string")
    .name("string")
    .partitionKey("string")
    .sharedAccessPolicyKey("string")
    .sharedAccessPolicyName("string")
    .build());
stream_input_event_hub_v2_resource = azure.streamanalytics.StreamInputEventHubV2("streamInputEventHubV2Resource",
    eventhub_name="string",
    serialization={
        "type": "string",
        "encoding": "string",
        "field_delimiter": "string",
    },
    servicebus_namespace="string",
    stream_analytics_job_id="string",
    authentication_mode="string",
    eventhub_consumer_group_name="string",
    name="string",
    partition_key="string",
    shared_access_policy_key="string",
    shared_access_policy_name="string")
const streamInputEventHubV2Resource = new azure.streamanalytics.StreamInputEventHubV2("streamInputEventHubV2Resource", {
    eventhubName: "string",
    serialization: {
        type: "string",
        encoding: "string",
        fieldDelimiter: "string",
    },
    servicebusNamespace: "string",
    streamAnalyticsJobId: "string",
    authenticationMode: "string",
    eventhubConsumerGroupName: "string",
    name: "string",
    partitionKey: "string",
    sharedAccessPolicyKey: "string",
    sharedAccessPolicyName: "string",
});
type: azure:streamanalytics:StreamInputEventHubV2
properties:
    authenticationMode: string
    eventhubConsumerGroupName: string
    eventhubName: string
    name: string
    partitionKey: string
    serialization:
        encoding: string
        fieldDelimiter: string
        type: string
    servicebusNamespace: string
    sharedAccessPolicyKey: string
    sharedAccessPolicyName: string
    streamAnalyticsJobId: string
StreamInputEventHubV2 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 StreamInputEventHubV2 resource accepts the following input properties:
- EventhubName string
- The name of the Event Hub.
- Serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- ServicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- StreamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- EventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- Name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- PartitionKey string
- The property the input Event Hub has been partitioned by.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- EventhubName string
- The name of the Event Hub.
- Serialization
StreamInput Event Hub V2Serialization Args 
- A serializationblock as defined below.
- ServicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- StreamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- EventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- Name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- PartitionKey string
- The property the input Event Hub has been partitioned by.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- eventhubName String
- The name of the Event Hub.
- serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- servicebusNamespace String
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics StringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer StringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- name String
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey String
- The property the input Event Hub has been partitioned by.
- String
- The shared access policy key for the specified shared access policy.
- String
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- eventhubName string
- The name of the Event Hub.
- serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- servicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey string
- The property the input Event Hub has been partitioned by.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- eventhub_name str
- The name of the Event Hub.
- serialization
StreamInput Event Hub V2Serialization Args 
- A serializationblock 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_ strjob_ id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhub_consumer_ strgroup_ name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- name str
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partition_key str
- The property the input Event Hub has been partitioned by.
- str
- The shared access policy key for the specified shared access policy.
- str
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- eventhubName String
- The name of the Event Hub.
- serialization Property Map
- A serializationblock as defined below.
- servicebusNamespace String
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics StringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer StringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- name String
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey String
- The property the input Event Hub has been partitioned by.
- String
- The shared access policy key for the specified shared access policy.
- String
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamInputEventHubV2 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 StreamInputEventHubV2 Resource
Get an existing StreamInputEventHubV2 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?: StreamInputEventHubV2State, opts?: CustomResourceOptions): StreamInputEventHubV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authentication_mode: Optional[str] = None,
        eventhub_consumer_group_name: Optional[str] = None,
        eventhub_name: Optional[str] = None,
        name: Optional[str] = None,
        partition_key: Optional[str] = None,
        serialization: Optional[StreamInputEventHubV2SerializationArgs] = None,
        servicebus_namespace: Optional[str] = None,
        shared_access_policy_key: Optional[str] = None,
        shared_access_policy_name: Optional[str] = None,
        stream_analytics_job_id: Optional[str] = None) -> StreamInputEventHubV2func GetStreamInputEventHubV2(ctx *Context, name string, id IDInput, state *StreamInputEventHubV2State, opts ...ResourceOption) (*StreamInputEventHubV2, error)public static StreamInputEventHubV2 Get(string name, Input<string> id, StreamInputEventHubV2State? state, CustomResourceOptions? opts = null)public static StreamInputEventHubV2 get(String name, Output<String> id, StreamInputEventHubV2State state, CustomResourceOptions options)resources:  _:    type: azure:streamanalytics:StreamInputEventHubV2    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.
- AuthenticationMode string
- The authentication mode for the Stream Output. Possible values are MsiandConnectionString. Defaults toConnectionString.
- EventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- EventhubName string
- The name of the Event Hub.
- Name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- PartitionKey string
- The property the input Event Hub has been partitioned by.
- Serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- ServicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- StreamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- EventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- EventhubName string
- The name of the Event Hub.
- Name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- PartitionKey string
- The property the input Event Hub has been partitioned by.
- Serialization
StreamInput Event Hub V2Serialization Args 
- A serializationblock as defined below.
- ServicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- StreamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer StringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- eventhubName String
- The name of the Event Hub.
- name String
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey String
- The property the input Event Hub has been partitioned by.
- serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- servicebusNamespace String
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- String
- The shared access policy key for the specified shared access policy.
- String
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics StringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer stringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- eventhubName string
- The name of the Event Hub.
- name string
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey string
- The property the input Event Hub has been partitioned by.
- serialization
StreamInput Event Hub V2Serialization 
- A serializationblock as defined below.
- servicebusNamespace string
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- string
- The shared access policy key for the specified shared access policy.
- string
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics stringJob Id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhub_consumer_ strgroup_ name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- eventhub_name str
- The name of the Event Hub.
- name str
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partition_key str
- The property the input Event Hub has been partitioned by.
- serialization
StreamInput Event Hub V2Serialization Args 
- A serializationblock as defined below.
- servicebus_namespace str
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- str
- The shared access policy key for the specified shared access policy.
- str
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- stream_analytics_ strjob_ id 
- 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 MsiandConnectionString. Defaults toConnectionString.
- eventhubConsumer StringGroup Name 
- The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not set the input will use the Event Hub's default consumer group.
- eventhubName String
- The name of the Event Hub.
- name String
- The name of the Stream Input EventHub V2. Changing this forces a new resource to be created.
- partitionKey String
- The property the input Event Hub has been partitioned by.
- serialization Property Map
- A serializationblock as defined below.
- servicebusNamespace String
- The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.
- String
- The shared access policy key for the specified shared access policy.
- String
- The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
- streamAnalytics StringJob Id 
- The name of the Stream Analytics Job. Changing this forces a new resource to be created.
Supporting Types
StreamInputEventHubV2Serialization, StreamInputEventHubV2SerializationArgs          
- Type string
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
- Type string
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
- type String
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
- type string
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
- type str
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
- type String
- The serialization format used for incoming data streams. Possible values are Avro,CsvandJson.
- 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 - typeis set to- Csvor- 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 - typeis set to- Csv.
Import
Stream Analytics Stream Input EventHub’s can be imported using the resource id, e.g.
$ pulumi import azure:streamanalytics/streamInputEventHubV2:StreamInputEventHubV2 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.