New-AzEventHubDirectDestinationObject
Create an in-memory object for EventHubDirectDestination.
Syntax
New-AzEventHubDirectDestinationObject
[-EventHubResourceId <String>]
[-Name <String>]
[<CommonParameters>]
Description
Create an in-memory object for EventHubDirectDestination.
Examples
Example 1: Create event hub direct destination object
New-AzEventHubDirectDestinationObject -EventHubResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.EventHub/namespaces/amcseastushub -Name testHubDirect
EventHubResourceId Name
------------------ ----
/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.EventHub/namespaces/amcseastushub testHubDirect
This command creates event hub direct destination object.
Parameters
-EventHubResourceId
The resource ID of the event hub.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell