Skip to content

Commit 52c5d1f

Browse files
Merge pull request #250914 from aditivgupta/privlink
Privlink
2 parents d73cc7b + e3e59fd commit 52c5d1f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
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

@@ -132,7 +142,7 @@ az keyvault set-policy -g testGroup -n testVault --object-id $identityPrincipalI
132142
--key-permissions wrapKey unwrapKey get list
133143
134144
# trigger mysql import for CMK enabled single server
135-
az mysql flexible-server import create --data-source-type "mysql_single" --data-source "test-single-server" --resource-group "test-rg" --name "test-flexible-server" --key <key identifier of testKey> --identity testIdentity
145+
az mysql flexible-server import create --data-source-type "mysql_single" --data-source "test-single-server" --resource-group "test-rg" --name "test-flexible-server" --key $keyIdentifier --identity testIdentity
136146
```
137147

138148
Here are the details for the arguments above:

0 commit comments

Comments
 (0)