New-AzEventGridEventHubEventSubscriptionDestinationObject
建立 EventHubEventSubscriptionDestination 的記憶體內物件。
語法
Default (預設值)
New-AzEventGridEventHubEventSubscriptionDestinationObject
[-DeliveryAttributeMapping <IDeliveryAttributeMapping[]>]
[-ResourceId <String>]
[<CommonParameters>]
Description
建立 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
傳遞屬性詳細數據。
參數屬性
| 類型: | |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ResourceId
代表活動訂閱活動中心目的地的 Azure 資源 ID。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。