Azure PowerShell samples for virtual machine scale sets.

The following table includes links to bash scripts built using Azure PowerShell.

Create and manage a scale set
Create a simple virtual machine scale set Creates a virtual machine scale set with minimal configuration.
Create a complete virtual machine scale set Creates a virtual machine scale set and associated resources with a configuration file.
Create a scale set from a custom VM image Creates a virtual machine scale set that uses a custom VM image.
Install applications to a scale set Use the Azure Custom Script Extension to install a basic web application into a scale set.
Manage storage
Create and attach disks to a scale set Creates a virtual machine scale set with attached data disks.
Manage scale and redundancy
Enable host-based autoscale Creates a virtual machine scale that is configured to automatically scale based on CPU usage.
Create a single-zone scale set Creates a virtual machine scale that uses a single Availability Zone.
Create a zone-redundant scale set Creates a virtual machine scale across multiple Availability Zones.

Note

This article has been updated to use the new Azure PowerShell Az module. You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. For Az module installation instructions, see Install Azure PowerShell.