Skip to content

Commit 8f41f19

Browse files
authored
Merge pull request #283466 from mimckitt/patch-6
Update standby-pools-overview.md
2 parents 32f5c72 + 9683b09 commit 8f41f19

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

articles/virtual-machine-scale-sets/standby-pools-overview.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,63 @@ If the scale set reduces the instance count to 5, the standby pool would fill to
5858

5959
- Max ready capacity (15) - Virtual Machine Scale Set instance count (5) = Standby pool size (10)
6060

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+
61118

62119
## Availability zones
63120
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

Comments
 (0)