This article steps through creating a standby pool for Virtual Machine Scale Sets with Flexible Orchestration.
Prerequisites
To allow standby pools to create and manage virtual machines in your subscription, assign the appropriate permissions to the standby pool resource provider.
In the Azure portal, navigate to your subscriptions.
Select the subscription you want to adjust permissions.
Select Access Control (IAM).
Select Add and Add role assignment.
Under the Role tab, search for Virtual Machine Contributor and select it.
Move to the Members Tab.
Select + Select members.
Search for Standby Pool Resource Provider and select it.
Move to the Review + assign tab.
Apply the changes.
Repeat the above steps and assign the Network Contributor role and the Managed Identity Operator role to the Standby Pool Resource Provider. If you're using images stored in Compute Gallery assign the Compute Gallery Sharing Admin and Compute Gallery Artifacts Publisher roles as well.
To create and manage standby pools in the Azure portal, register the following feature flag:
Register-AzProviderFeature -FeatureName StandbyVMPoolPreview -ProviderNamespace Microsoft.StandbyPool
Navigate to your Virtual Machine Scale Set.
Under Availability + scale select Standby pool.
Select Manage pool.
Provide a name for your pool, provisioning state and maximum and minimum ready capacity.
Select Save.
You can also configure a standby pool during Virtual Machine Scale Set creation by navigating to the Management tab and checking the box to enable standby pools.