Skip to content

Commit d1ed0ef

Browse files
committed
fixed select command, removed c:\ prompt
1 parent 80cad7e commit d1ed0ef

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/load-balancer/upgrade-basic-standard-with-powershell.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The PowerShell module performs the following functions:
6969
Install the module from [PowerShell Gallery](https://www.powershellgallery.com/packages/AzureBasicLoadBalancerUpgrade)
7070

7171
```powershell
72-
PS C:\> Install-Module -Name AzureBasicLoadBalancerUpgrade -Scope CurrentUser -Repository PSGallery -Force
72+
Install-Module -Name AzureBasicLoadBalancerUpgrade -Scope CurrentUser -Repository PSGallery -Force
7373
```
7474

7575
## Pre- and Post-migration Steps
@@ -95,7 +95,7 @@ PS C:\> Install-Module -Name AzureBasicLoadBalancerUpgrade -Scope CurrentUser -R
9595
1. Ensure you have selected the Basic Load Balancer's subscription ID by running `Select-AzSubscription`.
9696

9797
```powershell
98-
PS C:\> Select-AzAccount -Subscription <SubscriptionId>
98+
Select-AzSubscription -Subscription <SubscriptionId>
9999
```
100100
101101
2. Find the Load Balancer you wish to upgrade. Record its name and resource group name.
@@ -116,39 +116,39 @@ PS C:\> Install-Module -Name AzureBasicLoadBalancerUpgrade -Scope CurrentUser -R
116116
Validate that a Basic Load Balancer is supported for upgrade
117117
118118
```powershell
119-
PS C:\> Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -validateScenarioOnly
119+
Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -validateScenarioOnly
120120
```
121121

122122
### Example: upgrade by name
123123

124124
Upgrade a Basic Load Balancer to a Standard Load Balancer with the same name, providing the Basic Load Balancer name and resource group name
125125

126126
```powershell
127-
PS C:\> Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName>
127+
Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName>
128128
```
129129

130130
### Example: upgrade, change name, and show logs
131131

132132
Upgrade a Basic Load Balancer to a Standard Load Balancer with the specified name, displaying logged output on screen
133133

134134
```powershell
135-
PS C:\> Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -StandardLoadBalancerName <newStandardLBName> -FollowLog
135+
Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -StandardLoadBalancerName <newStandardLBName> -FollowLog
136136
```
137137

138138
### Example: upgrade with alternate backup path
139139

140140
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
141141

142142
```powershell
143-
PS C:\> Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -StandardLoadBalancerName <newStandardLBName> -RecoveryBackupPath C:\BasicLBRecovery
143+
Start-AzBasicLoadBalancerUpgrade -ResourceGroupName <loadBalancerRGName> -BasicLoadBalancerName <basicLBName> -StandardLoadBalancerName <newStandardLBName> -RecoveryBackupPath C:\BasicLBRecovery
144144
```
145145

146146
### Example: validate completed migration
147147

148148
Validate a completed migration by passing the Basic Load Balancer state file backup and the Standard Load Balancer name
149149

150150
```powershell
151-
PS C:\> Start-AzBasicLoadBalancerUpgrade -validateCompletedMigration -StandardLoadBalancerName <newStandardLBName> -basicLoadBalancerStatePath C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json
151+
Start-AzBasicLoadBalancerUpgrade -validateCompletedMigration -StandardLoadBalancerName <newStandardLBName> -basicLoadBalancerStatePath C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json
152152
```
153153

154154
### Example: migrate multiple, related Load Balancers
@@ -157,7 +157,7 @@ Migrate multiple Load Balancers with shared backend members at the same time, us
157157

158158
```powershell
159159
# build array of multiple basic load balancers
160-
PS C:\> $multiLBConfig = @(
160+
$multiLBConfig = @(
161161
@{
162162
'standardLoadBalancerName' = 'myStandardInternalLB01' # specifying the standard load balancer name is optional
163163
'basicLoadBalancer' = (Get-AzLoadBalancer -ResourceGroupName myRG -Name myBasicInternalLB01)
@@ -168,23 +168,23 @@ PS C:\> $multiLBConfig = @(
168168
}
169169
)
170170
# pass the array of load balancer configurations to the -MultiLBConfig parameter
171-
PS C:\> Start-AzBasicLoadBalancerUpgrade -MultiLBConfig $multiLBConfig
171+
Start-AzBasicLoadBalancerUpgrade -MultiLBConfig $multiLBConfig
172172
```
173173

174174
### Example: retry failed virtual machine scale set migration
175175

176176
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
177177

178178
```powershell
179-
PS C:\> Start-AzBasicLoadBalancerUpgrade -FailedMigrationRetryFilePathLB C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json -FailedMigrationRetryFilePathVMSS C:\RecoveryBackups\VMSS_myVMSS_rg-basiclbrg_20220912T1740032148.json
179+
Start-AzBasicLoadBalancerUpgrade -FailedMigrationRetryFilePathLB C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json -FailedMigrationRetryFilePathVMSS C:\RecoveryBackups\VMSS_myVMSS_rg-basiclbrg_20220912T1740032148.json
180180
```
181181

182182
### Example: retry failed virtual machine migration
183183

184184
Retry a failed upgrade for a VM load balancer (due to error or script termination) by providing the Basic Load Balancer backup state file
185185

186186
```powershell
187-
PS C:\> Start-AzBasicLoadBalancerUpgrade -FailedMigrationRetryFilePathLB C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json
187+
Start-AzBasicLoadBalancerUpgrade -FailedMigrationRetryFilePathLB C:\RecoveryBackups\State_mybasiclb_rg-basiclbrg_20220912T1740032148.json
188188
```
189189

190190
## Common Questions

0 commit comments

Comments
 (0)