你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzEventHubDestinationObject

Create an in-memory object for EventHubDestination.

Syntax

New-AzEventHubDestinationObject
   [-EventHubResourceId <String>]
   [-Name <String>]
   [<CommonParameters>]

Description

Create an in-memory object for EventHubDestination.

Examples

Example 1: Create event hub destination object

New-AzEventHubDestinationObject -EventHubResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.EventHub/namespaces/amcseastushub -Name testHub

EventHubResourceId                                                                                                                 Name
------------------                                                                                                                 ----
/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.EventHub/namespaces/amcseastushub testHub

This command creates event hub destination object.

Parameters

-EventHubResourceId

The resource ID of the event hub.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

EventHubDestination