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=2024-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
vm
|
path | True |
string |
The name of the VM scale set. |
api-version
|
query | True |
string |
Client Api Version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
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"
}
]
}
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 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 |
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 |
---|---|---|
serviceName |
The name of the service. |
|
serviceState |
The current state of the service. |
StatusLevelTypes
The level code.
Value | Description |
---|---|
Error | |
Info | |
Warning |
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. |