Skip to content

Commit 8f5a85b

Browse files
Merge pull request #274179 from AbdullahBell/patch-122
Migrate to an availability zone-enabled ExpressRoute virtual network gateway using PowerShell
2 parents 6e15c78 + 92964fa commit 8f5a85b

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

articles/expressroute/expressroute-howto-gateway-migration-powershell.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,42 @@ Here are the steps to migrate to a new gateway using PowerShell.
5555
```
5656
### Prepare the migration
5757

58-
This script creates a new ExpressRoute Virtual Network gateway on the same GatewaySubnet and connects it to your existing ExpressRoute circuits.
58+
This script creates a new ExpressRoute virtual network gateway on the same gateway subnet and connects it to your existing ExpressRoute circuits.
5959

60+
1. Identify the resource ID of the gateway that will be migrated.
61+
62+
```azurepowershell-interactive
63+
$resourceId = Get-AzResource -Name {virtual network gateway name}
64+
$resourceId.Id
65+
```
6066
1. Run the **PrepareMigration.ps1** script to prepare the migration.
6167
6268
```azurepowershell-interactive
6369
gateway-migration/preparemigration.ps1
6470
```
65-
1. Enter the ID of the Gateway resource that is set to be migrated.
66-
1. The gateway subnet needs two or more address prefixes for migration. If you have only one prefix, you will be prompted to enter an additional prefix.
71+
1. Enter the resource ID of your gateway.
72+
1. The gateway subnet needs two or more address prefixes for the migration. If you have only one prefix, you're prompted to enter an additional prefix.
73+
1. Choose a name for your new resources, the new resource name will be added to the existing name. For example: existingresourcename_newname.
6774
1. Enter an availability zone for your new gateway.
6875
76+
6977
### Run the migration
7078
7179
This script transfers the configuration from the old gateway to the new one.
7280
73-
1. Run the **Migration.ps1** script to perform the migration.
81+
1. Identify the resource ID of your new post-migration gateway. Use the resource name you given for this gateway in the previous step.
82+
83+
```azurepowershell-interactive
84+
$resourceId = Get-AzResource -Name {virtual network gateway name}
85+
$resourceId.Id
86+
```
87+
1. Run the **Migration.ps1** script to perform the migration.
7488
7589
```azurepowershell-interactive
76-
gateway-migration/migration.ps1
90+
gateway-migration/migration.ps1
7791
```
78-
1. Enter the ID of the pre-migration gateway.
79-
1. Enter the ID of the post-migration gateway.
92+
1. Enter the resource ID of your premigration gateway.
93+
1. Enter the resource ID of your post-migration gateway.
8094
8195
### Commit the migration
8296
@@ -87,7 +101,7 @@ This script deletes the old gateway and its connections.
87101
```azurepowershell-interactive
88102
gateway-migration/commitmigration.ps1
89103
```
90-
1. Enter the ID of the pre-migration gateway.
104+
1. Enter the resource ID of the premigration gateway.
91105
92106
>[!IMPORTANT]
93107
> - Before running this step, verify that the new virtual network gateway has a working ExpressRoute connection.
@@ -99,4 +113,4 @@ This script deletes the old gateway and its connections.
99113
## Next steps
100114
101115
* Learn more about [designing for high availability](designing-for-high-availability-with-expressroute.md).
102-
* Plan for [disaster recovery](designing-for-disaster-recovery-with-expressroute-privatepeering.md) and [using VPN as a backup](use-s2s-vpn-as-backup-for-expressroute-privatepeering.md).
116+
* Plan for [disaster recovery](designing-for-disaster-recovery-with-expressroute-privatepeering.md) and [using VPN as a backup](use-s2s-vpn-as-backup-for-expressroute-privatepeering.md).

0 commit comments

Comments
 (0)