New-AzCosmosDBLocationObject
Create a new CosmosDB Location Object(PSLocation).
Syntax
Default (Default)
New-AzCosmosDBLocationObject
-LocationName <String>
[-FailoverPriority <Int32>]
[-IsZoneRedundant <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Create a new CosmosDB Location Object(PSLocation).
Examples
Example 1
New-AzCosmosDBLocationObject -LocationName "locationName" -FailoverPriority 2 -IsZoneRedundant 0
LocationName FailoverPriority IsZoneRedundant
------------ ---------------- ---------------
{locationName} 2 False
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-FailoverPriority
Failover priority of the location.
Parameter properties
Type: Nullable<T> [ Int32 ]
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
-IsZoneRedundant
Boolean to indicate whether or not this region is an AvailabilityZone.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-LocationName
Name of the Location in string.
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
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 .
None
Outputs