New-AzEventHubLocationsNameObject
Create an in-memory object for NamespaceReplicaLocation.
Syntax
Default (Default)
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.
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 |
-LocationName
Azure regions where a replica of the namespace is maintained.
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 |
-RoleType
GeoDR Role Types.
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.