New-AzEventGridEventHubEventSubscriptionDestinationObject
为 EventHubEventSubscriptionDestination 创建内存中对象。
语法
New-AzEventGridEventHubEventSubscriptionDestinationObject
[-DeliveryAttributeMapping <IDeliveryAttributeMapping[]>]
[-ResourceId <String>]
[<CommonParameters>]
说明
为 EventHubEventSubscriptionDestination 创建内存中对象。
示例
示例 1:为 EventHubEventSubscriptionDestination 创建内存中对象。
$damObj = New-AzEventGridDeliveryAttributeMappingObject -Type "TestType" -Name "TestName"
$eventSubObj = Get-AzEventGridSubscription -ResourceGroupName azps_test_group_eventgrid -DomainName azps-domain -TopicName azps-topic
New-AzEventGridEventHubEventSubscriptionDestinationObject -DeliveryAttributeMapping $damObj -ResourceId $eventSubObj.Id
New-AzEventGridEventHubEventSubscriptionDestinationObject -DeliveryAttributeMapping $damObj -ResourceId $eventSubObj.Id
为 EventHubEventSubscriptionDestination 创建内存中对象。
参数
-DeliveryAttributeMapping
传递属性详细信息。
类型: | IDeliveryAttributeMapping[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
表示事件订阅的事件中心目标的终结点的 Azure 资源 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |