Virtual Machine Scale Sets - Get Instance View
Gets the status of a VM scale set instance.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView?api-version=2025-04-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
vm
|
path | True |
string |
The name of the VM scale set. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
|
Virtual |
|
Virtual |
VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen
Sample request
Sample response
{
"virtualMachine": {
"statusesSummary": [
{
"code": "aa",
"count": 21
}
]
},
"extensions": [
{
"name": "aaaaaaaaaaa",
"statusesSummary": [
{
"code": "aa",
"count": 21
}
]
}
],
"statuses": [
{
"code": "ProvisioningState/succeeded",
"level": "Info",
"displayStatus": "Provisioning succeeded",
"message": "aaaaaaaaaaaaaaaaaaaaaaa",
"time": "2021-11-30T12:58:26.526Z"
}
],
"orchestrationServices": [
{
"serviceName": "AutomaticRepairs",
"serviceState": "NotRunning"
},
{
"serviceName": "AutomaticZoneRebalancing",
"serviceState": "Running",
"latestOperationStatus": "InProgress",
"lastStatusChangeTime": "2025-07-09T13:26:28.360Z"
}
]
}
VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen
Sample request
Sample response
{}
Definitions
| Name | Description |
|---|---|
|
Api |
Api error. |
|
Api |
Api error base. |
|
Cloud |
An error response from the Compute service. |
|
Inner |
Inner error details. |
|
Instance |
Instance view status. |
|
Orchestration |
The name of the service. |
|
Orchestration |
The latest operation status of the service. |
|
Orchestration |
The current state of the service. |
|
Orchestration |
Summary for an orchestration service of a virtual machine scale set. |
|
Status |
The level code. |
|
Virtual |
The instance view of a virtual machine scale set. |
|
Virtual |
Instance view statuses summary for virtual machines of a virtual machine scale set. |
|
Virtual |
Extensions summary for virtual machines of a virtual machine scale set. |
|
Virtual |
The status code and count of the virtual machine scale set instance view status summary. |
ApiError
Api error.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| details |
The Api error details |
|
| innererror |
The Api inner error |
|
| message |
string |
The error message. |
| target |
string |
The target of the particular error. |
ApiErrorBase
Api error base.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| message |
string |
The error message. |
| target |
string |
The target of the particular error. |
CloudError
An error response from the Compute service.
| Name | Type | Description |
|---|---|---|
| error |
Api error. |
InnerError
Inner error details.
| Name | Type | Description |
|---|---|---|
| errordetail |
string |
The internal error message or exception dump. |
| exceptiontype |
string |
The exception type. |
InstanceViewStatus
Instance view status.
| Name | Type | Description |
|---|---|---|
| code |
string |
The status code. |
| displayStatus |
string |
The short localizable label for the status. |
| level |
The level code. |
|
| message |
string |
The detailed status message, including for alerts and error messages. |
| time |
string (date-time) |
The time of the status. |
OrchestrationServiceNames
The name of the service.
| Value | Description |
|---|---|
| AutomaticRepairs | |
| AutomaticZoneRebalancing |
AutomaticZoneRebalancing orchestration service. |
OrchestrationServiceOperationStatus
The latest operation status of the service.
| Value | Description |
|---|---|
| InProgress |
InProgress orchestration service operation status. |
| Completed |
Completed orchestration service operation status. |
OrchestrationServiceState
The current state of the service.
| Value | Description |
|---|---|
| NotRunning | |
| Running | |
| Suspended |
OrchestrationServiceSummary
Summary for an orchestration service of a virtual machine scale set.
| Name | Type | Description |
|---|---|---|
| lastStatusChangeTime |
string (date-time) |
The last UTC time when the operation status changed. Minimum API version for this property is 2025-04-01. |
| latestOperationStatus |
The latest operation status of the service. Minimum API version for this property is 2025-04-01. |
|
| serviceName |
The name of the service. |
|
| serviceState |
The current state of the service. |
StatusLevelTypes
The level code.
| Value | Description |
|---|---|
| Info | |
| Warning | |
| Error |
VirtualMachineScaleSetInstanceView
The instance view of a virtual machine scale set.
| Name | Type | Description |
|---|---|---|
| extensions |
The extensions information. |
|
| orchestrationServices |
The orchestration services information. |
|
| statuses |
The resource status information. |
|
| virtualMachine |
The instance view status summary for the virtual machine scale set. |
VirtualMachineScaleSetInstanceViewStatusesSummary
Instance view statuses summary for virtual machines of a virtual machine scale set.
| Name | Type | Description |
|---|---|---|
| statusesSummary |
The extensions information. |
VirtualMachineScaleSetVMExtensionsSummary
Extensions summary for virtual machines of a virtual machine scale set.
| Name | Type | Description |
|---|---|---|
| name |
string |
The extension name. |
| statusesSummary |
The extensions information. |
VirtualMachineStatusCodeCount
The status code and count of the virtual machine scale set instance view status summary.
| Name | Type | Description |
|---|---|---|
| code |
string |
The instance view status code. |
| count |
integer (int32) |
The number of instances having a particular status code. |