New-AzActionGroupEventHubReceiverObject
Create an in-memory object for EventHubReceiver.
Syntax
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 "00001111-aaaa-2222-bbbb-3333cccc4444" -TenantId "00001111-aaaa-2222-bbbb-3333cccc4444"
EventHubName : testEventHub
EventHubNameSpace : testEventHubNameSpace
Name : sample eventhub
SubscriptionId : 00001111-aaaa-2222-bbbb-3333cccc4444
TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444
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 9e223dbe-3399-4e19-88eb-0975f02ac87f
EventHubName : testEventHub
EventHubNameSpace : actiongrouptest
Name : sample eventhub
SubscriptionId : 9e223dbe-3399-4e19-88eb-0975f02ac87f
TenantId :
UseCommonAlertSchema :
This command creates another action group event hub receiver object.
Parameters
-EventHubName
The name of the specific Event Hub queue.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EventHubNameSpace
The Event Hub namespace.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the Event hub receiver. Names must be unique across all receivers within an action group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The Id for the subscription containing this event hub.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TenantId
The tenant Id for the subscription containing this event hub.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseCommonAlertSchema
Indicates whether to use common alert schema.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |