Microsoft.AzureStackHCI (preview:2024-02-01)

2024/12/17 • 4 updated methods

VirtualMachineInstances_List (updated)
Description Lists all of the virtual machine instances within the specified parent resource.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineInstances_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "osProfile": [
                  {
                    "linuxConfiguration": [
                      {
                        "ssh": [
                          {
                            "publicKeys": {
                              "$properties": [
                                {
                                  "#name": "keyData",
                                  "Description": {
                                    "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. 

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } } } } } }

⚼ Request

GET:  /{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances
{
api-version: string ,
resourceUri: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VirtualMachineInstances_Get (updated)
Description Gets a virtual machine instance
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineInstances_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "osProfile": [
              {
                "linuxConfiguration": [
                  {
                    "ssh": [
                      {
                        "publicKeys": {
                          "$properties": [
                            {
                              "#name": "keyData",
                              "Description": {
                                "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. 

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } } } }

⚼ Request

GET:  /{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default
{
api-version: string ,
resourceUri: string ,
}

⚐ Response (200)

{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VirtualMachineInstances_CreateOrUpdate (updated)
Description The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineInstances_CreateOrUpdate",
  "$parameters": {
    "resource": {
      "$properties": {
        "properties": [
          {
            "osProfile": [
              {
                "linuxConfiguration": [
                  {
                    "ssh": [
                      {
                        "publicKeys": {
                          "$properties": [
                            {
                              "#name": "keyData",
                              "Description": {
                                "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. 

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } } }, "$responses": { "200": { "$properties": { "properties": [ { "osProfile": [ { "linuxConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } }, "201": { "$properties": { "properties": [ { "osProfile": [ { "linuxConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } } } }

⚼ Request

PUT:  /{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default
{
api-version: string ,
resourceUri: string ,
resource:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (201)

{
$headers:
{
retry-after: integer ,
}
,
$schema:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VirtualMachineInstances_Update (updated)
Description The operation to update a virtual machine instance.
Reference Link ¶

⚶ Changes

{
  "#id": "VirtualMachineInstances_Update",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "osProfile": [
              {
                "linuxConfiguration": [
                  {
                    "ssh": [
                      {
                        "publicKeys": {
                          "$properties": [
                            {
                              "#name": "keyData",
                              "Description": {
                                "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. 

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] }, { "windowsConfiguration": [ { "ssh": [ { "publicKeys": { "$properties": [ { "#name": "keyData", "Description": { "new": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).", "old": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." } } ] } } ] } ] } ] } ] } } } }

⚼ Request

PATCH:  /{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default
{
api-version: string ,
resourceUri: string ,
properties:
{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
computerName: string ,
linuxConfiguration:
{
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
hardwareProfile:
{
vmSize: enum ,
processors: integer ,
memoryMB: integer ,
dynamicMemoryConfig:
{
maximumMemoryMB: integer ,
minimumMemoryMB: integer ,
targetMemoryBuffer: integer ,
}
,
}
,
networkProfile:
{
networkInterfaces:
[
{
id: string ,
}
,
]
,
}
,
osProfile:
{
adminPassword: string ,
adminUsername: string ,
computerName: string ,
linuxConfiguration:
{
disablePasswordAuthentication: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
windowsConfiguration:
{
enableAutomaticUpdates: boolean ,
ssh:
{
publicKeys:
[
{
path: string ,
keyData: string ,
}
,
]
,
}
,
timeZone: string ,
provisionVMAgent: boolean ,
provisionVMConfigAgent: boolean ,
}
,
}
,
securityProfile:
{
enableTPM: boolean ,
uefiSettings:
{
secureBootEnabled: boolean ,
}
,
securityType: enum ,
}
,
storageProfile:
{
dataDisks:
[
{
id: string ,
}
,
]
,
imageReference:
{
id: string ,
}
,
osDisk:
{
id: string ,
osType: enum ,
}
,
vmConfigStoragePathId: string ,
}
,
httpProxyConfig:
{
httpProxy: string ,
httpsProxy: string ,
noProxy:
[
string ,
]
,
trustedCa: string ,
}
,
provisioningState: enum ,
instanceView:
{
vmAgent:
{
vmConfigAgentVersion: string ,
statuses:
[
{
code: string ,
level: enum ,
displayStatus: string ,
message: string ,
time: string ,
}
,
]
,
}
,
}
,
status:
{
errorCode: string ,
errorMessage: string ,
powerState: enum ,
provisioningStatus:
{
operationId: string ,
status: enum ,
}
,
}
,
guestAgentInstallStatus:
{
vmUuid: string ,
status: enum ,
lastStatusChange: string ,
agentVersion: string ,
errorDetails:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
vmId: string ,
resourceUid: string ,
}
,
extendedLocation:
{
name: string ,
type: enum ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}