published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Single item in List or Get Event Hub operation API Version: 2017-04-01.
Example Usage
EventHubCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventHub = new AzureNative.EventHub.EventHub("eventHub", new()
{
CaptureDescription = new AzureNative.EventHub.Inputs.CaptureDescriptionArgs
{
Destination = new AzureNative.EventHub.Inputs.DestinationArgs
{
ArchiveNameFormat = "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}",
BlobContainer = "container",
Name = "EventHubArchive.AzureBlockBlob",
StorageAccountResourceId = "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage",
},
Enabled = true,
Encoding = AzureNative.EventHub.EncodingCaptureDescription.Avro,
IntervalInSeconds = 120,
SizeLimitInBytes = 10485763,
},
EventHubName = "sdk-EventHub-6547",
MessageRetentionInDays = 4,
NamespaceName = "sdk-Namespace-5357",
PartitionCount = 4,
ResourceGroupName = "Default-NotificationHubs-AustraliaEast",
Status = AzureNative.EventHub.EntityStatus.Active,
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewEventHub(ctx, "eventHub", &eventhub.EventHubArgs{
CaptureDescription: eventhub.CaptureDescriptionResponse{
Destination: &eventhub.DestinationArgs{
ArchiveNameFormat: pulumi.String("{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"),
BlobContainer: pulumi.String("container"),
Name: pulumi.String("EventHubArchive.AzureBlockBlob"),
StorageAccountResourceId: pulumi.String("/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage"),
},
Enabled: pulumi.Bool(true),
Encoding: eventhub.EncodingCaptureDescriptionAvro,
IntervalInSeconds: pulumi.Int(120),
SizeLimitInBytes: pulumi.Int(10485763),
},
EventHubName: pulumi.String("sdk-EventHub-6547"),
MessageRetentionInDays: pulumi.Float64(4),
NamespaceName: pulumi.String("sdk-Namespace-5357"),
PartitionCount: pulumi.Float64(4),
ResourceGroupName: pulumi.String("Default-NotificationHubs-AustraliaEast"),
Status: eventhub.EntityStatusActive,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventhub.EventHub;
import com.pulumi.azurenative.eventhub.EventHubArgs;
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 eventHub = new EventHub("eventHub", EventHubArgs.builder()
.captureDescription(Map.ofEntries(
Map.entry("destination", Map.ofEntries(
Map.entry("archiveNameFormat", "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"),
Map.entry("blobContainer", "container"),
Map.entry("name", "EventHubArchive.AzureBlockBlob"),
Map.entry("storageAccountResourceId", "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage")
)),
Map.entry("enabled", true),
Map.entry("encoding", "Avro"),
Map.entry("intervalInSeconds", 120),
Map.entry("sizeLimitInBytes", 10485763)
))
.eventHubName("sdk-EventHub-6547")
.messageRetentionInDays(4)
.namespaceName("sdk-Namespace-5357")
.partitionCount(4)
.resourceGroupName("Default-NotificationHubs-AustraliaEast")
.status("Active")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const eventHub = new azure_native.eventhub.EventHub("eventHub", {
captureDescription: {
destination: {
archiveNameFormat: "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}",
blobContainer: "container",
name: "EventHubArchive.AzureBlockBlob",
storageAccountResourceId: "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage",
},
enabled: true,
encoding: azure_native.eventhub.EncodingCaptureDescription.Avro,
intervalInSeconds: 120,
sizeLimitInBytes: 10485763,
},
eventHubName: "sdk-EventHub-6547",
messageRetentionInDays: 4,
namespaceName: "sdk-Namespace-5357",
partitionCount: 4,
resourceGroupName: "Default-NotificationHubs-AustraliaEast",
status: azure_native.eventhub.EntityStatus.Active,
});
import pulumi
import pulumi_azure_native as azure_native
event_hub = azure_native.eventhub.EventHub("eventHub",
capture_description=azure_native.eventhub.CaptureDescriptionResponseArgs(
destination=azure_native.eventhub.DestinationArgs(
archive_name_format="{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}",
blob_container="container",
name="EventHubArchive.AzureBlockBlob",
storage_account_resource_id="/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage",
),
enabled=True,
encoding=azure_native.eventhub.EncodingCaptureDescription.AVRO,
interval_in_seconds=120,
size_limit_in_bytes=10485763,
),
event_hub_name="sdk-EventHub-6547",
message_retention_in_days=4,
namespace_name="sdk-Namespace-5357",
partition_count=4,
resource_group_name="Default-NotificationHubs-AustraliaEast",
status=azure_native.eventhub.EntityStatus.ACTIVE)
resources:
eventHub:
type: azure-native:eventhub:EventHub
properties:
captureDescription:
destination:
archiveNameFormat: '{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}'
blobContainer: container
name: EventHubArchive.AzureBlockBlob
storageAccountResourceId: /subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage
enabled: true
encoding: Avro
intervalInSeconds: 120
sizeLimitInBytes: 1.0485763e+07
eventHubName: sdk-EventHub-6547
messageRetentionInDays: 4
namespaceName: sdk-Namespace-5357
partitionCount: 4
resourceGroupName: Default-NotificationHubs-AustraliaEast
status: Active
Create EventHub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventHub(name: string, args: EventHubArgs, opts?: CustomResourceOptions);@overload
def EventHub(resource_name: str,
args: EventHubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventHub(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
capture_description: Optional[CaptureDescriptionArgs] = None,
event_hub_name: Optional[str] = None,
message_retention_in_days: Optional[float] = None,
partition_count: Optional[float] = None,
status: Optional[EntityStatus] = None)func NewEventHub(ctx *Context, name string, args EventHubArgs, opts ...ResourceOption) (*EventHub, error)public EventHub(string name, EventHubArgs args, CustomResourceOptions? opts = null)
public EventHub(String name, EventHubArgs args)
public EventHub(String name, EventHubArgs args, CustomResourceOptions options)
type: azure-native:eventhub:EventHub
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 EventHubArgs
- 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 EventHubArgs
- 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 EventHubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventHubArgs
- 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 eventHubResource = new AzureNative.EventHub.EventHub("eventHubResource", new()
{
NamespaceName = "string",
ResourceGroupName = "string",
CaptureDescription = new AzureNative.EventHub.Inputs.CaptureDescriptionArgs
{
Destination = new AzureNative.EventHub.Inputs.DestinationArgs
{
ArchiveNameFormat = "string",
BlobContainer = "string",
Name = "string",
StorageAccountResourceId = "string",
},
Enabled = false,
Encoding = AzureNative.EventHub.EncodingCaptureDescription.Avro,
IntervalInSeconds = 0,
SizeLimitInBytes = 0,
SkipEmptyArchives = false,
},
EventHubName = "string",
MessageRetentionInDays = 0,
PartitionCount = 0,
Status = AzureNative.EventHub.EntityStatus.Active,
});
example, err := eventhub.NewEventHub(ctx, "eventHubResource", &eventhub.EventHubArgs{
NamespaceName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
CaptureDescription: &eventhub.CaptureDescriptionArgs{
Destination: &eventhub.DestinationArgs{
ArchiveNameFormat: pulumi.String("string"),
BlobContainer: pulumi.String("string"),
Name: pulumi.String("string"),
StorageAccountResourceId: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Encoding: eventhub.EncodingCaptureDescriptionAvro,
IntervalInSeconds: pulumi.Int(0),
SizeLimitInBytes: pulumi.Int(0),
SkipEmptyArchives: pulumi.Bool(false),
},
EventHubName: pulumi.String("string"),
MessageRetentionInDays: pulumi.Float64(0),
PartitionCount: pulumi.Float64(0),
Status: eventhub.EntityStatusActive,
})
var eventHubResource = new EventHub("eventHubResource", EventHubArgs.builder()
.namespaceName("string")
.resourceGroupName("string")
.captureDescription(CaptureDescriptionArgs.builder()
.destination(DestinationArgs.builder()
.archiveNameFormat("string")
.blobContainer("string")
.name("string")
.storageAccountResourceId("string")
.build())
.enabled(false)
.encoding("Avro")
.intervalInSeconds(0)
.sizeLimitInBytes(0)
.skipEmptyArchives(false)
.build())
.eventHubName("string")
.messageRetentionInDays(0.0)
.partitionCount(0.0)
.status("Active")
.build());
event_hub_resource = azure_native.eventhub.EventHub("eventHubResource",
namespace_name="string",
resource_group_name="string",
capture_description={
"destination": {
"archive_name_format": "string",
"blob_container": "string",
"name": "string",
"storage_account_resource_id": "string",
},
"enabled": False,
"encoding": azure_native.eventhub.EncodingCaptureDescription.AVRO,
"interval_in_seconds": 0,
"size_limit_in_bytes": 0,
"skip_empty_archives": False,
},
event_hub_name="string",
message_retention_in_days=0,
partition_count=0,
status=azure_native.eventhub.EntityStatus.ACTIVE)
const eventHubResource = new azure_native.eventhub.EventHub("eventHubResource", {
namespaceName: "string",
resourceGroupName: "string",
captureDescription: {
destination: {
archiveNameFormat: "string",
blobContainer: "string",
name: "string",
storageAccountResourceId: "string",
},
enabled: false,
encoding: azure_native.eventhub.EncodingCaptureDescription.Avro,
intervalInSeconds: 0,
sizeLimitInBytes: 0,
skipEmptyArchives: false,
},
eventHubName: "string",
messageRetentionInDays: 0,
partitionCount: 0,
status: azure_native.eventhub.EntityStatus.Active,
});
type: azure-native:eventhub:EventHub
properties:
captureDescription:
destination:
archiveNameFormat: string
blobContainer: string
name: string
storageAccountResourceId: string
enabled: false
encoding: Avro
intervalInSeconds: 0
sizeLimitInBytes: 0
skipEmptyArchives: false
eventHubName: string
messageRetentionInDays: 0
namespaceName: string
partitionCount: 0
resourceGroupName: string
status: Active
EventHub 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 EventHub resource accepts the following input properties:
- Namespace
Name string - The Namespace name
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Capture
Description Pulumi.Azure Native. Event Hub. Inputs. Capture Description - Properties of capture description
- Event
Hub stringName - The Event Hub name
- Message
Retention doubleIn Days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- Partition
Count double - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- Status
Pulumi.
Azure Native. Event Hub. Entity Status - Enumerates the possible values for the status of the Event Hub.
- Namespace
Name string - The Namespace name
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Capture
Description CaptureDescription Args - Properties of capture description
- Event
Hub stringName - The Event Hub name
- Message
Retention float64In Days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- Partition
Count float64 - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- Status
Entity
Status - Enumerates the possible values for the status of the Event Hub.
- namespace
Name String - The Namespace name
- resource
Group StringName - Name of the resource group within the azure subscription.
- capture
Description CaptureDescription - Properties of capture description
- event
Hub StringName - The Event Hub name
- message
Retention DoubleIn Days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- partition
Count Double - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- status
Entity
Status - Enumerates the possible values for the status of the Event Hub.
- namespace
Name string - The Namespace name
- resource
Group stringName - Name of the resource group within the azure subscription.
- capture
Description CaptureDescription - Properties of capture description
- event
Hub stringName - The Event Hub name
- message
Retention numberIn Days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- partition
Count number - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- status
Entity
Status - Enumerates the possible values for the status of the Event Hub.
- namespace_
name str - The Namespace name
- resource_
group_ strname - Name of the resource group within the azure subscription.
- capture_
description CaptureDescription Args - Properties of capture description
- event_
hub_ strname - The Event Hub name
- message_
retention_ floatin_ days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- partition_
count float - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- status
Entity
Status - Enumerates the possible values for the status of the Event Hub.
- namespace
Name String - The Namespace name
- resource
Group StringName - Name of the resource group within the azure subscription.
- capture
Description Property Map - Properties of capture description
- event
Hub StringName - The Event Hub name
- message
Retention NumberIn Days - Number of days to retain the events for this Event Hub, value should be 1 to 7 days
- partition
Count Number - Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
- status
"Active" | "Disabled" | "Restoring" | "Send
Disabled" | "Receive Disabled" | "Creating" | "Deleting" | "Renaming" | "Unknown" - Enumerates the possible values for the status of the Event Hub.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventHub resource produces the following output properties:
- Created
At string - Exact time the Event Hub was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Partition
Ids List<string> - Current number of shards on the Event Hub.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
At string - The exact time the message was updated.
- Created
At string - Exact time the Event Hub was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Partition
Ids []string - Current number of shards on the Event Hub.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
At string - The exact time the message was updated.
- created
At String - Exact time the Event Hub was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- partition
Ids List<String> - Current number of shards on the Event Hub.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At String - The exact time the message was updated.
- created
At string - Exact time the Event Hub was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- partition
Ids string[] - Current number of shards on the Event Hub.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At string - The exact time the message was updated.
- created_
at str - Exact time the Event Hub was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- partition_
ids Sequence[str] - Current number of shards on the Event Hub.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated_
at str - The exact time the message was updated.
- created
At String - Exact time the Event Hub was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- partition
Ids List<String> - Current number of shards on the Event Hub.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At String - The exact time the message was updated.
Supporting Types
CaptureDescription, CaptureDescriptionArgs
Properties to configure capture description for eventhub- Destination
Pulumi.
Azure Native. Event Hub. Inputs. Destination - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- Enabled bool
- A value that indicates whether capture description is enabled.
- Encoding
Pulumi.
Azure Native. Event Hub. Encoding Capture Description - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- Interval
In intSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- Size
Limit intIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- Skip
Empty boolArchives - A value that indicates whether to Skip Empty Archives
- Destination Destination
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- Enabled bool
- A value that indicates whether capture description is enabled.
- Encoding
Encoding
Capture Description - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- Interval
In intSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- Size
Limit intIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- Skip
Empty boolArchives - A value that indicates whether to Skip Empty Archives
- destination Destination
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled Boolean
- A value that indicates whether capture description is enabled.
- encoding
Encoding
Capture Description - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In IntegerSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit IntegerIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty BooleanArchives - A value that indicates whether to Skip Empty Archives
- destination Destination
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled boolean
- A value that indicates whether capture description is enabled.
- encoding
Encoding
Capture Description - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In numberSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit numberIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty booleanArchives - A value that indicates whether to Skip Empty Archives
- destination Destination
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled bool
- A value that indicates whether capture description is enabled.
- encoding
Encoding
Capture Description - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval_
in_ intseconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size_
limit_ intin_ bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip_
empty_ boolarchives - A value that indicates whether to Skip Empty Archives
- destination Property Map
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled Boolean
- A value that indicates whether capture description is enabled.
- encoding
"Avro" | "Avro
Deflate" - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In NumberSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit NumberIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty BooleanArchives - A value that indicates whether to Skip Empty Archives
CaptureDescriptionResponse, CaptureDescriptionResponseArgs
Properties to configure capture description for eventhub- Destination
Pulumi.
Azure Native. Event Hub. Inputs. Destination Response - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- Enabled bool
- A value that indicates whether capture description is enabled.
- Encoding string
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- Interval
In intSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- Size
Limit intIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- Skip
Empty boolArchives - A value that indicates whether to Skip Empty Archives
- Destination
Destination
Response - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- Enabled bool
- A value that indicates whether capture description is enabled.
- Encoding string
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- Interval
In intSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- Size
Limit intIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- Skip
Empty boolArchives - A value that indicates whether to Skip Empty Archives
- destination
Destination
Response - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled Boolean
- A value that indicates whether capture description is enabled.
- encoding String
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In IntegerSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit IntegerIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty BooleanArchives - A value that indicates whether to Skip Empty Archives
- destination
Destination
Response - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled boolean
- A value that indicates whether capture description is enabled.
- encoding string
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In numberSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit numberIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty booleanArchives - A value that indicates whether to Skip Empty Archives
- destination
Destination
Response - Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled bool
- A value that indicates whether capture description is enabled.
- encoding str
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval_
in_ intseconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size_
limit_ intin_ bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip_
empty_ boolarchives - A value that indicates whether to Skip Empty Archives
- destination Property Map
- Properties of Destination where capture will be stored. (Storage Account, Blob Names)
- enabled Boolean
- A value that indicates whether capture description is enabled.
- encoding String
- Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
- interval
In NumberSeconds - The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
- size
Limit NumberIn Bytes - The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
- skip
Empty BooleanArchives - A value that indicates whether to Skip Empty Archives
Destination, DestinationArgs
Capture storage details for capture description- Archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- Blob
Container string - Blob container Name
- Name string
- Name for capture destination
- Storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- Archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- Blob
Container string - Blob container Name
- Name string
- Name for capture destination
- Storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- archive
Name StringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container String - Blob container Name
- name String
- Name for capture destination
- storage
Account StringResource Id - Resource id of the storage account to be used to create the blobs
- archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container string - Blob container Name
- name string
- Name for capture destination
- storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- archive_
name_ strformat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob_
container str - Blob container Name
- name str
- Name for capture destination
- storage_
account_ strresource_ id - Resource id of the storage account to be used to create the blobs
- archive
Name StringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container String - Blob container Name
- name String
- Name for capture destination
- storage
Account StringResource Id - Resource id of the storage account to be used to create the blobs
DestinationResponse, DestinationResponseArgs
Capture storage details for capture description- Archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- Blob
Container string - Blob container Name
- Name string
- Name for capture destination
- Storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- Archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- Blob
Container string - Blob container Name
- Name string
- Name for capture destination
- Storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- archive
Name StringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container String - Blob container Name
- name String
- Name for capture destination
- storage
Account StringResource Id - Resource id of the storage account to be used to create the blobs
- archive
Name stringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container string - Blob container Name
- name string
- Name for capture destination
- storage
Account stringResource Id - Resource id of the storage account to be used to create the blobs
- archive_
name_ strformat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob_
container str - Blob container Name
- name str
- Name for capture destination
- storage_
account_ strresource_ id - Resource id of the storage account to be used to create the blobs
- archive
Name StringFormat - Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
- blob
Container String - Blob container Name
- name String
- Name for capture destination
- storage
Account StringResource Id - Resource id of the storage account to be used to create the blobs
EncodingCaptureDescription, EncodingCaptureDescriptionArgs
- Avro
Avro- Avro
Deflate AvroDeflate
- Encoding
Capture Description Avro Avro- Encoding
Capture Description Avro Deflate AvroDeflate
- Avro
Avro- Avro
Deflate AvroDeflate
- Avro
Avro- Avro
Deflate AvroDeflate
- AVRO
Avro- AVRO_DEFLATE
AvroDeflate
- "Avro"
Avro- "Avro
Deflate" AvroDeflate
EntityStatus, EntityStatusArgs
- Active
Active- Disabled
Disabled- Restoring
Restoring- Send
Disabled SendDisabled- Receive
Disabled ReceiveDisabled- Creating
Creating- Deleting
Deleting- Renaming
Renaming- Unknown
Unknown
- Entity
Status Active Active- Entity
Status Disabled Disabled- Entity
Status Restoring Restoring- Entity
Status Send Disabled SendDisabled- Entity
Status Receive Disabled ReceiveDisabled- Entity
Status Creating Creating- Entity
Status Deleting Deleting- Entity
Status Renaming Renaming- Entity
Status Unknown Unknown
- Active
Active- Disabled
Disabled- Restoring
Restoring- Send
Disabled SendDisabled- Receive
Disabled ReceiveDisabled- Creating
Creating- Deleting
Deleting- Renaming
Renaming- Unknown
Unknown
- Active
Active- Disabled
Disabled- Restoring
Restoring- Send
Disabled SendDisabled- Receive
Disabled ReceiveDisabled- Creating
Creating- Deleting
Deleting- Renaming
Renaming- Unknown
Unknown
- ACTIVE
Active- DISABLED
Disabled- RESTORING
Restoring- SEND_DISABLED
SendDisabled- RECEIVE_DISABLED
ReceiveDisabled- CREATING
Creating- DELETING
Deleting- RENAMING
Renaming- UNKNOWN
Unknown
- "Active"
Active- "Disabled"
Disabled- "Restoring"
Restoring- "Send
Disabled" SendDisabled- "Receive
Disabled" ReceiveDisabled- "Creating"
Creating- "Deleting"
Deleting- "Renaming"
Renaming- "Unknown"
Unknown
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventhub:EventHub sdk-EventHub-10 /subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-NotificationHubs-AustraliaEast/providers/Microsoft.EventHub/namespaces/sdk-Namespace-716/eventhubs/sdk-EventHub-10
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Monday, Mar 9, 2026 by Pulumi
