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
The highlighted portion is the scale set resource definition. To create a scale with a template, you define the appropriate resources. The core parts of the virtual machine scale set resource type are:
45
47
46
48
| Property | Description of property | Example template value |
@@ -56,7 +58,9 @@ The highlighted portion is the scale set resource definition. To create a scale
56
58
| osProfile.adminUsername | The username for each VM instance | azureuser |
57
59
| osProfile.adminPassword | The password for each VM instance | P@ssw0rd! |
58
60
59
-
To customize a scale set template, you can change the VM size or initial capacity, or use a different platform or a custom image.
61
+
To customize a scale set template, you can change the VM size or initial capacity. Another option is to use a different platform or a custom image.
62
+
63
+
#### Add a sample application
60
64
61
65
To test your scale set, install a basic web application. When you deploy a scale set, VM extensions can provide post-deployment configuration and automation tasks, such as installing an app. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time. To apply an extension to your scale set, you add the *extensionProfile* section to the preceding resource example. The extension profile typically defines the following properties:
62
66
@@ -90,8 +94,7 @@ az group deployment create \
90
94
91
95
Answer the prompts to provide a scale set name, instance count, and admin credentials for the VM instances. It takes a few minutes for the scale set and supporting resources to be created.
92
96
93
-
94
-
## Validate the deployment
97
+
## Test the deployment
95
98
96
99
To see your scale set in action, access the sample web application in a web browser. Obtain the public IP address of the load balancer with [az network public-ip list](/cli/azure/network/public-ip) as follows:
97
100
@@ -105,16 +108,16 @@ Enter the public IP address of the load balancer in to a web browser in the form
105
108
106
109

107
110
108
-
109
111
## Clean up resources
112
+
110
113
When no longer needed, you can use [az group delete](/cli/azure/group) to remove the resource group, scale set, and all related resources as follows. The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without an additional prompt to do so.
111
114
112
115
```azurecli-interactive
113
116
az group delete --name myResourceGroup --yes --no-wait
114
117
```
115
118
116
-
117
119
## Next steps
120
+
118
121
In this quickstart, you created a Linux scale set with an Azure template and used the Custom Script Extension to install a basic Python web server on the VM instances. To learn more, continue to the tutorial for how to create and manage Azure virtual machine scale sets.
0 commit comments