Edit

Share via


New-AzEventGridServiceBusTopicEventSubscriptionDestinationObject

Create an in-memory object for ServiceBusTopicEventSubscriptionDestination.

Syntax

Default (Default)

New-AzEventGridServiceBusTopicEventSubscriptionDestinationObject

    [-DeliveryAttributeMapping <IDeliveryAttributeMapping[]>]
    [-ResourceId <String>]
    [<CommonParameters>]

Description

Create an in-memory object for ServiceBusTopicEventSubscriptionDestination.

Examples

Example 1: Create an in-memory object for ServiceBusTopicEventSubscriptionDestination.

$damObj = New-AzEventGridDeliveryAttributeMappingObject -Type "TestType" -Name "TestName"
$eventSubObj = Get-AzEventGridSubscription -ResourceGroupName azps_test_group_eventgrid -DomainName azps-domain -TopicName azps-topic
New-AzEventGridServiceBusTopicEventSubscriptionDestinationObject -DeliveryAttributeMapping $damObj -ResourceId $eventSubObj.Id
EndpointType
------------
ServiceBusTopic

Create an in-memory object for ServiceBusTopicEventSubscriptionDestination.

Parameters

-DeliveryAttributeMapping

Delivery attribute details.

Parameter properties

Type:

IDeliveryAttributeMapping[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceId

The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

ServiceBusTopicEventSubscriptionDestination