Create a standby pool (Preview)

This article steps through creating a standby pool for Virtual Machine Scale Sets with Flexible Orchestration.

Important

Standby pools for Virtual Machine Scale Sets with Flexible Orchestration is currently in preview. Previews are made available to you on the condition that you agree to the supplemental terms of use. Some aspects of this feature may change prior to general availability (GA).

Prerequisites

Before utilizing standby pools, complete the feature registration and configure role based access controls.

Feature Registration

Register the standby pool resource provider and the standby pool preview feature with your subscription using Azure Cloud Shell. Registration can take up to 30 minutes to successfully show as registered. You can rerun the below commands to determine when the feature is successfully registered.

Register-AzResourceProvider -ProviderNamespace Microsoft.StandbyPool

Register-AzProviderFeature -FeatureName StandbyVMPoolPreview -ProviderNamespace Microsoft.StandbyPool

Alternatively, you can register directly in the Azure portal.

  1. In the Azure portal, navigate to your subscriptions.
  2. Select the subscription you want to enable standby pools.
  3. Under settings, select Resource providers.
  4. Search for Microsoft.StandbyPool and register the provider.
  5. Under settings, select Preview features.
  6. Search for Standby Virtual Machine Pool Preview and register the feature.

Role-based Access Control Permissions

To allow standby pools to create virtual machines, you need to assign the appropriate RBAC permissions.

  1. In the Azure portal, navigate to your subscriptions.
  2. Select the subscription you want to adjust RBAC permissions.
  3. Select Access Control (IAM).
  4. Select Add -> Add Role Assignment.
  5. Search for Virtual Machine Contributor and highlight it. Select Next.
  6. Click on + Select Members.
  7. Search for Standby pool Resource Provider.
  8. Select the standby pool Resource Provider and select Review + Assign.
  9. Repeat the above steps and for the Network Contributor role and the Managed Identity Operator role.

If you're using images stored in Compute Gallery when deploying your scale set, also repeat the above steps for the Compute Gallery Sharing Admin role.

For more information on assigning roles, see assign Azure roles using the Azure portal.

Create a standby pool

  1. Navigate to your Virtual Machine Scale Set
  2. Under Availability + scale select Standby pool.
  3. Select Manage pool.
  4. Provide a name for your pool, provisioning state and maximum ready capacity.
  5. Select Save.

A screenshot showing how to enable a standby pool on an existing Virtual Machine Scale Set in the Azure portal.

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.

A screenshot showing how to enable a standby pool during the Virtual Machine Scale Set create experience in the portal.

Next steps

Learn how to update and delete a standby pool.