You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-balancer/upgrade-basic-standard-with-powershell.md
+60-14Lines changed: 60 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,37 @@ The PowerShell module performs the following functions:
48
48
- Basic Load Balancers with a Virtual Machine Scale Set backend pool member where one or more Virtual Machine Scale Set instances have ProtectFromScaleSetActions Instance Protection policies enabled
49
49
- Migrating a Basic Load Balancer to an existing Standard Load Balancer
50
50
51
+
## Pre- and Post-migration Steps
52
+
53
+
### Pre-migration steps
54
+
55
+
- Validate that your scenario is supported
56
+
- Plan for application downtime during migration
57
+
- Develop inbound and outbound connectivity tests for your traffic
58
+
- Plan for instance-level Public IP changes on Virtual Machine Scale Set instances
59
+
-[Recommended] Create Network Security Groups for your backend pool members, allowing the traffic through the Load Balancer and any other traffic which will need to be explicitly allowed on public Standard SKU resources
60
+
-[Recommended] Prepare your outbound connectivity, taking one of the following approaches:
61
+
- Add a NAT Gateway to your backend member's subnets
62
+
- Add Public IP addresses to each backend Virtual Machine or Virtual Machine Scale Set instance
63
+
- Plan to create Outbound Rules for Public Load Balancers with multiple backend pools post-migration
64
+
65
+
### Post-migration steps
66
+
67
+
-[Validate that your migration was successful](#example-validate-a-completed-migration-by-passing-the-basic-load-balancer-state-file-backup-and-the-standard-load-balancer-name)
68
+
- Test inbound application connectivity through the Load Balancer
69
+
- Test outbound connectivity from backend pool members to the Internet
70
+
- For Public Load Balancers with multiple backend pools, create Outbound Rules for each backend pool
71
+
72
+
## Install the 'AzureBasicLoadBalancerUpgrade' module
73
+
51
74
### Prerequisites
52
75
53
-
-**PowerShell**: A supported version of PowerShell version 7 or higher is the recommended version of PowerShell for use with the AzureBasicLoadBalancerUpgrade module on all platforms including Windows, Linux, and macOS. However, Windows PowerShell 5.1 is supported.
76
+
-**PowerShell**: A supported version of PowerShell version 7 or higher is recommended for use with the AzureBasicLoadBalancerUpgrade module on all platforms including Windows, Linux, and macOS. However, PowerShell 5.1 on Windows is supported.
54
77
-**Az PowerShell Module**: Determine whether you have the latest Az PowerShell module installed
55
78
- Install the latest [Az PowerShell module](/powershell/azure/install-azure-powershell)
56
79
-**Az.ResourceGraph PowerShell Module**: The Az.ResourceGraph PowerShell module is used to query resource configuration during upgrade and is a separate install from the Az PowerShell module. It will be automatically installed if you install the `AzureBasicLoadBalancerUpgrade` module using the `Install-Module` command as shown below.
57
80
58
-
##Install the 'AzureBasicLoadBalancerUpgrade' module
81
+
### Module Installation
59
82
60
83
Install the module from [PowerShell gallery](https://www.powershellgallery.com/packages/AzureBasicLoadBalancerUpgrade)
### Example: upgrade a Basic Load Balancer to a Standard Load Balancer with the specified name and store the Basic Load Balancer backup file at the specified path
134
+
### Example: upgrade with alternate backup path
135
+
136
+
Upgrade a Basic Load Balancer to a Standard Load Balancer with the specified name and store the Basic Load Balancer backup file at the specified path
### Example: migrate multiple Load Balancers with shared backend members at the same time
150
+
### Example: migrate multiple, related Load Balancers
151
+
152
+
Migrate multiple Load Balancers with shared backend members at the same time, usually when an application has an internal and an external Load Balancer
112
153
113
154
```powershell
114
155
# build array of multiple basic load balancers
115
156
PS C:\> $multiLBConfig = @(
116
157
@{
117
-
'standardLoadBalancerName' = 'myStandardLB01'
158
+
'standardLoadBalancerName' = 'myStandardInternalLB01' # specifying the standard load balancer name is optional
### Example: retry a failed upgrade for a virtual machine scale set's load balancer (due to error or script termination) by providing the Basic Load Balancer and Virtual Machine Scale Set backup state file
170
+
### Example: retry failed virtual machine scale set migration
171
+
172
+
Retry a failed upgrade for a virtual machine scale set's load balancer (due to error or script termination) by providing the Basic Load Balancer and Virtual Machine Scale Set backup state file
0 commit comments