Skip to content

Commit dd14ea1

Browse files
authored
Update flexible-virtual-machine-scale-sets-cli.md
Addressing Naman's review
1 parent e95079c commit dd14ea1

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

articles/virtual-machine-scale-sets/flexible-virtual-machine-scale-sets-cli.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ To open the Cloud Shell, select **Open Cloud Shell** from the upper right corner
3030
Define environment variables as follows.
3131

3232
```bash
33-
3433
export RANDOM_ID="$(openssl rand -hex 3)"
3534
export MY_RESOURCE_GROUP_NAME="myVMSSResourceGroup$RANDOM_ID"
3635
export REGION=EastUS
@@ -46,7 +45,6 @@ export MY_APPGW_SN_NAME="myAPPGWSN$RANDOM_ID"
4645
export MY_APPGW_SN_PREFIX="10.$NETWORK_PREFIX.1.0/24"
4746
export MY_APPGW_NAME="myAPPGW$RANDOM_ID"
4847
export MY_APPGW_PUBLIC_IP_NAME="myAPPGWPublicIP$RANDOM_ID"
49-
5048
```
5149

5250
## Create a resource group
@@ -58,7 +56,6 @@ az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION -o JSON
5856
```
5957

6058
Results:
61-
6259
<!-- expected_similarity=0.3 -->
6360
```json
6461
{
@@ -85,7 +82,6 @@ az network vnet create --name $MY_VNET_NAME --resource-group $MY_RESOURCE_GROU
8582
```
8683

8784
Results:
88-
8985
<!-- expected_similarity=0.3 -->
9086
```json
9187
{
@@ -132,7 +128,6 @@ az network vnet subnet create --name $MY_APPGW_SN_NAME --resource-group $MY_RE
132128
```
133129

134130
Results:
135-
136131
<!-- expected_similarity=0.3 -->
137132
```json
138133
{
@@ -152,10 +147,9 @@ The following command creates a standard, zone redundant, static, public IPv4 in
152147

153148
```bash
154149
az network public-ip create --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_APPGW_PUBLIC_IP_NAME --sku Standard --location $REGION --allocation-method static --version IPv4 --zone 1 2 3 -o JSON
155-
```
150+
```
156151

157152
Results:
158-
159153
<!-- expected_similarity=0.3 -->
160154
```json
161155
{
@@ -193,7 +187,7 @@ In this step, you create an Application Gateway that you're going to integrate w
193187

194188
```bash
195189
az network application-gateway create --name $MY_APPGW_NAME --location $REGION --resource-group $MY_RESOURCE_GROUP_NAME --vnet-name $MY_VNET_NAME --subnet $MY_APPGW_SN_NAME --capacity 2 --zones 1 2 3 --sku Standard_v2 --http-settings-cookie-based-affinity Disabled --frontend-port 80 --http-settings-port 80 --http-settings-protocol Http --public-ip-address $MY_APPGW_PUBLIC_IP_NAME --priority 1001 -o JSON
196-
```
190+
```
197191

198192
<!-- expected_similarity=0.3 -->
199193
```json
@@ -383,7 +377,7 @@ az network application-gateway create --name $MY_APPGW_NAME --location $REGION
383377
"urlPathMaps": []
384378
}
385379
}
386-
```
380+
```
387381

388382
## Create a Virtual Machine Scale Set
389383

@@ -398,7 +392,6 @@ az vmss create --name $MY_VMSS_NAME --resource-group $MY_RESOURCE_GROUP_NAME --i
398392
```
399393

400394
Results:
401-
402395
<!-- expected_similarity=0.3 -->
403396
```json
404397
{
@@ -519,7 +512,6 @@ az vmss extension set --publisher Microsoft.Azure.Extensions --version 2.0 --na
519512
```
520513

521514
Results:
522-
523515
<!-- expected_similarity=0.3 -->
524516
```json
525517
{
@@ -723,7 +715,6 @@ az monitor autoscale create --resource-group $MY_RESOURCE_GROUP_NAME --resource
723715
```
724716

725717
Results:
726-
727718
<!-- expected_similarity=0.3 -->
728719
```json
729720
{
@@ -777,7 +768,6 @@ az monitor autoscale rule create --resource-group $MY_RESOURCE_GROUP_NAME --auto
777768
```
778769

779770
Results:
780-
781771
<!-- expected_similarity=0.3 -->
782772
```json
783773
{
@@ -813,7 +803,6 @@ az monitor autoscale rule create --resource-group $MY_RESOURCE_GROUP_NAME --aut
813803
```
814804

815805
Results:
816-
817806
<!-- expected_similarity=0.3 -->
818807
```json
819808
{
@@ -850,12 +839,9 @@ az network public-ip show --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_AP
850839

851840
## Clean up resources
852841

853-
To remove your scale set and other resources, delete the resource group and all its resources with [az group delete](/cli/azure/group). 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 another prompt to do so.
854-
855-
```azurecli-interactive
856-
az group delete --name myResourceGroup --yes --no-wait
857-
```
842+
To avoid Azure charges, you should clean up unneeded resources. When you no longer need your scale set and other resources, delete the resource group and all its resources with [az group delete](/cli/azure/group). 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 another prompt to do so. This tutorial cleans up resources for you.
858843

859844
## Next steps
860-
> [!div class="nextstepaction"]
861-
> [Learn how to create a scale set in the Azure Portal.](flexible-virtual-machine-scale-sets-portal.md)
845+
- [Learn how to create a scale set in the Azure Portal.](flexible-virtual-machine-scale-sets-portal.md)
846+
- [Learn about Virtual Machine Scale Sets.](overview.md)
847+
- [Automatically scale a Virtual Machine Scale Set with the Azure CLI](tutorial-autoscale-cli.md)

0 commit comments

Comments
 (0)