Skip to content

Commit 527b5fd

Browse files
committed
Add
1 parent c598d9b commit 527b5fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/mysql/migrate/migrate-single-flexible-mysql-import-cli.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ az mysql flexible-server import create --data-source-type "mysql_single" --data-
109109
The following example takes in the data source information for Single Server named 'test-single-server' and target Flexible Server information, creates a target Flexible Server named `test-flexible-server` in the `westus` location (same location as that of the source Single Server) with Zone Redundancy enabled and virtual network integration and performs an import from source to target. Learn more about virtual network configuration [here](../flexible-server/how-to-manage-virtual-network-cli.md).
110110

111111
```azurecli-interactive
112+
# create vnet
113+
az network vnet create --resource-group testGroup --name myVnet --location testLocation --address-prefixes 172.0.0.0/16
114+
115+
# create subnet
116+
az network vnet subnet create --resource-group testGroup --vnet-name myVnet --address-prefixes 172.0.0.0/24 --name mySubnet
117+
118+
# create private dns zone
119+
az network private-dns zone create -g testGroup -n myserver.private.contoso.com
120+
121+
# trigger mysql import
112122
az mysql flexible-server import create --data-source-type "mysql_single" --data-source "test-single-server" --resource-group "test-rg" --name "test-flexible-server" --high-availability ZoneRedundant --zone 1 --standby-zone 3 --vnet "myVnet" --subnet "mySubnet" --private-dns-zone "myserver.private.contoso.com"
113123
```
114124

0 commit comments

Comments
 (0)