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/standby-pools-overview.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,63 @@ If the scale set reduces the instance count to 5, the standby pool would fill to
58
58
59
59
- Max ready capacity (15) - Virtual Machine Scale Set instance count (5) = Standby pool size (10)
60
60
61
+
## Standby pool instances
62
+
When a virtual machine is in a standby pool, the `isVmInStandbyPool` parameter is set to true. When the virtual machine is moved from the pool instance the scale set, the parameter is automatically updated to false. This can be useful in determining when a virtual machine is ready to recieve traffic or not.
63
+
64
+
### [CLI](#tab/cli)
65
+
66
+
```cli
67
+
az vm get-instance-view --resource-group myResourceGroup --name myInstance
68
+
69
+
"extensions": null,
70
+
"hyperVGeneration": "V2",
71
+
"isVmInStandbyPool": true,
72
+
"maintenanceRedeployStatus": null,
73
+
"statuses": [
74
+
{
75
+
"code": "ProvisioningState/succeeded",
76
+
"displayStatus": "Provisioning succeeded",
77
+
"level": "Info",
78
+
"message": null,
79
+
"time": "2024-08-02T17:22:46.295536+00:00"
80
+
},
81
+
{
82
+
"code": "PowerState/deallocated",
83
+
"displayStatus": "VM deallocated",
84
+
"level": "Info",
85
+
"message": null,
86
+
"time": null
87
+
}
88
+
],
89
+
```
90
+
91
+
### [REST](#tab/rest)
92
+
93
+
```HTTP
94
+
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myInstance/instanceView?api-version=2024-03-01
95
+
96
+
{
97
+
"bootDiagnostics": {},
98
+
"isVMInStandbyPool": true,
99
+
"hyperVGeneration": "V2",
100
+
"statuses": [
101
+
{
102
+
"code": "ProvisioningState/succeeded",
103
+
"level": "Info",
104
+
"displayStatus": "Provisioning succeeded",
105
+
"time": "2024-08-02T17:22:46.2955369+00:00"
106
+
},
107
+
{
108
+
"code": "PowerState/deallocated",
109
+
"level": "Info",
110
+
"displayStatus": "VM deallocated"
111
+
}
112
+
]
113
+
}
114
+
```
115
+
116
+
---
117
+
61
118
62
119
## Availability zones
63
120
When using standby pools with a Virtual Machine Scale Set spanning [availability zones](virtual-machine-scale-sets-use-availability-zones.md), the instances in the pool will be spread across the same zones the Virtual Machine Scale Set is using.
0 commit comments