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/virtual-machine-scale-sets/virtual-machine-scale-sets-faq.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,10 @@ ms.custom: na
25
25
Get answers to frequently asked questions about virtual machine scale sets in Azure.
26
26
27
27
## Top frequently asked questions for scale sets
28
+
28
29
**Q.** How many VMs can I have in a scale set?
29
30
30
-
**A.** A scale set can have 0 to 1,000 VMs based on platform images, or 0 to 300 VMs based on custom images.
31
+
**A.** A scale set can have 0 to 1,000 VMs based on platform images, or 0 to 300 VMs based on custom images.
31
32
32
33
**Q.** Are data disks supported within scale sets?
33
34
@@ -45,7 +46,7 @@ Get answers to frequently asked questions about virtual machine scale sets in Az
45
46
46
47
**Q.** How do I create a scale set by using a custom image?
47
48
48
-
**A.** Create a managed disk based on your custom image VHD and reference it in your scale set template. [Here's an example](https://github.com/chagarw/MDPP/tree/master/101-vmss-custom-os).
49
+
**A.** Create and capture a VM image, then use that as the source for your scale set. For a tutorial on how to create and use a custom VM image, you can use the [Azure CLI 2.0](tutorial-use-custom-image-cli.md) or [Azure PowerShell](tutorial-use-custom-image-powershell.md)
49
50
50
51
**Q.** If I reduce my scale set capacity from 20 to 15, which VMs are removed?
51
52
@@ -117,16 +118,20 @@ The sample uses the host-level CPU metric and a message count metric.
117
118
118
119
You can create alerts on metrics for virtual machine scale sets via PowerShell or Azure CLI. For more information, see [Azure Monitor PowerShell quickstart samples](https://azure.microsoft.com/documentation/articles/insights-powershell-samples/#create-alert-rules) and [Azure Monitor cross-platform CLI quickstart samples](https://azure.microsoft.com/documentation/articles/insights-cli-samples/#work-with-alerts).
119
120
120
-
The TargetResourceId of the virtual machine scale set looks like this:
121
+
The TargetResourceId of the virtual machine scale set looks like this:
You can choose any VM performance counter as the metric to set an alert for. For more information, see [Guest OS metrics for Resource Manager-based Windows VMs](https://azure.microsoft.com/documentation/articles/insights-autoscale-common-metrics/#guest-os-metrics-resource-manager-based-windows-vms) and [Guest OS metrics for Linux VMs](https://azure.microsoft.com/documentation/articles/insights-autoscale-common-metrics/#guest-os-metrics-linux-vms) in the [Azure Monitor autoscaling common metrics](https://azure.microsoft.com/documentation/articles/insights-autoscale-common-metrics/) article.
125
126
126
127
### How do I set up autoscale on a virtual machine scale set by using PowerShell?
127
128
128
-
To set up autoscale on a virtual machine scale set by using PowerShell, see the blog post [How to add autoscale to an Azure virtual machine scale set](https://msftstack.wordpress.com/2017/03/05/how-to-add-autoscale-to-an-azure-vm-scale-set/).
129
+
To set up autoscale on a virtual machine scale set by using PowerShell, see [automatically scale a virtual machine scale set](tutorial-autoscale-powershell.md). You can also configure autoscale with the [Azure CLI 2.0](tutorial-autoscale-cli.md) and [Azure templates](tutorial-autoscale-template.md)
130
+
131
+
132
+
### If I have stopped (deallocated) a VM, is that VM started as part of an autoscale operation?
129
133
134
+
No. If autoscale rules require additional VM instances as part of a scale set, a new VM instance is created. VM instances that are stopped (deallocated) are not started as part of an autoscale event. However, those stopped (deallocated) VMs may be deleted as part of an autoscale event that scales in the number of instances, the same way that any VM instance may be deleted based on the order of VM instance ID.
0 commit comments