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
Alternatively, you can register directly in the Azure portal.
33
+
1) In the Azure portal, navigate to your subscriptions.
34
+
2) Select the subscription you want to enable standby pools.
35
+
3) Under settings, select **Resource providers**.
36
+
4) Search for **Microsoft.StandbyPool** and register the provider.
37
+
5) Under settings, select **Preview features**.
38
+
6) Search for **Standby Virtual Machine Pool Preview** and register the feature.
39
+
40
+
32
41
### Role-based Access Control Permissions
33
-
In order for standby pools to successfully create Virtual Machines, you need to assign the appropriate RBAC roles.
42
+
In order for standby pools to successfully create Virtual Machines, you need to assign the appropriate RBAC permissions.
43
+
34
44
1) In the Azure portal, navigate to your subscriptions.
35
45
2) Select the subscription you want to adjust RBAC permissions.
36
46
3) Select **Access Control (IAM)**.
@@ -41,7 +51,7 @@ In order for standby pools to successfully create Virtual Machines, you need to
41
51
8) Select the standby pool Resource Provider and select **Review + Assign**.
42
52
9) Repeat the above steps and for the **Network Contributor** role and the **Managed Identity Operator** role.
43
53
44
-
If you're using a customized image in Compute Gallery, ensure to also assign standby pool Resource Provider the **Compute Gallery Sharing Admin**permissions.
54
+
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.
45
55
46
56
For more information on assigning roles, see [assign Azure roles using the Azure portal](../role-based-access-control/quickstart-assign-role-user-portal.md).
47
57
@@ -88,61 +98,68 @@ New-AzStandbyVMPool `
88
98
```
89
99
90
100
### [ARM template](#tab/template)
101
+
Create a standby pool and associate it with an existing scale set. Create a template and deploy it using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
Create a standby pool and associate it with an existing scale set using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update)
116
-
117
-
```HTTP
118
-
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyPoolName}?api-version=2023-12-01-preview
Create a standby pool and associate it with an existing scale set. Deploy the template using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
Create a standby pool and associate it with an existing scale set using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update)
179
+
180
+
```HTTP
181
+
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2023-12-01-preview
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/standby-pools-overview.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,9 @@ When your scale set requires more instances, rather than creating new instances
41
41
42
42
When your scale set scales back down, the instances are deleted from your scale set based on the [scale-in policy](virtual-machine-scale-sets-scale-in-policy.md) and your standby pool will refill to meet the max ready capacity configured. If at any point in time your scale set needs to scale beyond the number of instances you have in your standby pool, the scale set defaults to standard scale-out methods and creates new instances directly in the Scale Set
43
43
44
-
Standby pools will only give out virtual machines from the pool that match the desired power state configured. For example, if your desired power state is set as deallocated, the standby pool will only give the Virtual Machine Scale Set instances matching that current power state. If virtual machines are in a creating, failed or any other state than the expected state, the scale set defaults to new virtual machine creation instead
44
+
Standby pools will only give out virtual machines from the pool that match the desired power state configured. For example, if your desired power state is set as deallocated, the standby pool will only give the Virtual Machine Scale Set instances matching that current power state. If virtual machines are in a creating, failed or any other state than the expected state, the scale set defaults to new virtual machine creation instead.
45
+
46
+
When using a standby pool with a Virtual Machine Scale Set spread across multiple availability zones, the instances in the pool will also be spread across zones. When a scale out is triggered in one of the zones, a virtual machine in the pool in that same zone will be used. If a virtual machine is needed in a zone where you no longer have any pooled virtual machines left, the scale set will create a new virtual machine directly in the scale set.
45
47
46
48
## Virtual machine states
47
49
@@ -70,7 +72,7 @@ There's no direct cost associated with using standby pools. Users are charged ba
70
72
- Creating or attaching a standby pool to a Virtual Machine Scale Set with a fault domain greater than 1.
71
73
- Creating or attaching a standby pool to a Virtual Machine Scale Set in a different region.
72
74
- Creating or attaching a standby pool to a Virtual Machine Scale Set in a different subscription.
73
-
- Creating or attaching a standby pool to a Virtual Machine Scale Set that already has a standby pool attached.
75
+
- Creating or attaching a standby pool to a Virtual Machine Scale Set that already has a standby pool.
74
76
- Creating or attaching a standby pool to a Virtual Machine Scale Set using Uniform Orchestration.
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/standby-pools-update-delete.md
+69-20Lines changed: 69 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,38 +51,69 @@ Update-AzStandbyVMPool `
51
51
-VMState "Deallocated" `
52
52
```
53
53
54
-
### [REST](#tab/rest-2)
55
-
Update an existing standby pool using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update).
54
+
### [ARM template](#tab/template)
55
+
Update an existing standby pool deployment. Deploy the updated template using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
56
56
57
-
```HTTP
58
-
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyPoolName}?api-version=2023-12-01-preview
Update an existing standby pool deployment. Deploy the updated template using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
Update an existing standby pool using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update).
133
+
134
+
```HTTP
135
+
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2023-12-01-preview
0 commit comments