Microsoft.Compute (stable:2025-04-01)

2025/10/14 • 22 updated methods

VirtualMachineScaleSets_ListByLocation (updated)
Description Gets all the VM scale sets under the specified subscription for the specified location.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_ListByLocation",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_2b971fa5c01f400cb206226e7f9e2197": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets
{
api-version: string ,
subscriptionId: string ,
location: 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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_ListByLocation (updated)
Description Gets all the virtual machines under the specified subscription for the specified location.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachines_ListByLocation",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_4b922af855424662aeb9c642bfe912c3": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 ,
}
,
}
RestorePointCollections_ListAll (updated)
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 ¶

⚶ Changes

{
  "#id": "RestorePointCollections_ListAll",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "restorePoints": {
                  "$properties": {
                    "properties": [
                      {
                        "instanceView": [
                          {
                            "diskRestorePoints": {
                              "$properties": {
                                "@added_c87e622c9792483ca368734c75214610": {
                                  "#name": "snapshotAccessState",
                                  "Description": "The state of snapshot which determines the access availability of the snapshot.",
                                  "Enum": [
                                    [
                                      "Unknown",
                                      "Default value."
                                    ],
                                    [
                                      "Pending",
                                      "The snapshot cannot be used for restore, copy or download to offline."
                                    ],
                                    [
                                      "Available",
                                      "The snapshot can be used for restore, copy to different region, and download to offline."
                                    ],
                                    [
                                      "InstantAccess",
                                      "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                    ],
                                    [
                                      "AvailableWithInstantAccess",
                                      "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                    ]
                                  ],
                                  "Required": false,
                                  "Type": "string"
                                }
                              }
                            }
                          }
                        ]
                      },
                      {
                        "@added_8e16e0b3c63f48b9bdbf2ddd89ae7e0a": {
                          "#name": "instantAccessDurationMinutes",
                          "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                          "Format": "int32",
                          "Required": false,
                          "Type": "integer"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "@added_be06a312a7d04c10b3963c8f9bd5e4b1": {
                  "#name": "instantAccess",
                  "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}
,
]
,
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 (updated)
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 ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_ListAll",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_5d24f6ceb5374aeaac027bffedd6c5ec": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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 (updated)
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 ¶

⚶ Changes

{
  "#id": "VirtualMachines_ListAll",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_185c94ab8da94ca785429e0383a69f03": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 ,
}
,
}
RestorePointCollections_List (updated)
Description Gets the list of restore point collections in a resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "RestorePointCollections_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "restorePoints": {
                  "$properties": {
                    "properties": [
                      {
                        "instanceView": [
                          {
                            "diskRestorePoints": {
                              "$properties": {
                                "@added_cb3113f9a88149e18fe20fec21e4c094": {
                                  "#name": "snapshotAccessState",
                                  "Description": "The state of snapshot which determines the access availability of the snapshot.",
                                  "Enum": [
                                    [
                                      "Unknown",
                                      "Default value."
                                    ],
                                    [
                                      "Pending",
                                      "The snapshot cannot be used for restore, copy or download to offline."
                                    ],
                                    [
                                      "Available",
                                      "The snapshot can be used for restore, copy to different region, and download to offline."
                                    ],
                                    [
                                      "InstantAccess",
                                      "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                    ],
                                    [
                                      "AvailableWithInstantAccess",
                                      "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                    ]
                                  ],
                                  "Required": false,
                                  "Type": "string"
                                }
                              }
                            }
                          }
                        ]
                      },
                      {
                        "@added_89f45ddce9a849c0a7b7bb3642f5a71b": {
                          "#name": "instantAccessDurationMinutes",
                          "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                          "Format": "int32",
                          "Required": false,
                          "Type": "integer"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "@added_51f088fac9aa48bbb461ed83e4371a50": {
                  "#name": "instantAccess",
                  "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "RestorePointCollections_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_1e157767418c4ebda738c8863fcb0bd0": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_1ebc5c0e6b464397bd46d6bf552ee352": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_6def5d04ae714996a231542850ae73e1": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
$expand: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
{
code: string ,
target: string ,
message: string ,
}
,
]
,
innererror:
{
exceptiontype: string ,
errordetail: string ,
}
,
code: string ,
target: string ,
message: string ,
}
,
}
RestorePointCollections_CreateOrUpdate (updated)
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 ¶

⚶ Changes

{
  "#id": "RestorePointCollections_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_9163a781c67b455687a5d040fa9ffe94": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_8216c9494e3b4e83a9c82f5bd0ab1715": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_eb5b738bae824d60b8c7ae46166ad0f2": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_09e7b1f0920444429eaed9b39d63ce38": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_c8392e5a235643dab0b7a63dc8f20091": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_9c068f91dae043c1b65265244b77b32b": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_a5a2cd8eee1d45e2891700e93bff4fcf": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_5c47d28be75f4dd9928eb3a01ad0e93b": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_5d952435ccb542cc9a693166d50665a2": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
api-version: string ,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}
,
}

⚐ 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}

⚐ 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "RestorePointCollections_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_403a6c4b6cf24ef197cfff4ad730d63b": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_d3604076bf5e4c83ba243799880fd00f": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_f39071688d774a15a8e7b0bab848268c": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "restorePoints": {
              "$properties": {
                "properties": [
                  {
                    "instanceView": [
                      {
                        "diskRestorePoints": {
                          "$properties": {
                            "@added_fc5f6c6873104343be8a3e55c83a5331": {
                              "#name": "snapshotAccessState",
                              "Description": "The state of snapshot which determines the access availability of the snapshot.",
                              "Enum": [
                                [
                                  "Unknown",
                                  "Default value."
                                ],
                                [
                                  "Pending",
                                  "The snapshot cannot be used for restore, copy or download to offline."
                                ],
                                [
                                  "Available",
                                  "The snapshot can be used for restore, copy to different region, and download to offline."
                                ],
                                [
                                  "InstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                                ],
                                [
                                  "AvailableWithInstantAccess",
                                  "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                                ]
                              ],
                              "Required": false,
                              "Type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "@added_0080b192f5e84aa0be0fcaa964776560": {
                      "#name": "instantAccessDurationMinutes",
                      "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
                      "Format": "int32",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            }
          },
          {
            "@added_f607612947384c44a33d6d117a82cb88": {
              "#name": "instantAccess",
              "Description": "This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.",
              "Required": false,
              "Type": "boolean"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
{
api-version: string ,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}
,
}

⚐ 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
]
,
instantAccess: boolean ,
}
,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "RestorePoints_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "instanceView": [
              {
                "diskRestorePoints": {
                  "$properties": {
                    "@added_982d5b9eccb641ecaf84d1b173ebfbfd": {
                      "#name": "snapshotAccessState",
                      "Description": "The state of snapshot which determines the access availability of the snapshot.",
                      "Enum": [
                        [
                          "Unknown",
                          "Default value."
                        ],
                        [
                          "Pending",
                          "The snapshot cannot be used for restore, copy or download to offline."
                        ],
                        [
                          "Available",
                          "The snapshot can be used for restore, copy to different region, and download to offline."
                        ],
                        [
                          "InstantAccess",
                          "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                        ],
                        [
                          "AvailableWithInstantAccess",
                          "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                        ]
                      ],
                      "Required": false,
                      "Type": "string"
                    }
                  }
                }
              }
            ]
          },
          {
            "@added_2d6f84b673db4125b39f0519de963ad9": {
              "#name": "instantAccessDurationMinutes",
              "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
              "Format": "int32",
              "Required": false,
              "Type": "integer"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
restorePointCollectionName: string ,
restorePointName: string ,
$expand: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "RestorePoints_Create",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "instanceView": [
              {
                "diskRestorePoints": {
                  "$properties": {
                    "@added_807d9d02140e445ab8dfbcc835761afc": {
                      "#name": "snapshotAccessState",
                      "Description": "The state of snapshot which determines the access availability of the snapshot.",
                      "Enum": [
                        [
                          "Unknown",
                          "Default value."
                        ],
                        [
                          "Pending",
                          "The snapshot cannot be used for restore, copy or download to offline."
                        ],
                        [
                          "Available",
                          "The snapshot can be used for restore, copy to different region, and download to offline."
                        ],
                        [
                          "InstantAccess",
                          "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                        ],
                        [
                          "AvailableWithInstantAccess",
                          "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                        ]
                      ],
                      "Required": false,
                      "Type": "string"
                    }
                  }
                }
              }
            ]
          },
          {
            "@added_15188e88b3da40bf841c3cfabadb3673": {
              "#name": "instantAccessDurationMinutes",
              "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
              "Format": "int32",
              "Required": false,
              "Type": "integer"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "instanceView": [
              {
                "diskRestorePoints": {
                  "$properties": {
                    "@added_ec21d5df9b86466293ec4eeecdc57824": {
                      "#name": "snapshotAccessState",
                      "Description": "The state of snapshot which determines the access availability of the snapshot.",
                      "Enum": [
                        [
                          "Unknown",
                          "Default value."
                        ],
                        [
                          "Pending",
                          "The snapshot cannot be used for restore, copy or download to offline."
                        ],
                        [
                          "Available",
                          "The snapshot can be used for restore, copy to different region, and download to offline."
                        ],
                        [
                          "InstantAccess",
                          "The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded."
                        ],
                        [
                          "AvailableWithInstantAccess",
                          "The snapshot can be used for restoring disks with fast performance, copied and downloaded."
                        ]
                      ],
                      "Required": false,
                      "Type": "string"
                    }
                  }
                }
              }
            ]
          },
          {
            "@added_440aa77770824152b9be6e17751eb1a4": {
              "#name": "instantAccessDurationMinutes",
              "Description": "This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.",
              "Format": "int32",
              "Required": false,
              "Type": "integer"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}
{
api-version: string ,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
type: enum ,
}
,
sourceDiskRestorePoint:
{
id: string ,
}
,
}
,
writeAcceleratorEnabled: boolean ,
}
,
dataDisks:
[
{
lun: integer ,
name: string ,
caching: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskRestorePoint:
{
encryption:
{
diskEncryptionSet: object ,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
location: string ,
userData: string ,
hyperVGeneration: enum ,
}
,
provisioningState: string ,
consistencyMode: enum ,
timeCreated: string ,
sourceRestorePoint:
{
id: string ,
}
,
instanceView:
{
diskRestorePoints:
[
{
id: string ,
snapshotAccessState: enum ,
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 ,
}
,
]
,
}
,
instantAccessDurationMinutes: integer ,
}
,
}
,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_3135eba6d27b44b1963ad7c921686af8": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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 ,
}
,
}
VirtualMachineScaleSets_Get (updated)
Description Display information about a virtual machine scale set.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_6bd496cf5d92429fa7022ee67460c62a": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmScaleSetName: 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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 ,
}
,
}
VirtualMachineScaleSets_CreateOrUpdate (updated)
Description Create or update a VM scale set.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_200c958769604ba9a773516338f881c1": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_de66fac64cf344a48034e4621475120c": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_7a8e8bbcba3a43938d1d4d7bd39692c8": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmScaleSetName: string ,
If-Match: string ,
If-None-Match: 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
etag: string ,
placement:
{
zonePlacementPolicy: enum ,
includeZones:
[
string ,
]
,
excludeZones:
[
string ,
]
,
}
,
}

⚐ Response (201)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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 ,
}
,
}
VirtualMachineScaleSets_Update (updated)
Description Update a VM scale set.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSets_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_de35fe8f4b3f4e969551ccdabcedd403": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_868dc38adb744f1d840d52d2de0b3de4": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmScaleSetName: string ,
If-Match: string ,
If-None-Match: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
deleteOption: enum ,
}
,
dataDisks:
[
{
name: string ,
lun: integer ,
caching: enum ,
writeAcceleratorEnabled: boolean ,
createOption: enum ,
diskSizeGB: integer ,
managedDisk:
{
storageAccountType: enum ,
diskEncryptionSet: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
extensionProfile:
{
extensions:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
provisioningState: string ,
provisionAfterExtensions:
[
string ,
]
,
suppressFailures: boolean ,
protectedSettingsFromKeyVault:
{
secretUrl: string ,
sourceVault:
{
id: string ,
}
,
}
,
}
,
type: string ,
name: 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 ,
enableFips1403Encryption: 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 ,
}
,
zoneAllocationPolicy:
{
maxZoneCount: integer ,
maxInstancePercentPerZonePolicy:
{
enabled: boolean ,
value: integer ,
}
,
}
,
}
,
zonalPlatformFaultDomainAlignMode: enum ,
skuProfile:
{
vmSizes:
[
{
name: string ,
rank: integer ,
}
,
]
,
allocationStrategy: enum ,
}
,
highSpeedInterconnectPlacement: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
zones:
[
string ,
]
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
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 ,
}
,
}
VirtualMachineScaleSetVMs_List (updated)
Description Gets a list of all virtual machines in a VM scale sets.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSetVMs_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_c83cb1061f5a41f58382f4a9df25bf27": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
addProxyAgentExtension: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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_Get (updated)
Description Gets a virtual machine from a VM scale set.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSetVMs_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_678f33085b3f4e3fbe506fdf579b327f": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
addProxyAgentExtension: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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_Update (updated)
Description Updates a virtual machine of a VM scale set.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineScaleSetVMs_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_8f1e4acd957f4b9bb451ed4453b7fd38": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_1cb3154c126e46599c4d71c30a1526c7": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    },
    "202": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_b75631e097614540bdd3cd726ce3aa3b": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmScaleSetName: string ,
instanceId: string ,
If-Match: string ,
If-None-Match: string ,
parameters:
{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
addProxyAgentExtension: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 (200)

{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
addProxyAgentExtension: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
addProxyAgentExtension: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerInboundNatPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
enableIPForwarding: boolean ,
deleteOption: enum ,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
diagnosticsProfile:
{
bootDiagnostics:
{
enabled: boolean ,
storageUri: string ,
}
,
}
,
availabilitySet:
{
id: string ,
}
,
provisioningState: string ,
licenseType: string ,
modelDefinitionApplied: string ,
protectionPolicy:
{
protectFromScaleIn: boolean ,
protectFromScaleSetActions: boolean ,
}
,
userData: string ,
timeCreated: string ,
}
,
instanceId: string ,
sku:
{
name: string ,
tier: string ,
capacity: integer ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 ,
}
,
}
VirtualMachines_List (updated)
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 ¶

⚶ Changes

{
  "#id": "VirtualMachines_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "additionalCapabilities": [
                  {
                    "@added_c59504966ed04fa2a7970cb3c7d25a25": {
                      "#name": "enableFips1403Encryption",
                      "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                      "Required": false,
                      "Type": "boolean"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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_Get (updated)
Description Retrieves information about the model view or the instance view of a virtual machine.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachines_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_4e418fbc6bfb4a8fa385ad8fdd273219": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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_CreateOrUpdate (updated)
Description The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachines_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_c8bbe8f96ec84bb7844d8e0b67e3806c": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_49afd6a42d084d0986ece74f134ca554": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_b97c7184a56241a2b0b64a7eee74d6bd": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmName: string ,
If-Match: string ,
If-None-Match: string ,
parameters:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 (200)

{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 (updated)
Description The operation to update a virtual machine.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachines_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_3098278c4d514aa49d4f2274f1ccb303": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "additionalCapabilities": [
              {
                "@added_a7b450ee946c42c282652e77edf3e202": {
                  "#name": "enableFips1403Encryption",
                  "Description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport.",
                  "Required": false,
                  "Type": "boolean"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
vmName: string ,
If-Match: string ,
If-None-Match: 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 ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
]
,
}
,
}

⚐ Response (200)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
vmSizeProperties:
{
vCPUsAvailable: integer ,
vCPUsPerCore: integer ,
}
,
}
,
scheduledEventsPolicy:
{
userInitiatedRedeploy:
{
automaticallyApprove: boolean ,
}
,
userInitiatedReboot:
{
automaticallyApprove: boolean ,
}
,
scheduledEventsAdditionalPublishingTargets:
{
eventGridAndResourceGraph:
{
enable: boolean ,
scheduledEventsApiVersion: string ,
}
,
}
,
allInstancesDown:
{
automaticallyApprove: 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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
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: object ,
securityProfile:
{
securityEncryptionType: enum ,
diskEncryptionSet: object ,
}
,
}
,
sourceResource:
{
id: string ,
}
,
toBeDetached: boolean ,
diskIOPSReadWrite: integer ,
diskMBpsReadWrite: integer ,
detachOption: enum ,
deleteOption: enum ,
}
,
]
,
diskControllerType: enum ,
alignRegionalDisksToVMZone: boolean ,
}
,
additionalCapabilities:
{
ultraSSDEnabled: boolean ,
hibernationEnabled: boolean ,
enableFips1403Encryption: 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 ,
}
,
tags: object ,
}
,
privateIPAddressVersion: enum ,
applicationSecurityGroups:
[
{
id: string ,
}
,
]
,
applicationGatewayBackendAddressPools:
[
{
id: string ,
}
,
]
,
loadBalancerBackendAddressPools:
[
{
id: string ,
}
,
]
,
}
,
}
,
]
,
dscpConfiguration:
{
id: string ,
}
,
auxiliaryMode: enum ,
auxiliarySku: enum ,
}
,
tags: object ,
}
,
]
,
}
,
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 ,
}
,
addProxyAgentExtension: boolean ,
}
,
}
,
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 ,
}
,
plan:
{
name: string ,
publisher: string ,
product: string ,
promotionCode: string ,
}
,
resources:
[
{
properties:
{
forceUpdateTag: string ,
publisher: string ,
type: string ,
typeHandlerVersion: string ,
autoUpgradeMinorVersion: boolean ,
enableAutomaticUpgrade: boolean ,
settings: string ,
protectedSettings: string ,
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 ,
}
,
}