New-AzEventHubLocationsNameObject
Create an in-memory object for NamespaceReplicaLocation.
Syntax
New-AzEventHubLocationsNameObject
[-ClusterArmId <String>]
[-LocationName <String>]
[-RoleType <String>]
[<CommonParameters>]
Description
Create an in-memory object for NamespaceReplicaLocation.
Examples
Example 1: Construct an in-memory NamespaceReplicaLocation object
New-AzEventHubLocationsNameObject -LocationName mylocation -RoleType Secondary -ClusterArmId clusterid
Creates an in-memory object of type INamespaceReplicaLocation
.
An array of INamespaceReplicaLocation
can be fed as
input to GeoDataReplicationLocation
parameter of New-AzEventHubNamespace and Set-AzEventHubNamespace.
Parameters
-ClusterArmId
Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LocationName
Azure regions where a replica of the namespace is maintained.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RoleType
GeoDR Role Types.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |