Microsoft.Compute (stable:2024-11-01)

2025/03/10 • 184 new methods

AvailabilitySets_CreateOrUpdate (new)
Description Create or update an availability set.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
{
resourceGroupName: string ,
availabilitySetName: string ,
parameters:
{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_Update (new)
Description Update an availability set.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
{
resourceGroupName: string ,
availabilitySetName: string ,
parameters:
{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_Delete (new)
Description Delete an availability set.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
{
resourceGroupName: string ,
availabilitySetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_Get (new)
Description Retrieves information about an availability set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
{
resourceGroupName: string ,
availabilitySetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_ListBySubscription (new)
Description Lists all availability sets in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets
{
api-version: string ,
subscriptionId: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_List (new)
Description Lists all availability sets in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
platformUpdateDomainCount: integer ,
platformFaultDomainCount: integer ,
virtualMachines:
[
{
id: string ,
}
,
]
,
proximityPlacementGroup:
{
id: string ,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
virtualMachineScaleSetMigrationInfo:
{
defaultVirtualMachineScaleSetInfo:
{
constrainedMaximumCapacity: boolean ,
defaultVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
migrateToVirtualMachineScaleSet:
{
id: string ,
}
,
}
,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_ListAvailableSizes (new)
Description Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes
{
resourceGroupName: string ,
availabilitySetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
numberOfCores: integer ,
osDiskSizeInMB: integer ,
resourceDiskSizeInMB: integer ,
memoryInMB: integer ,
maxDataDiskCount: integer ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_StartMigrationToVirtualMachineScaleSet (new)
Description Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/startMigrationToVirtualMachineScaleSet
{
resourceGroupName: string ,
availabilitySetName: string ,
parameters:
{
virtualMachineScaleSetFlexible:
{
id: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_CancelMigrationToVirtualMachineScaleSet (new)
Description Cancel the migration operation on an Availability Set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/cancelMigrationToVirtualMachineScaleSet
{
resourceGroupName: string ,
availabilitySetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_ValidateMigrationToVirtualMachineScaleSet (new)
Description Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/validateMigrationToVirtualMachineScaleSet
{
resourceGroupName: string ,
availabilitySetName: string ,
parameters:
{
virtualMachineScaleSetFlexible:
{
id: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
AvailabilitySets_ConvertToVirtualMachineScaleSet (new)
Description Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/convertToVirtualMachineScaleSet
{
resourceGroupName: string ,
availabilitySetName: string ,
parameters:
{
virtualMachineScaleSetName: string ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_CreateOrUpdate (new)
Description The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified. Please refer to https://aka.ms/CapacityReservation for more details.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
parameters:
{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (201)

{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_Update (new)
Description The operation to update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
parameters:
{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_Delete (new)
Description The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_Get (new)
Description The operation that retrieves information about a capacity reservation group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_ListByResourceGroup (new)
Description Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservationGroups_ListBySubscription (new)
Description Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups
{
api-version: string ,
subscriptionId: string ,
$expand: string ,
resourceIdsOnly: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
capacityReservations:
[
{
id: string ,
}
,
]
,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
instanceView:
{
capacityReservations:
[
{
name: string ,
}
,
]
,
sharedSubscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
sharingProfile:
{
subscriptionIds:
[
{
id: string ,
}
,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservations_CreateOrUpdate (new)
Description The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
capacityReservationName: string ,
parameters:
{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}

⚐ Response (201)

{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservations_Update (new)
Description The operation to update a capacity reservation.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
capacityReservationName: string ,
parameters:
{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservations_Delete (new)
Description The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
capacityReservationName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservations_Get (new)
Description The operation that retrieves information about the capacity reservation.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
capacityReservationName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
CapacityReservations_ListByCapacityReservationGroup (new)
Description Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations
{
resourceGroupName: string ,
capacityReservationGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationId: string ,
platformFaultDomainCount: integer ,
virtualMachinesAssociated:
[
{
id: string ,
}
,
]
,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
utilizationInfo:
{
currentCapacity: integer ,
virtualMachinesAllocated:
[
{
id: string ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Operations_List (new)
Description Gets a list of compute operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Compute/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
origin: string ,
name: string ,
display:
{
operation: string ,
resource: string ,
description: string ,
provider: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Usage_List (new)
Description Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
currentValue: integer ,
limit: integer ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineSizes_List (new)
Description This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list)
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
numberOfCores: integer ,
osDiskSizeInMB: integer ,
resourceDiskSizeInMB: integer ,
memoryInMB: integer ,
maxDataDiskCount: integer ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_CreateOrUpdate (new)
Description Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
{
resourceGroupName: string ,
hostGroupName: string ,
parameters:
{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (201)

{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_Update (new)
Description Update an dedicated host group.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
{
resourceGroupName: string ,
hostGroupName: string ,
parameters:
{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_Delete (new)
Description Delete a dedicated host group.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
{
resourceGroupName: string ,
hostGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_Get (new)
Description Retrieves information about a dedicated host group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
{
resourceGroupName: string ,
hostGroupName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_ListByResourceGroup (new)
Description Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHostGroups_ListBySubscription (new)
Description Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
platformFaultDomainCount: integer ,
hosts:
[
{
id: string ,
}
,
]
,
instanceView:
{
hosts:
[
{
name: string ,
}
,
]
,
}
,
supportAutomaticPlacement: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_CreateOrUpdate (new)
Description Create or update a dedicated host .
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
parameters:
{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (201)

{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_Update (new)
Description Update a dedicated host .
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
parameters:
{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_Delete (new)
Description Delete a dedicated host.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_Get (new)
Description Retrieves information about a dedicated host.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_ListByHostGroup (new)
Description Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts
{
resourceGroupName: string ,
hostGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
platformFaultDomain: integer ,
autoReplaceOnFailure: boolean ,
hostId: string ,
virtualMachines:
[
{
id: string ,
}
,
]
,
licenseType: enum ,
provisioningTime: string ,
provisioningState: string ,
instanceView:
{
assetId: string ,
availableCapacity:
{
allocatableVMs:
[
{
vmSize: string ,
count: number ,
}
,
]
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
timeCreated: string ,
}
,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_Restart (new)
Description Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_Redeploy (new)
Description Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
DedicatedHosts_ListAvailableSizes (new)
Description Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes
{
resourceGroupName: string ,
hostGroupName: string ,
hostName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_CreateOrUpdate (new)
Description Create or update an image.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
{
resourceGroupName: string ,
imageName: string ,
parameters:
{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (201)

{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_Update (new)
Description Update an image.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
{
resourceGroupName: string ,
imageName: string ,
parameters:
{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (201)

{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_Delete (new)
Description Deletes an Image.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
{
resourceGroupName: string ,
imageName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_Get (new)
Description Gets an image.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
{
resourceGroupName: string ,
imageName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_ListByResourceGroup (new)
Description Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
Images_List (new)
Description Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/images
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sourceVirtualMachine:
{
id: string ,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
osState: enum ,
}
,
dataDisks:
[
{
lun: integer ,
}
,
]
,
zoneResilient: boolean ,
}
,
provisioningState: string ,
hyperVGeneration: enum ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
LogAnalytics_ExportRequestRateByInterval (new)
Description Export logs that show Api requests made by this subscription in the given time window to show throttling activities.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval
{
parameters:
{
intervalLength: enum ,
}
,
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
output: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
LogAnalytics_ExportThrottledRequests (new)
Description Export logs that show total throttled Api requests for this subscription in the given time window.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests
{
parameters: string ,
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
output: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_CreateOrUpdate (new)
Description Create or update a proximity placement group.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}
{
resourceGroupName: string ,
proximityPlacementGroupName: string ,
parameters:
{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (201)

{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_Update (new)
Description Update a proximity placement group.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}
{
resourceGroupName: string ,
proximityPlacementGroupName: string ,
parameters: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_Delete (new)
Description Delete a proximity placement group.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}
{
resourceGroupName: string ,
proximityPlacementGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_Get (new)
Description Retrieves information about a proximity placement group .
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}
{
resourceGroupName: string ,
proximityPlacementGroupName: string ,
includeColocationStatus: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_ListBySubscription (new)
Description Lists all proximity placement groups in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
ProximityPlacementGroups_ListByResourceGroup (new)
Description Lists all proximity placement groups in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
proximityPlacementGroupType: enum ,
virtualMachines:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
virtualMachineScaleSets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
availabilitySets:
[
{
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
colocationStatus:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
intent:
{
vmSizes:
[
string ,
]
,
}
,
}
,
zones:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_CreateOrUpdate (new)
Description The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
parameters:
{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_Update (new)
Description The operation to update the restore point collection.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
parameters:
{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_Delete (new)
Description The operation to delete the restore point collection. This operation will also delete all the contained restore points.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_Get (new)
Description The operation to get the restore point collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_List (new)
Description Gets the list of restore point collections in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_ListAll (new)
Description Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
source:
{
location: string ,
id: string ,
}
,
provisioningState: string ,
restorePointCollectionId: string ,
restorePoints:
[
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePoints_Create (new)
Description The operation to create the restore point. Updating properties of an existing restore point is not allowed
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
restorePointName: string ,
parameters:
{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePoints_Delete (new)
Description The operation to delete the restore point.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
restorePointName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePoints_Get (new)
Description The operation to get the restore point.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}
{
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
restorePointName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
excludeDisks:
[
{
id: string ,
}
,
]
,
sourceMetadata:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
storageProfile:
{
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: string ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
]
,
diskControllerType: enum ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
licenseType: string ,
vmId: string ,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
replicationStatus:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
completionPercent: integer ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineRunCommands_List (new)
Description Lists all available run commands for a subscription in a location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
$schema: string ,
id: string ,
osType: enum ,
label: string ,
description: string ,
}
,
]
,
nextLink: string ,
}
VirtualMachineRunCommands_Get (new)
Description Gets specific run command for a subscription in a location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}
{
location: string ,
commandId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
script:
[
string ,
]
,
parameters:
[
{
name: string ,
type: string ,
defaultValue: string ,
required: boolean ,
}
,
]
,
}
VirtualMachines_RunCommand (new)
Description Run command on the VM.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
commandId: string ,
script:
[
string ,
]
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}

⚐ Response (202)

{}
VirtualMachineScaleSetVMs_RunCommand (new)
Description Run command on a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
parameters:
{
commandId: string ,
script:
[
string ,
]
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}

⚐ Response (202)

{}
VirtualMachineRunCommands_CreateOrUpdate (new)
Description The operation to create or update the run command.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmName: string ,
runCommandName: string ,
runCommand:
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (201)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineRunCommands_Update (new)
Description The operation to update the run command.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmName: string ,
runCommandName: string ,
runCommand:
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineRunCommands_Delete (new)
Description The operation to delete the run command.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmName: string ,
runCommandName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineRunCommands_GetByVirtualMachine (new)
Description The operation to get the run command.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmName: string ,
runCommandName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineRunCommands_ListByVirtualMachine (new)
Description The operation to get all run commands of a Virtual Machine.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands
{
resourceGroupName: string ,
vmName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMRunCommands_CreateOrUpdate (new)
Description The operation to create or update the VMSS VM run command.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
runCommandName: string ,
runCommand:
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (201)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMRunCommands_Update (new)
Description The operation to update the VMSS VM run command.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
runCommandName: string ,
runCommand:
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMRunCommands_Delete (new)
Description The operation to delete the VMSS VM run command.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
runCommandName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMRunCommands_Get (new)
Description The operation to get the VMSS VM run command.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
runCommandName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMRunCommands_List (new)
Description The operation to get all run commands of an instance in Virtual Machine Scaleset.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
source:
{
script: string ,
scriptUri: string ,
commandId: string ,
scriptUriManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
}
,
parameters:
[
{
name: string ,
value: string ,
}
,
]
,
protectedParameters:
[
{
name: string ,
value: string ,
}
,
]
,
asyncExecution: boolean ,
runAsUser: string ,
runAsPassword: string ,
timeoutInSeconds: integer ,
outputBlobUri: string ,
errorBlobUri: string ,
outputBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
errorBlobManagedIdentity:
{
clientId: string ,
objectId: string ,
}
,
provisioningState: string ,
instanceView:
{
executionState: enum ,
executionMessage: string ,
exitCode: integer ,
output: string ,
error: string ,
startTime: string ,
endTime: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
treatFailureAsDeploymentFailure: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_ListBySubscription (new)
Description Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
publicKey: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_ListByResourceGroup (new)
Description Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
publicKey: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_Create (new)
Description Creates a new SSH public key resource.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}
{
resourceGroupName: string ,
sshPublicKeyName: string ,
parameters:
{
properties:
{
publicKey: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
publicKey: string ,
}
,
}

⚐ Response (201)

{
properties:
{
publicKey: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_Update (new)
Description Updates a new SSH public key resource.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}
{
resourceGroupName: string ,
sshPublicKeyName: string ,
parameters:
{
properties:
{
publicKey: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
publicKey: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_Delete (new)
Description Delete an SSH public key.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}
{
resourceGroupName: string ,
sshPublicKeyName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_Get (new)
Description Retrieves information about an SSH public key.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}
{
resourceGroupName: string ,
sshPublicKeyName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
publicKey: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
SshPublicKeys_GenerateKeyPair (new)
Description Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair
{
resourceGroupName: string ,
sshPublicKeyName: string ,
parameters:
{
encryptionType: enum ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
privateKey: string ,
publicKey: string ,
id: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensions_CreateOrUpdate (new)
Description The operation to create or update the extension.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmName: string ,
vmExtensionName: string ,
extensionParameters:
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensions_Update (new)
Description The operation to update the extension.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmName: string ,
vmExtensionName: string ,
extensionParameters:
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensions_Delete (new)
Description The operation to delete the extension.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmName: string ,
vmExtensionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensions_Get (new)
Description The operation to get the extension.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmName: string ,
vmExtensionName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensions_List (new)
Description The operation to get all extensions of a Virtual Machine.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions
{
resourceGroupName: string ,
vmName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_ListByLocation (new)
Description Gets all the virtual machines under the specified subscription for the specified location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Capture (new)
Description Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
vhdPrefix: string ,
destinationContainerName: string ,
overwriteVhds: boolean ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$schema: string ,
contentVersion: string ,
parameters: object ,
resources:
[
object ,
]
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_CreateOrUpdate (new)
Description The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
If-Match: string ,
If-None-Match: string ,
}

⚐ Response (200)

{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}

⚐ Response (201)

{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Update (new)
Description The operation to update a virtual machine.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
If-Match: string ,
If-None-Match: string ,
}

⚐ Response (200)

{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Delete (new)
Description The operation to delete a virtual machine.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
resourceGroupName: string ,
vmName: string ,
forceDeletion: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Get (new)
Description Retrieves information about the model view or the instance view of a virtual machine.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
resourceGroupName: string ,
vmName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_InstanceView (new)
Description Retrieves information about the run-time state of a virtual machine.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_ConvertToManagedDisks (new)
Description Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Deallocate (new)
Description Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate
{
resourceGroupName: string ,
vmName: string ,
hibernate: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Generalize (new)
Description Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_List (new)
Description Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines
{
resourceGroupName: string ,
$filter: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_ListAll (new)
Description Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines
{
api-version: string ,
subscriptionId: string ,
statusOnly: string ,
$filter: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
virtualMachineScaleSet:
{
id: string ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
host:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
provisioningState: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
assignedHost: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
patchStatus:
{
availablePatchSummary:
{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
lastPatchInstallationSummary:
{
status: enum ,
installationActivityId: string ,
maintenanceWindowExceeded: boolean ,
notSelectedPatchCount: integer ,
excludedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
startTime: string ,
lastModifiedTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
configurationStatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
isVMInStandbyPool: boolean ,
}
,
licenseType: string ,
vmId: string ,
extensionsTimeBudget: string ,
platformFaultDomain: integer ,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
timeCreated: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
managedBy: string ,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_ListAvailableSizes (new)
Description Lists all available virtual machine sizes to which the specified virtual machine can be resized.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
numberOfCores: integer ,
osDiskSizeInMB: integer ,
resourceDiskSizeInMB: integer ,
memoryInMB: integer ,
maxDataDiskCount: integer ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_PowerOff (new)
Description The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is not allowed on a virtual machine that is being deallocated or has already been deallocated.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff
{
resourceGroupName: string ,
vmName: string ,
skipShutdown: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Reapply (new)
Description The operation to reapply a virtual machine's state.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Restart (new)
Description The operation to restart a virtual machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Start (new)
Description The operation to start a virtual machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Redeploy (new)
Description Shuts down the virtual machine, moves it to a new node, and powers it back on.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_Reimage (new)
Description Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
tempDisk: boolean ,
exactVersion: string ,
osProfile:
{
adminPassword: string ,
customData: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_RetrieveBootDiagnosticsData (new)
Description The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData
{
resourceGroupName: string ,
vmName: string ,
sasUriExpirationTimeInMinutes: integer ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_PerformMaintenance (new)
Description The operation to perform maintenance on a virtual machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_SimulateEviction (new)
Description The operation to simulate the eviction of spot virtual machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_AssessPatches (new)
Description Assess patches on the VM.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches
{
resourceGroupName: string ,
vmName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
status: enum ,
assessmentActivityId: string ,
rebootPending: boolean ,
criticalAndSecurityPatchCount: integer ,
otherPatchCount: integer ,
startDateTime: string ,
availablePatches:
[
{
patchId: string ,
name: string ,
version: string ,
kbId: string ,
classifications:
[
string ,
]
,
rebootBehavior: enum ,
activityId: string ,
publishedDate: string ,
lastModifiedDateTime: string ,
assessmentState: enum ,
}
,
]
,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_InstallPatches (new)
Description Installs patches on the VM.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches
{
resourceGroupName: string ,
vmName: string ,
installPatchesInput:
{
maximumDuration: string ,
rebootSetting: enum ,
windowsParameters:
{
classificationsToInclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
kbNumbersToExclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
maxPatchPublishDate: string ,
}
,
linuxParameters:
{
classificationsToInclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
packageNameMasksToExclude:
[
string ,
]
,
maintenanceRunId: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
status: enum ,
installationActivityId: string ,
rebootStatus: enum ,
maintenanceWindowExceeded: boolean ,
excludedPatchCount: integer ,
notSelectedPatchCount: integer ,
pendingPatchCount: integer ,
installedPatchCount: integer ,
failedPatchCount: integer ,
patches:
[
{
patchId: string ,
name: string ,
version: string ,
kbId: string ,
classifications:
[
string ,
]
,
installationState: enum ,
}
,
]
,
startDateTime: string ,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_AttachDetachDataDisks (new)
Description Attach and detach data disks to/from the virtual machine.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
dataDisksToAttach:
[
{
diskId: string ,
lun: integer ,
caching: enum ,
deleteOption: enum ,
diskEncryptionSet: string ,
writeAcceleratorEnabled: boolean ,
}
,
]
,
dataDisksToDetach:
[
{
diskId: string ,
detachOption: enum ,
}
,
]
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachines_migrateToVMScaleSet (new)
Description Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/migrateToVirtualMachineScaleSet
{
resourceGroupName: string ,
vmName: string ,
parameters:
{
targetZone: string ,
targetFaultDomain: integer ,
targetVMSize: string ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensionImages_Get (new)
Description Gets a virtual machine extension image.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}
{
location: string ,
publisherName: string ,
type: string ,
version: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
operatingSystem: string ,
computeRole: string ,
handlerSchema: string ,
vmScaleSetEnabled: boolean ,
supportsMultipleExtensions: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensionImages_ListTypes (new)
Description Gets a list of virtual machine extension image types.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types
{
location: string ,
publisherName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
operatingSystem: string ,
computeRole: string ,
handlerSchema: string ,
vmScaleSetEnabled: boolean ,
supportsMultipleExtensions: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineExtensionImages_ListVersions (new)
Description Gets a list of virtual machine extension image versions.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions
{
location: string ,
publisherName: string ,
type: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
operatingSystem: string ,
computeRole: string ,
handlerSchema: string ,
vmScaleSetEnabled: boolean ,
supportsMultipleExtensions: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_Get (new)
Description Gets a virtual machine image.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
{
location: string ,
publisherName: string ,
offer: string ,
skus: string ,
version: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
plan:
{
publisher: string ,
name: string ,
product: string ,
}
,
osDiskImage:
{
operatingSystem: enum ,
}
,
dataDiskImages:
[
{
lun: integer ,
}
,
]
,
automaticOSUpgradeProperties:
{
automaticOSUpgradeSupported: boolean ,
}
,
hyperVGeneration: enum ,
disallowed:
{
vmDiskType: enum ,
}
,
features:
[
{
name: string ,
value: string ,
}
,
]
,
architecture: enum ,
imageDeprecationStatus:
{
imageState: enum ,
scheduledDeprecationTime: string ,
alternativeOption:
{
type: enum ,
value: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_List (new)
Description Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
{
location: string ,
publisherName: string ,
offer: string ,
skus: string ,
$expand: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_ListOffers (new)
Description Gets a list of virtual machine image offers for the specified location and publisher.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers
{
location: string ,
publisherName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_ListPublishers (new)
Description Gets a list of virtual machine image publishers for the specified Azure location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_ListSkus (new)
Description Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus
{
location: string ,
publisherName: string ,
offer: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImagesEdgeZone_Get (new)
Description Gets a virtual machine image in an edge zone.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
{
location: string ,
edgeZone: string ,
publisherName: string ,
offer: string ,
skus: string ,
version: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
plan:
{
publisher: string ,
name: string ,
product: string ,
}
,
osDiskImage:
{
operatingSystem: enum ,
}
,
dataDiskImages:
[
{
lun: integer ,
}
,
]
,
automaticOSUpgradeProperties:
{
automaticOSUpgradeSupported: boolean ,
}
,
hyperVGeneration: enum ,
disallowed:
{
vmDiskType: enum ,
}
,
features:
[
{
name: string ,
value: string ,
}
,
]
,
architecture: enum ,
imageDeprecationStatus:
{
imageState: enum ,
scheduledDeprecationTime: string ,
alternativeOption:
{
type: enum ,
value: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImagesEdgeZone_List (new)
Description Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
{
location: string ,
edgeZone: string ,
publisherName: string ,
offer: string ,
skus: string ,
$expand: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImagesEdgeZone_ListOffers (new)
Description Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers
{
location: string ,
edgeZone: string ,
publisherName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImagesEdgeZone_ListPublishers (new)
Description Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers
{
location: string ,
edgeZone: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImages_ListByEdgeZone (new)
Description Gets a list of all virtual machine image versions for the specified edge zone
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages
{
location: string ,
edgeZone: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineImagesEdgeZone_ListSkus (new)
Description Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus
{
location: string ,
edgeZone: string ,
publisherName: string ,
offer: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
location: string ,
tags: object ,
extendedLocation:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ListByLocation (new)
Description Gets all the VM scale sets under the specified subscription for the specified location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets
{
location: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_CreateOrUpdate (new)
Description Create or update a VM scale set.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
parameters:
{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}
,
api-version: string ,
subscriptionId: string ,
If-Match: string ,
If-None-Match: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}

⚐ Response (201)

{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Update (new)
Description Update a VM scale set.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
parameters:
{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
publicIPPrefix:
{
id: string ,
}
,
deleteOption: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
}
,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
singlePlacementGroup: boolean ,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
proximityPlacementGroup:
{
id: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
If-Match: string ,
If-None-Match: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Delete (new)
Description Deletes a VM scale set.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
forceDeletion: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Get (new)
Description Display information about a virtual machine scale set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
$expand: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Deallocate (new)
Description Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
hibernate: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_DeleteInstances (new)
Description Deletes virtual machines in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
forceDeletion: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_GetInstanceView (new)
Description Gets the status of a VM scale set instance.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
virtualMachine:
{
statusesSummary:
[
{
code: string ,
count: integer ,
}
,
]
,
}
,
extensions:
[
{
name: string ,
statusesSummary:
[
{
code: string ,
count: integer ,
}
,
]
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
orchestrationServices:
[
{
serviceName: enum ,
serviceState: enum ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_List (new)
Description Gets a list of all VM scale sets under a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetExtensions_CreateOrUpdate (new)
Description The operation to create or update an extension.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmssExtensionName: string ,
extensionParameters:
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetExtensions_Update (new)
Description The operation to update an extension.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmssExtensionName: string ,
extensionParameters:
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetExtensions_Delete (new)
Description The operation to delete the extension.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmssExtensionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetExtensions_Get (new)
Description The operation to get the extension.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmssExtensionName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetExtensions_List (new)
Description Gets a list of all extensions in a VM scale set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ListAll (new)
Description Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
properties:
{
upgradePolicy:
{
mode: enum ,
rollingUpgradePolicy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
automaticOSUpgradePolicy:
{
enableAutomaticOSUpgrade: boolean ,
disableAutomaticRollback: boolean ,
useRollingUpgradePolicy: boolean ,
osRollingUpgradeDeferral: boolean ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
}
,
}
,
}
,
automaticRepairsPolicy:
{
enabled: boolean ,
gracePeriod: string ,
repairAction: enum ,
}
,
virtualMachineProfile:
{
osProfile:
{
computerNamePrefix: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
name: string ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
diskSizeGB: integer ,
osType: enum ,
image:
{
uri: string ,
}
,
vhdContainers:
[
string ,
]
,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: string ,
}
,
networkProfile:
{
healthProbe:
{
id: string ,
}
,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
]
,
extensionsTimeBudget: string ,
}
,
licenseType: string ,
priority: enum ,
evictionPolicy: enum ,
billingProfile:
{
maxPrice: number ,
}
,
scheduledEventsProfile:
{
terminateNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
osImageNotificationProfile:
{
notBeforeTimeout: string ,
enable: boolean ,
}
,
}
,
userData: string ,
capacityReservation:
{
capacityReservationGroup:
{
id: string ,
}
,
}
,
applicationProfile:
{
galleryApplications:
[
{
tags: string ,
order: integer ,
packageReferenceId: string ,
configurationReference: string ,
treatFailureAsDeploymentFailure: boolean ,
enableAutomaticUpgrade: boolean ,
}
,
]
,
}
,
hardwareProfile:
{
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
serviceArtifactReference:
{
id: string ,
}
,
securityPostureReference:
{
id: string ,
excludeExtensions:
[
string ,
]
,
isOverridable: boolean ,
}
,
timeCreated: string ,
}
,
provisioningState: string ,
overprovision: boolean ,
doNotRunExtensionsOnOverprovisionedVMs: boolean ,
uniqueId: string ,
singlePlacementGroup: boolean ,
zoneBalance: boolean ,
platformFaultDomainCount: integer ,
proximityPlacementGroup:
{
id: string ,
}
,
hostGroup:
{
id: string ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
scaleInPolicy:
{
rules:
[
string ,
]
,
forceDeletion: boolean ,
prioritizeUnhealthyVMs: boolean ,
}
,
orchestrationMode: enum ,
spotRestorePolicy:
{
enabled: boolean ,
restoreTimeout: string ,
}
,
priorityMixPolicy:
{
baseRegularPriorityCount: integer ,
regularPriorityPercentageAboveBase: integer ,
}
,
timeCreated: string ,
constrainedMaximumCapacity: boolean ,
resiliencyPolicy:
{
resilientVMCreationPolicy:
{
enabled: boolean ,
}
,
resilientVMDeletionPolicy:
{
enabled: boolean ,
}
,
automaticZoneRebalancingPolicy:
{
enabled: boolean ,
rebalanceStrategy: enum ,
rebalanceBehavior: enum ,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ListSkus (new)
Description Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
resourceType: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
capacity:
{
minimum: integer ,
maximum: integer ,
defaultCapacity: integer ,
scaleType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_GetOSUpgradeHistory (new)
Description Gets list of OS upgrades on a VM scale set instance.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
runningStatus:
{
code: enum ,
startTime: string ,
endTime: string ,
}
,
progress:
{
successfulInstanceCount: integer ,
failedInstanceCount: integer ,
inProgressInstanceCount: integer ,
pendingInstanceCount: integer ,
}
,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
startedBy: enum ,
targetImageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
rollbackInfo:
{
successfullyRolledbackInstanceCount: integer ,
failedRolledbackInstanceCount: integer ,
rollbackError:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
}
,
type: string ,
location: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_PowerOff (new)
Description Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set that are being deallocated or have already been deallocated.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
skipShutdown: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Restart (new)
Description Restarts one or more virtual machines in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Start (new)
Description Starts one or more virtual machines in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Reapply (new)
Description Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Redeploy (new)
Description Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_PerformMaintenance (new)
Description Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_UpdateInstances (new)
Description Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_Reimage (new)
Description Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmScaleSetReimageInput:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ReimageAll (new)
Description Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ApproveRollingUpgrade (new)
Description Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade
{
resourceGroupName: string ,
vmScaleSetName: string ,
vmInstanceIDs:
{
instanceIds:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetRollingUpgrades_Cancel (new)
Description Cancels the current virtual machine scale set rolling upgrade.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade (new)
Description Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade (new)
Description Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetRollingUpgrades_GetLatest (new)
Description Gets the status of the latest virtual machine scale set rolling upgrade.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
policy:
{
maxBatchInstancePercent: integer ,
maxUnhealthyInstancePercent: integer ,
maxUnhealthyUpgradedInstancePercent: integer ,
pauseTimeBetweenBatches: string ,
enableCrossZoneUpgrade: boolean ,
prioritizeUnhealthyInstances: boolean ,
rollbackFailedInstancesOnPolicyBreach: boolean ,
maxSurge: boolean ,
}
,
runningStatus:
{
code: enum ,
startTime: string ,
lastAction: enum ,
lastActionTime: string ,
}
,
progress:
{
successfulInstanceCount: integer ,
failedInstanceCount: integer ,
inProgressInstanceCount: integer ,
pendingInstanceCount: integer ,
}
,
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk (new)
Description Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk
{
resourceGroupName: string ,
vmScaleSetName: string ,
api-version: string ,
subscriptionId: string ,
platformUpdateDomain: integer ,
zone: string ,
placementGroupId: string ,
}

⚐ Response (200)

{
walkPerformed: boolean ,
nextPlatformUpdateDomain: integer ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_ConvertToSinglePlacementGroup (new)
Description Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup
{
resourceGroupName: string ,
vmScaleSetName: string ,
parameters:
{
activePlacementGroupId: string ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSets_SetOrchestrationServiceState (new)
Description Changes ServiceState property for a given service
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState
{
resourceGroupName: string ,
vmScaleSetName: string ,
parameters:
{
serviceName: enum ,
action: enum ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMExtensions_CreateOrUpdate (new)
Description The operation to create or update the VMSS VM extension.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
vmExtensionName: string ,
extensionParameters:
{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (201)

{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMExtensions_Update (new)
Description The operation to update the VMSS VM extension.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
vmExtensionName: string ,
extensionParameters:
{
name: string ,
type: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMExtensions_Delete (new)
Description The operation to delete the VMSS VM extension.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
vmExtensionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMExtensions_Get (new)
Description The operation to get the VMSS VM extension.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
vmExtensionName: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMExtensions_List (new)
Description The operation to get all extensions of an instance in Virtual Machine Scaleset.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
type: string ,
location: string ,
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Reimage (new)
Description Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
vmScaleSetVMReimageInput:
{
forceUpdateOSDiskForEphemeral: boolean ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_ReimageAll (new)
Description Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_ApproveRollingUpgrade (new)
Description Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Deallocate (new)
Description Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Update (new)
Description Updates a virtual machine of a VM scale set.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
parameters:
{
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
properties:
{
latestModelApplied: boolean ,
vmId: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}
,
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
resilientVMDeletionStatus: enum ,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
networkProfileConfiguration:
{
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
zones:
[
string ,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
etag: string ,
}
,
api-version: string ,
subscriptionId: string ,
If-Match: string ,
If-None-Match: string ,
}

⚐ Response (200)

{
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
properties:
{
latestModelApplied: boolean ,
vmId: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}
,
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
resilientVMDeletionStatus: enum ,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
networkProfileConfiguration:
{
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
zones:
[
string ,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
etag: string ,
}

⚐ Response (202)

{
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
properties:
{
latestModelApplied: boolean ,
vmId: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}
,
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
resilientVMDeletionStatus: enum ,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
networkProfileConfiguration:
{
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
zones:
[
string ,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Delete (new)
Description Deletes a virtual machine from a VM scale set.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
forceDeletion: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Get (new)
Description Gets a virtual machine from a VM scale set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
properties:
{
latestModelApplied: boolean ,
vmId: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}
,
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
resilientVMDeletionStatus: enum ,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
networkProfileConfiguration:
{
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
zones:
[
string ,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_GetInstanceView (new)
Description Gets the status of a virtual machine from a VM scale set.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_List (new)
Description Gets a list of all virtual machines in a VM scale sets.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines
{
resourceGroupName: string ,
virtualMachineScaleSetName: string ,
$filter: string ,
$select: string ,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
properties:
{
latestModelApplied: boolean ,
vmId: string ,
instanceView:
{
platformUpdateDomain: integer ,
platformFaultDomain: integer ,
rdpThumbPrint: string ,
vmAgent:
{
vmAgentVersion: string ,
extensionHandlers:
[
{
type: string ,
typeHandlerVersion: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
maintenanceRedeployStatus:
{
isCustomerInitiatedMaintenanceAllowed: boolean ,
preMaintenanceWindowStartTime: string ,
preMaintenanceWindowEndTime: string ,
maintenanceWindowStartTime: string ,
maintenanceWindowEndTime: string ,
lastOperationResultCode: enum ,
lastOperationMessage: string ,
}
,
disks:
[
{
name: string ,
encryptionSettings:
[
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
extensions:
[
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
]
,
vmHealth:
{
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
bootDiagnostics:
{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
status:
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
}
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
assignedHost: string ,
placementGroupId: string ,
computerName: string ,
osName: string ,
osVersion: string ,
hyperVGeneration: enum ,
}
,
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
resilientVMDeletionStatus: enum ,
storageProfile:
{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
}
,
osProfile:
{
computerName: string ,
adminUsername: string ,
adminPassword: string ,
customData: string ,
windowsConfiguration:
{
provisionVMAgent: boolean ,
enableAutomaticUpdates: boolean ,
timeZone: string ,
additionalUnattendContent:
[
{
passName: enum ,
componentName: enum ,
settingName: enum ,
content: string ,
}
,
]
,
patchSettings:
{
patchMode: enum ,
enableHotpatching: boolean ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
winRM:
{
listeners:
[
{
protocol: enum ,
certificateUrl: string ,
}
,
]
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
patchSettings:
{
patchMode: enum ,
assessmentMode: enum ,
automaticByPlatformSettings:
{
rebootSetting: enum ,
bypassPlatformSafetyChecksOnUserSchedule: boolean ,
}
,
}
,
enableVMAgentPlatformUpdates: boolean ,
}
,
secrets:
[
{
sourceVault:
{
id: string ,
}
,
vaultCertificates:
[
{
certificateUrl: string ,
certificateStore: string ,
}
,
]
,
}
,
]
,
allowExtensionOperations: boolean ,
requireGuestProvisionSignal: boolean ,
}
,
securityProfile:
{
uefiSettings:
{
secureBootEnabled: boolean ,
vTpmEnabled: boolean ,
}
,
encryptionAtHost: boolean ,
securityType: enum ,
encryptionIdentity:
{
userAssignedIdentityResourceId: string ,
}
,
proxyAgentSettings:
{
enabled: boolean ,
mode: enum ,
keyIncarnationId: integer ,
wireServer:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
imds:
{
mode: enum ,
inVMAccessControlProfileReferenceId: string ,
}
,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
properties:
{
primary: boolean ,
deleteOption: enum ,
}
,
}
,
]
,
networkApiVersion: enum ,
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
deleteOption: enum ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
enableIPForwarding: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
deleteOption: enum ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
publicIPAllocationMethod: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
networkProfileConfiguration:
{
networkInterfaceConfigurations:
[
{
name: string ,
properties:
{
primary: boolean ,
enableAcceleratedNetworking: boolean ,
disableTcpStateTracking: boolean ,
enableFpga: boolean ,
networkSecurityGroup:
{
id: string ,
}
,
dnsSettings:
{
dnsServers:
[
string ,
]
,
}
,
ipConfigurations:
[
{
name: string ,
properties:
{
subnet:
{
id: string ,
}
,
primary: boolean ,
publicIPAddressConfiguration:
{
name: string ,
properties:
{
idleTimeoutInMinutes: integer ,
dnsSettings:
{
domainNameLabel: string ,
domainNameLabelScope: enum ,
}
,
ipTags:
[
{
ipTagType: string ,
tag: string ,
}
,
]
,
publicIPPrefix:
{
id: string ,
}
,
publicIPAddressVersion: enum ,
deleteOption: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
}
,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: object ,
protectedSettings: object ,
provisioningState: string ,
instanceView:
{
name: string ,
type: string ,
typeHandlerVersion: string ,
substatuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
provisionAfterExtensions:
[
string ,
]
,
}
,
}
,
]
,
zones:
[
string ,
]
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_PowerOff (new)
Description Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
skipShutdown: boolean ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Restart (new)
Description Restarts a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Start (new)
Description Starts a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_Redeploy (new)
Description Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_RetrieveBootDiagnosticsData (new)
Description The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
sasUriExpirationTimeInMinutes: integer ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
consoleScreenshotBlobUri: string ,
serialConsoleLogBlobUri: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_PerformMaintenance (new)
Description Performs maintenance on a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_SimulateEviction (new)
Description The operation to simulate the eviction of spot virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
VirtualMachineScaleSetVMs_AttachDetachDataDisks (new)
Description Attach and detach data disks to/from a virtual machine in a VM scale set.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks
{
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
parameters:
{
dataDisksToAttach:
[
{
diskId: string ,
lun: integer ,
caching: enum ,
deleteOption: enum ,
diskEncryptionSet: string ,
writeAcceleratorEnabled: boolean ,
}
,
]
,
dataDisksToDetach:
[
{
diskId: string ,
detachOption: enum ,
}
,
]
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
imageReference:
{
publisher: string ,
offer: string ,
sku: string ,
version: string ,
exactVersion: string ,
sharedGalleryImageId: string ,
communityGalleryImageId: string ,
}
,
osDisk:
{
osType: enum ,
encryptionSettings:
{
diskEncryptionKey:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
keyEncryptionKey:
{
keyUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
enabled: boolean ,
}
,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
diffDiskSettings:
{
option: enum ,
placement: enum ,
}
,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
vhd:
{
uri: string ,
}
,
image:
{
uri: string ,
}
,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: string ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: string ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}