Skip to content

Commit dd32b5f

Browse files
committed
Update tutorial-install-apps-powershell.md
1 parent 86f4800 commit dd32b5f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

articles/virtual-machine-scale-sets/tutorial-install-apps-powershell.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $customConfig = @{
6565
}
6666
```
6767

68-
Now, apply the Custom Script Extension with [Add-AzVmssExtension](/powershell/module/az.Compute/Add-azVmssExtension). The configuration object previously defined is passed to the extension. Update and run the extension on the VM instances with [Update-AzVmss](/powershell/module/az.compute/update-azvmss).
68+
Now, apply the Custom Script Extension with [Add-AzVmssExtension](/powershell/module/az.Compute/Add-azVmssExtension). The configuration object previously defined is passed to the extension. Update the extension on the scale set profile instances with [Update-AzVmss](/powershell/module/az.compute/update-azvmss).
6969

7070
```azurepowershell-interactive
7171
# Get information about the scale set
@@ -88,9 +88,13 @@ Update-AzVmss `
8888
-Name "myScaleSet" `
8989
-VirtualMachineScaleSet $vmss
9090
91-
# Update all of the existing scale set instances
92-
Update-AzVmssInstance -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -InstanceId "*"
91+
```
92+
93+
## Update the scale set instances
94+
Perform a manual upgrade to apply the updated extension to all the existing scale set instances. The update may take a couple of minutes to complete.
9395

96+
```azurepowershell-interactive
97+
Update-AzVmssInstance -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -InstanceId "*"
9498
```
9599

96100
Each VM instance in the scale set downloads and runs the script from GitHub. In a more complex example, multiple application components and files could be installed. If the scale set is scaled up, the new VM instances automatically apply the same Custom Script Extension definition and install the required application.
@@ -147,7 +151,7 @@ Enter the public IP address of the load balancer in to a web browser. The load b
147151
Leave the web browser open so that you can see an updated version in the next step.
148152

149153
## Update app deployment
150-
Throughout the lifecycle of a scale set, you may need to deploy an updated version of your application. With the Custom Script Extension, you can reference an updated deploy script and then reapply the extension to your scale set. When the scale set was created in a previous step, the `-UpgradePolicyMode` was set to *Automatic*. This setting allows the VM instances in the scale set to automatically update and apply the latest version of your application.
154+
Throughout the lifecycle of a scale set, you may need to deploy an updated version of your application. With the Custom Script Extension, you can reference an updated deploy script and then reapply the extension to your scale set.
151155

152156
Create a new config definition named *customConfigv2*. This definition runs an updated *v2* version of the application install script:
153157

@@ -158,7 +162,7 @@ $customConfigv2 = @{
158162
}
159163
```
160164

161-
Update the Custom Script Extension configuration to the VM instances in your scale set. The *customConfigv2* definition is used to apply the updated version of the application:
165+
Update the Custom Script Extension configuration to the VM instances in your scale set. The *customConfigv2* definition is used to apply the updated version of the application to the scale set:
162166

163167
```azurepowershell-interactive
164168
$vmss = Get-AzVmss `
@@ -174,6 +178,12 @@ Update-AzVmss `
174178
175179
Update-AzVmssInstance -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -InstanceId "*"
176180
```
181+
## Update the scale set instances
182+
Perform a manual upgrade to apply the updated extension to all the existing scale set instances. The update may take a couple of minutes to complete.
183+
184+
```azurepowershell-interactive
185+
Update-AzVmssInstance -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -InstanceId "*"
186+
```
177187

178188
All VM instances in the scale set are updated with the latest version of the sample web page. To see the updated version, refresh the web site in your browser:
179189

0 commit comments

Comments
 (0)