Create a read replica of an existing mongo cluster.
The source cluster must have the
"GeoReplicas" preview feature enabled.
The replica is provisioned as a new mongo cluster
and inherits its configuration (compute, storage, sharding) from the source cluster.
A
replica in the same region as the source is created as an in-region 'AsyncReplica'; a
replica in a different region is created as a cross-region 'GeoAsyncReplica'.
Examples
Example 1: Create a cross-region read replica of a mongo cluster
Name Location ProvisioningState
---- -------- -----------------
myReplica westus2 Succeeded
Create a cross-region read replica of a source mongo cluster.
The replica inherits
its configuration and administrator credentials from the source, so no password is
supplied.
A replica placed in a different region is created as a GeoAsyncReplica.
The source cluster must have the GeoReplicas preview feature enabled.
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Name or resource ID of the source (primary) mongo cluster to replicate from.
If a name is given, the current subscription and resource group are assumed.
Provide a full ARM ID for a source in another resource group or subscription.
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.