az mysql flexible-server replica
Manage read replicas.
Commands
| az mysql flexible-server replica create |
Create a read replica for a server. |
| az mysql flexible-server replica list |
List all read replicas for a given server. |
| az mysql flexible-server replica stop-replication |
Stop replication to a read replica and make it a read/write server. |
az mysql flexible-server replica create
Create a read replica for a server.
az mysql flexible-server replica create --replica-name
--resource-group
--source-server
[--no-wait]
[--zone]
Examples
Create a read replica 'testReplicaServer' for 'testserver' in the specified zone if available.
az mysql flexible-server replica create --replica-name testReplicaServer -g testGroup --source-server testserver --zone 3
Required Parameters
The name of the server to restore to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The name or resource ID of the source server to restore from.
Optional Parameters
Do not wait for the long-running operation to finish.
Availability zone into which to provision the resource.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az mysql flexible-server replica list
List all read replicas for a given server.
az mysql flexible-server replica list --name
--resource-group
Examples
List all read replicas for master server 'testserver'.
az mysql flexible-server replica list -g testGroup -n primaryservername
Required Parameters
Name of the source server.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az mysql flexible-server replica stop-replication
Stop replication to a read replica and make it a read/write server.
az mysql flexible-server replica stop-replication [--ids]
[--name]
[--resource-group]
[--yes]
Examples
Stop replication to 'testReplicaServer' and make it a read/write server.
az mysql flexible-server replica stop-replication -g testGroup -n testReplicaServer
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Do not prompt for confirmation.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ