We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages an IotHub EventHub Endpoint
NOTE: Endpoints can be defined either directly on the
azure.iot.IoTHubresource, or using theazurerm_iothub_endpoint_*resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining aazurerm_iothub_endpoint_*resource and another endpoint of a different type directly on theazure.iot.IoTHubresource is not supported.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("exampleEventHubNamespace", new Azure.EventHub.EventHubNamespaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "Basic",
});
var exampleEventHub = new Azure.EventHub.EventHub("exampleEventHub", new Azure.EventHub.EventHubArgs
{
NamespaceName = exampleEventHubNamespace.Name,
ResourceGroupName = exampleResourceGroup.Name,
PartitionCount = 2,
MessageRetention = 1,
});
var exampleAuthorizationRule = new Azure.EventHub.AuthorizationRule("exampleAuthorizationRule", new Azure.EventHub.AuthorizationRuleArgs
{
NamespaceName = exampleEventHubNamespace.Name,
EventhubName = exampleEventHub.Name,
ResourceGroupName = exampleResourceGroup.Name,
Listen = false,
Send = true,
Manage = false,
});
var exampleIoTHub = new Azure.Iot.IoTHub("exampleIoTHub", new Azure.Iot.IoTHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
{
Name = "B1",
Capacity = 1,
},
Tags =
{
{ "purpose", "example" },
},
});
var exampleEndpointEventhub = new Azure.Iot.EndpointEventhub("exampleEndpointEventhub", new Azure.Iot.EndpointEventhubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
IothubId = exampleIoTHub.Id,
ConnectionString = exampleAuthorizationRule.PrimaryConnectionString,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/eventhub"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "exampleEventHubNamespace", &eventhub.EventHubNamespaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("Basic"),
})
if err != nil {
return err
}
exampleEventHub, err := eventhub.NewEventHub(ctx, "exampleEventHub", &eventhub.EventHubArgs{
NamespaceName: exampleEventHubNamespace.Name,
ResourceGroupName: exampleResourceGroup.Name,
PartitionCount: pulumi.Int(2),
MessageRetention: pulumi.Int(1),
})
if err != nil {
return err
}
exampleAuthorizationRule, err := eventhub.NewAuthorizationRule(ctx, "exampleAuthorizationRule", &eventhub.AuthorizationRuleArgs{
NamespaceName: exampleEventHubNamespace.Name,
EventhubName: exampleEventHub.Name,
ResourceGroupName: exampleResourceGroup.Name,
Listen: pulumi.Bool(false),
Send: pulumi.Bool(true),
Manage: pulumi.Bool(false),
})
if err != nil {
return err
}
exampleIoTHub, err := iot.NewIoTHub(ctx, "exampleIoTHub", &iot.IoTHubArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Sku: &iot.IoTHubSkuArgs{
Name: pulumi.String("B1"),
Capacity: pulumi.Int(1),
},
Tags: pulumi.StringMap{
"purpose": pulumi.String("example"),
},
})
if err != nil {
return err
}
_, err = iot.NewEndpointEventhub(ctx, "exampleEndpointEventhub", &iot.EndpointEventhubArgs{
ResourceGroupName: exampleResourceGroup.Name,
IothubId: exampleIoTHub.ID(),
ConnectionString: exampleAuthorizationRule.PrimaryConnectionString,
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("exampleEventHubNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "Basic",
});
const exampleEventHub = new azure.eventhub.EventHub("exampleEventHub", {
namespaceName: exampleEventHubNamespace.name,
resourceGroupName: exampleResourceGroup.name,
partitionCount: 2,
messageRetention: 1,
});
const exampleAuthorizationRule = new azure.eventhub.AuthorizationRule("exampleAuthorizationRule", {
namespaceName: exampleEventHubNamespace.name,
eventhubName: exampleEventHub.name,
resourceGroupName: exampleResourceGroup.name,
listen: false,
send: true,
manage: false,
});
const exampleIoTHub = new azure.iot.IoTHub("exampleIoTHub", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
sku: {
name: "B1",
capacity: "1",
},
tags: {
purpose: "example",
},
});
const exampleEndpointEventhub = new azure.iot.EndpointEventhub("exampleEndpointEventhub", {
resourceGroupName: exampleResourceGroup.name,
iothubId: exampleIoTHub.id,
connectionString: exampleAuthorizationRule.primaryConnectionString,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_event_hub_namespace = azure.eventhub.EventHubNamespace("exampleEventHubNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Basic")
example_event_hub = azure.eventhub.EventHub("exampleEventHub",
namespace_name=example_event_hub_namespace.name,
resource_group_name=example_resource_group.name,
partition_count=2,
message_retention=1)
example_authorization_rule = azure.eventhub.AuthorizationRule("exampleAuthorizationRule",
namespace_name=example_event_hub_namespace.name,
eventhub_name=example_event_hub.name,
resource_group_name=example_resource_group.name,
listen=False,
send=True,
manage=False)
example_io_t_hub = azure.iot.IoTHub("exampleIoTHub",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku=azure.iot.IoTHubSkuArgs(
name="B1",
capacity=1,
),
tags={
"purpose": "example",
})
example_endpoint_eventhub = azure.iot.EndpointEventhub("exampleEndpointEventhub",
resource_group_name=example_resource_group.name,
iothub_id=example_io_t_hub.id,
connection_string=example_authorization_rule.primary_connection_string)
Example coming soon!
Create EndpointEventhub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointEventhub(name: string, args: EndpointEventhubArgs, opts?: CustomResourceOptions);@overload
def EndpointEventhub(resource_name: str,
args: EndpointEventhubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointEventhub(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
authentication_type: Optional[str] = None,
connection_string: Optional[str] = None,
endpoint_uri: Optional[str] = None,
entity_path: Optional[str] = None,
identity_id: Optional[str] = None,
iothub_id: Optional[str] = None,
iothub_name: Optional[str] = None,
name: Optional[str] = None)func NewEndpointEventhub(ctx *Context, name string, args EndpointEventhubArgs, opts ...ResourceOption) (*EndpointEventhub, error)public EndpointEventhub(string name, EndpointEventhubArgs args, CustomResourceOptions? opts = null)
public EndpointEventhub(String name, EndpointEventhubArgs args)
public EndpointEventhub(String name, EndpointEventhubArgs args, CustomResourceOptions options)
type: azure:iot:EndpointEventhub
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 EndpointEventhubArgs
- 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 EndpointEventhubArgs
- 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 EndpointEventhubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointEventhubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointEventhubArgs
- 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 endpointEventhubResource = new Azure.Iot.EndpointEventhub("endpointEventhubResource", new()
{
ResourceGroupName = "string",
AuthenticationType = "string",
ConnectionString = "string",
EndpointUri = "string",
EntityPath = "string",
IdentityId = "string",
IothubId = "string",
Name = "string",
});
example, err := iot.NewEndpointEventhub(ctx, "endpointEventhubResource", &iot.EndpointEventhubArgs{
ResourceGroupName: pulumi.String("string"),
AuthenticationType: pulumi.String("string"),
ConnectionString: pulumi.String("string"),
EndpointUri: pulumi.String("string"),
EntityPath: pulumi.String("string"),
IdentityId: pulumi.String("string"),
IothubId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var endpointEventhubResource = new EndpointEventhub("endpointEventhubResource", EndpointEventhubArgs.builder()
.resourceGroupName("string")
.authenticationType("string")
.connectionString("string")
.endpointUri("string")
.entityPath("string")
.identityId("string")
.iothubId("string")
.name("string")
.build());
endpoint_eventhub_resource = azure.iot.EndpointEventhub("endpointEventhubResource",
resource_group_name="string",
authentication_type="string",
connection_string="string",
endpoint_uri="string",
entity_path="string",
identity_id="string",
iothub_id="string",
name="string")
const endpointEventhubResource = new azure.iot.EndpointEventhub("endpointEventhubResource", {
resourceGroupName: "string",
authenticationType: "string",
connectionString: "string",
endpointUri: "string",
entityPath: "string",
identityId: "string",
iothubId: "string",
name: "string",
});
type: azure:iot:EndpointEventhub
properties:
authenticationType: string
connectionString: string
endpointUri: string
entityPath: string
identityId: string
iothubId: string
name: string
resourceGroupName: string
EndpointEventhub 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 EndpointEventhub resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - Endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- Iothub
Id string - The IoTHub ID for the endpoint.
- Iothub
Name string - The IoTHub name for the endpoint.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
- Resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - Endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- Iothub
Id string - The IoTHub ID for the endpoint.
- Iothub
Name string - The IoTHub name for the endpoint.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
- resource
Group StringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri String - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path String - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id String - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id String - The IoTHub ID for the endpoint.
- iothub
Name String - The IoTHub name for the endpoint.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
- resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id string - The IoTHub ID for the endpoint.
- iothub
Name string - The IoTHub name for the endpoint.
- name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
- resource_
group_ strname - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication_
type str - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection_
string str - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint_
uri str - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity_
path str - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity_
id str - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub_
id str - The IoTHub ID for the endpoint.
- iothub_
name str - The IoTHub name for the endpoint.
- name str
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
- resource
Group StringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri String - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path String - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id String - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id String - The IoTHub ID for the endpoint.
- iothub
Name String - The IoTHub name for the endpoint.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointEventhub 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 EndpointEventhub Resource
Get an existing EndpointEventhub 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?: EndpointEventhubState, opts?: CustomResourceOptions): EndpointEventhub@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication_type: Optional[str] = None,
connection_string: Optional[str] = None,
endpoint_uri: Optional[str] = None,
entity_path: Optional[str] = None,
identity_id: Optional[str] = None,
iothub_id: Optional[str] = None,
iothub_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None) -> EndpointEventhubfunc GetEndpointEventhub(ctx *Context, name string, id IDInput, state *EndpointEventhubState, opts ...ResourceOption) (*EndpointEventhub, error)public static EndpointEventhub Get(string name, Input<string> id, EndpointEventhubState? state, CustomResourceOptions? opts = null)public static EndpointEventhub get(String name, Output<String> id, EndpointEventhubState state, CustomResourceOptions options)resources: _: type: azure:iot:EndpointEventhub 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.
- Authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - Endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- Iothub
Id string - The IoTHub ID for the endpoint.
- Iothub
Name string - The IoTHub name for the endpoint.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - Resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - Endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - Identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- Iothub
Id string - The IoTHub ID for the endpoint.
- Iothub
Name string - The IoTHub name for the endpoint.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - Resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri String - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path String - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id String - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id String - The IoTHub ID for the endpoint.
- iothub
Name String - The IoTHub name for the endpoint.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - resource
Group StringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type string - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri string - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path string - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id string - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id string - The IoTHub ID for the endpoint.
- iothub
Name string - The IoTHub name for the endpoint.
- name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - resource
Group stringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication_
type str - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection_
string str - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint_
uri str - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity_
path str - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity_
id str - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub_
id str - The IoTHub ID for the endpoint.
- iothub_
name str - The IoTHub name for the endpoint.
- name str
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - resource_
group_ strname - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Event Hub endpoint. Possible values are
keyBasedandidentityBased. Defaults tokeyBased. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_typeiskeyBased. - endpoint
Uri String - URI of the Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - entity
Path String - Name of the Event Hub. This attribute can only be specified and is mandatory when
authentication_typeisidentityBased. - identity
Id String - ID of the User Managed Identity used to authenticate against the Event Hub endpoint.
- iothub
Id String - The IoTHub ID for the endpoint.
- iothub
Name String - The IoTHub name for the endpoint.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default. - resource
Group StringName - The name of the resource group under which the Event Hub has been created. Changing this forces a new resource to be created.
Import
IoTHub EventHub Endpoint can be imported using the resource id, e.g.
$ pulumi import azure:iot/endpointEventhub:EndpointEventhub eventhub1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/IotHubs/hub1/Endpoints/eventhub_endpoint1
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.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
