Edit

New-AzActionGroupEventHubReceiverObject

Create an in-memory object for EventHubReceiver.

Syntax

Default (Default)

New-AzActionGroupEventHubReceiverObject
    -EventHubName <String>
    -EventHubNameSpace <String>
    -Name <String>
    -SubscriptionId <String>
    [-TenantId <String>]
    [-UseCommonAlertSchema <Boolean>]
    [<CommonParameters>]

Description

Create an in-memory object for EventHubReceiver.

Examples

Example 1: create action group event hub receiver

New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "testEventHubNameSpace" -Name "sample eventhub" -SubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" -TenantId "aaaabbbb-0000-cccc-1111-dddd2222eeee"
EventHubName         : testEventHub
EventHubNameSpace    : testEventHubNameSpace
Name                 : sample eventhub
SubscriptionId       : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
TenantId             : aaaabbbb-0000-cccc-1111-dddd2222eeee
UseCommonAlertSchema :

This command creates action group event hub receiver object.

Example 2: create another action group event hub receiver

New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "actiongrouptest" -Name "sample eventhub" -SubscriptionId bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
EventHubName         : testEventHub
EventHubNameSpace    : actiongrouptest
Name                 : sample eventhub
SubscriptionId       : bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
TenantId             :
UseCommonAlertSchema :

This command creates another action group event hub receiver object.

Parameters

-EventHubName

The name of the specific Event Hub queue.

Parameter properties

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

Parameter sets

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

-EventHubNameSpace

The Event Hub namespace.

Parameter properties

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

Parameter sets

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

-Name

The name of the Event hub receiver. Names must be unique across all receivers within an action group.

Parameter properties

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

Parameter sets

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

-SubscriptionId

The Id for the subscription containing this event hub.

Parameter properties

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

Parameter sets

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

-TenantId

The tenant Id for the subscription containing this event hub.

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

-UseCommonAlertSchema

Indicates whether to use common alert schema.

Parameter properties

Type:Boolean
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

EventHubReceiver