From 129c1c07a2a65b13cc659edd095efddd17296c1e Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 19:38:28 -0700 Subject: [PATCH 01/19] Made changes for dedicated host group instance view --- .../stable/2020-06-01/compute.json | 14 +++++ .../examples/GetADedicatedHostGroup.json | 56 ++++++++++++++++++- 2 files changed, 68 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index b57655bd5d11..3cad5522999f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -782,6 +782,20 @@ "type": "string", "description": "The name of the dedicated host group." }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + }, { "$ref": "#/parameters/ApiVersionParameter" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json index f383d65e8771..a6518236487d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", - "api-version": "2018-10-01", + "api-version": "2020-06-01", "hostGroupName": "myDedicatedHostGroup" }, "responses": { @@ -17,7 +17,59 @@ { "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost2" } - ] + ], + "instanceView": { + "hosts": [ + { + "name": "myHost1", + "assetId": "eb3f58b8-b4e8-4882-b69f-301a01812407", + "availableCapacity": { + "allocatableVMs": [ + { + "vmSize": "Standard_A1", + "count": 10 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded" + }, + { + "code": "HealthState/available", + "level": "Info", + "displayStatus": "Host available" + } + ] + }, + { + "name": "myHost2", + "assetId": "f293d4ac-5eea-4be2-b0c0-0fcaa09aebf8", + "availableCapacity": { + "allocatableVMs": [ + { + "vmSize": "Standard_A1", + "count": 10 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded" + }, + { + "code": "HealthState/available", + "level": "Info", + "displayStatus": "Host available" + } + ] + } + ] + } }, "location": "westus", "tags": { From a83f36f702d34b12bb7bda2ffbc89c87fdab7148 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 20:07:24 -0700 Subject: [PATCH 02/19] Added definitions for dedicated host group instance view --- .../stable/2020-06-01/compute.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 3cad5522999f..324a3835207e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -6497,6 +6497,14 @@ ], "description": "The List Proximity Placement Group operation response." }, + "DedicatedHostGroupInstanceView": { + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedHostInstanceViewWithName" + } + } + }, "DedicatedHostGroupProperties": { "properties": { "platformFaultDomainCount": { @@ -6513,6 +6521,11 @@ }, "readOnly": true, "description": "A list of references to all dedicated hosts in the dedicated host group." + }, + "instanceView": { + "$ref": "#/definitions/DedicatedHostGroupInstanceView", + "readOnly": true, + "description": "The dedicated host group instance view." } }, "required": [ @@ -6641,6 +6654,20 @@ }, "description": "The instance view of a dedicated host." }, + "DedicatedHostInstanceViewWithName": { + "properties": { + "name": { + "type": "string", + "description": "The name of the dedicated host." + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "description": "The instance view of a dedicated host." + }, "DedicatedHostProperties": { "properties": { "platformFaultDomain": { From 974013248e0d9a49d23e8fb9a8676266fd975189 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 20:20:24 -0700 Subject: [PATCH 03/19] Made changes for SupportAutomaticPlacement --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 4 ++++ .../examples/CreateOrUpdateADedicatedHostGroup.json | 11 +++++++---- .../2020-06-01/examples/GetADedicatedHostGroup.json | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 324a3835207e..2f70a1bea2db 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -6526,6 +6526,10 @@ "$ref": "#/definitions/DedicatedHostGroupInstanceView", "readOnly": true, "description": "The dedicated host group instance view." + }, + "supportAutomaticPlacement": { + "type": "boolean", + "description": "Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'true' when not provided." } }, "required": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json index 3d4ec8a42903..6b88ea9fd406 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2018-10-01", + "api-version": "2020-06-01", "hostGroupName": "myDedicatedHostGroup", "parameters": { "location": "westus", @@ -13,7 +13,8 @@ "1" ], "properties": { - "platformFaultDomainCount": 3 + "platformFaultDomainCount": 3, + "supportAutomaticPlacement": true } } }, @@ -31,7 +32,8 @@ ], "properties": { "platformFaultDomainCount": 3, - "hosts": [] + "hosts": [], + "supportAutomaticPlacement": true } } }, @@ -39,7 +41,8 @@ "body": { "properties": { "platformFaultDomainCount": 3, - "hosts": [] + "hosts": [], + "supportAutomaticPlacement": true }, "location": "westus", "tags": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json index a6518236487d..429412d62e0c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json @@ -18,6 +18,7 @@ "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost2" } ], + "supportAutomaticPlacement": true, "instanceView": { "hosts": [ { From cda021c55dd2f1983b51dbeaba20e99708780841 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 20:46:40 -0700 Subject: [PATCH 04/19] Made changes for assigned host --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 4 ++++ .../2020-06-01/examples/GetVirtualMachineInstanceView.json | 1 + 2 files changed, 5 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 2f70a1bea2db..368c3619d418 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -8496,6 +8496,10 @@ "$ref": "#/definitions/BootDiagnosticsInstanceView", "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor." }, + "assignedHost": { + "type": "string", + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement." + }, "statuses": { "type": "array", "items": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json index d01a86c4c1ab..eaa676cb341f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json @@ -64,6 +64,7 @@ "consoleScreenshotBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.screenshot.bmp", "serialConsoleLogBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.serialconsole.log" }, + "assignedHost": "/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost" "extensions": [ { "name": "IaaSAntiMalware-ext0", From 720548c1ff62658f49a5dd2c64e0abb465d913c3 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 21:53:38 -0700 Subject: [PATCH 05/19] Made changes on properties.hostGroup --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 368c3619d418..6f3fedc1c364 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -8568,6 +8568,10 @@ "$ref": "#/definitions/SubResource", "description": "Specifies information about the dedicated host that the virtual machine resides in.

Minimum api-version: 2018-10-01." }, + "hostGroup": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01." + }, "provisioningState": { "readOnly": true, "type": "string", @@ -9963,6 +9967,10 @@ "$ref": "#/definitions/SubResource", "description": "Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

Minimum api-version: 2018-04-01." }, + "hostGroup": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the dedicated host group that the virtual machine scale set resides in.

Minimum api-version: 2020-06-01." + }, "additionalCapabilities": { "$ref": "#/definitions/AdditionalCapabilities", "description": "Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type." From 8f4cc1fb5076cfbe1a0bf09446f45e213a5dc99e Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 22:01:20 -0700 Subject: [PATCH 06/19] Added a missing comma --- .../2020-06-01/examples/GetVirtualMachineInstanceView.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json index eaa676cb341f..bd020a3208d2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json @@ -64,7 +64,7 @@ "consoleScreenshotBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.screenshot.bmp", "serialConsoleLogBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.serialconsole.log" }, - "assignedHost": "/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost" + "assignedHost": "/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost", "extensions": [ { "name": "IaaSAntiMalware-ext0", From 9bbbbd57346b4cda469abfccc5e01c406b7cd58c Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 2 Jun 2020 23:26:30 -0700 Subject: [PATCH 07/19] Addressed comments --- .../stable/2020-06-01/compute.json | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 6f3fedc1c364..6f032e08997b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -6498,10 +6498,12 @@ "description": "The List Proximity Placement Group operation response." }, "DedicatedHostGroupInstanceView": { - "hosts": { - "type": "array", - "items": { - "$ref": "#/definitions/DedicatedHostInstanceViewWithName" + "properties": { + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedHostInstanceViewWithName" + } } } }, @@ -6663,13 +6665,13 @@ "name": { "type": "string", "description": "The name of the dedicated host." - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ] + } }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], "description": "The instance view of a dedicated host." }, "DedicatedHostProperties": { From f58f119558b9d9e10fc14d99ae448fcab42e9573 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Wed, 3 Jun 2020 12:07:45 -0700 Subject: [PATCH 08/19] Updated --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 98bcb52c0f84..7a9718c87723 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -6815,7 +6815,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/DedicatedHostInstanceView" } ], "description": "The instance view of a dedicated host." From 14c323867e063cd04c8f4764271dedb207d5275b Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Wed, 3 Jun 2020 15:36:05 -0700 Subject: [PATCH 09/19] Added assignedHost to VMScaleSetVMInstanceView --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 7a9718c87723..84119f4b4717 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -10815,6 +10815,10 @@ }, "description": "The resource status information." }, + "assignedHost": { + "type": "string", + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement." + }, "placementGroupId": { "type": "string", "description": "The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId." From b1b1c75f0e7d2616e9a1474d0caa2c910dbc2394 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Thu, 4 Jun 2020 20:24:44 -0700 Subject: [PATCH 10/19] Addressed comments --- .../stable/2020-06-01/compute.json | 17 +++++++++-------- .../CreateOrUpdateADedicatedHostGroup.json | 2 -- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 84119f4b4717..d1d19aa068d3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -787,7 +787,7 @@ "in": "query", "required": false, "type": "string", - "description": "The expand expression to apply on the operation.", + "description": "The expand expression to apply on the operation. The response shows the list of instance view of the dedicated hosts under the dedicated host group.", "enum": [ "instanceView" ], @@ -6649,7 +6649,8 @@ "type": "array", "items": { "$ref": "#/definitions/DedicatedHostInstanceViewWithName" - } + }, + "description": "List of instance view of the dedicated hosts under the dedicated host group." } } }, @@ -6673,11 +6674,11 @@ "instanceView": { "$ref": "#/definitions/DedicatedHostGroupInstanceView", "readOnly": true, - "description": "The dedicated host group instance view." + "description": "The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group." }, "supportAutomaticPlacement": { "type": "boolean", - "description": "Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'true' when not provided." + "description": "Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'true' when not provided.

Minimum api-version: 2020-06-01." } }, "required": [ @@ -6818,7 +6819,7 @@ "$ref": "#/definitions/DedicatedHostInstanceView" } ], - "description": "The instance view of a dedicated host." + "description": "The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group." }, "DedicatedHostProperties": { "properties": { @@ -8646,7 +8647,7 @@ }, "assignedHost": { "type": "string", - "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement." + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement.

Minimum api-version: 2020-06-01." }, "statuses": { "type": "array", @@ -8718,7 +8719,7 @@ }, "hostGroup": { "$ref": "#/definitions/SubResource", - "description": "Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01." + "description": "Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01. NOTE: User cannot specify both host and hostGroup properties." }, "provisioningState": { "readOnly": true, @@ -10817,7 +10818,7 @@ }, "assignedHost": { "type": "string", - "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement." + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled." }, "placementGroupId": { "type": "string", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json index 6b88ea9fd406..7d6e5d145fd1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/CreateOrUpdateADedicatedHostGroup.json @@ -32,7 +32,6 @@ ], "properties": { "platformFaultDomainCount": 3, - "hosts": [], "supportAutomaticPlacement": true } } @@ -41,7 +40,6 @@ "body": { "properties": { "platformFaultDomainCount": 3, - "hosts": [], "supportAutomaticPlacement": true }, "location": "westus", From a1e552a9bcbaf94ad0cee8b2aad5b3e7eb3fffe6 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Sat, 6 Jun 2020 18:09:22 -0700 Subject: [PATCH 11/19] Added minimum API version for assignedHost --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index d1d19aa068d3..002a6777a1e0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -8647,7 +8647,7 @@ }, "assignedHost": { "type": "string", - "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement.

Minimum api-version: 2020-06-01." + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01." }, "statuses": { "type": "array", @@ -10818,7 +10818,7 @@ }, "assignedHost": { "type": "string", - "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled." + "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01." }, "placementGroupId": { "type": "string", From 1e3fc2ef174af4bb48bfbd6af0b7c0cd9755dd49 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Sat, 6 Jun 2020 18:46:44 -0700 Subject: [PATCH 12/19] Addressed comments --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 5 ++++- .../2020-06-01/examples/GetVirtualMachineInstanceView.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 002a6777a1e0..fcf26ff4b8de 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -793,7 +793,7 @@ ], "x-ms-enum": { "name": "InstanceViewTypes", - "modelAsString": false + "modelAsString": true } }, { @@ -6811,6 +6811,7 @@ "properties": { "name": { "type": "string", + "readOnly": true, "description": "The name of the dedicated host." } }, @@ -8647,6 +8648,7 @@ }, "assignedHost": { "type": "string", + "readOnly": true, "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01." }, "statuses": { @@ -10818,6 +10820,7 @@ }, "assignedHost": { "type": "string", + "readOnly": true, "description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01." }, "placementGroupId": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json index bd020a3208d2..7fcb1160381f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json @@ -3,7 +3,8 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "api-version": "2020-06-01", - "vmName": "myVM" + "vmName": "myVM", + "expand": "instanceview" }, "responses": { "200": { From f67912e0d091e5bc23a602ed4435dcb8f1d04b7d Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Sat, 6 Jun 2020 18:53:13 -0700 Subject: [PATCH 13/19] ModelAsString to false --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index fcf26ff4b8de..2696fdc35ea0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -793,7 +793,7 @@ ], "x-ms-enum": { "name": "InstanceViewTypes", - "modelAsString": true + "modelAsString": false } }, { From b2cd31027a8d56b00fe45b05863d8d4612ee45a5 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Sat, 6 Jun 2020 23:23:25 -0700 Subject: [PATCH 14/19] Added exmples for VM --- .../stable/2020-06-01/compute.json | 6 ++ ...MachineAutoPlacedOnDedicatedHostGroup.json | 67 +++++++++++++++++++ .../GetVirtualMachineInstanceView.json | 4 +- ...nceViewAutoPlacedOnDedicatedHostGroup.json | 57 ++++++++++++++++ 4 files changed, 131 insertions(+), 3 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 2696fdc35ea0..e223b36cd02b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2869,6 +2869,9 @@ "x-ms-examples": { "Get a Virtual Machine.": { "$ref": "./examples/GetVirtualMachine.json" + }, + "Get a virtual machine placed on a dedicated host group through automatic placement": { + "$ref": "./examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json" } } } @@ -2913,6 +2916,9 @@ "x-ms-examples": { "Get Virtual Machine Instance View.": { "$ref": "./examples/GetVirtualMachineInstanceView.json" + }, + "Get instance view of a virtual machine placed on a dedicated host group through automatic placement.": { + "$ref": "./examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json new file mode 100644 index 000000000000..8c4307733aa0 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "name": "myVM", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "location": "West US", + "tags": { + "myTag1": "tagValue1" + }, + "properties": { + "vmId": "0f47b100-583c-48e3-a4c0-aefc2c9bbcc1", + "hostGroup": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup" + }, + "hardwareProfile": { + "vmSize": "Standard_D2s_v3" + }, + "storageProfile": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter", + "version": "latest" + }, + "osDisk": { + "osType": "Windows", + "name": "myOsDisk", + "createOption": "FromImage", + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk" + }, + "diskSizeGB": 30 + }, + "dataDisks": [], + }, + "osProfile": { + "computerName": "myVM", + "adminUsername": "admin", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": false + }, + "secrets": [] + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{myNIC}" + } + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json index 7fcb1160381f..d01a86c4c1ab 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceView.json @@ -3,8 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "api-version": "2020-06-01", - "vmName": "myVM", - "expand": "instanceview" + "vmName": "myVM" }, "responses": { "200": { @@ -65,7 +64,6 @@ "consoleScreenshotBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.screenshot.bmp", "serialConsoleLogBlobUri": "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.serialconsole.log" }, - "assignedHost": "/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost", "extensions": [ { "name": "IaaSAntiMalware-ext0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json new file mode 100644 index 000000000000..b1c54692f371 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-06-01", + "vmName": "myVM" + }, + "responses": { + "200": { + "body": { + "computerName": "myVM", + "osName": "Windows Server 2016 Datacenter", + "osVersion": "Microsoft Windows NT 10.0.14393.0", + "vmAgent": { + "vmAgentVersion": "2.7.41491.949", + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Ready", + "message": "GuestAgent is running and accepting new configurations.", + "time": "2020-06-01T23:11:22+00:00" + } + ] + }, + "disks": [ + { + "name": "myOsDisk", + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "time": "2020-06-01T21:29:47.477089+00:00" + } + ] + } + ], + "hyperVGeneration": "V1", + "assignedHost": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup/hosts/myHost" + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "time": "2020-06-01T21:30:12.8051917+00:00" + }, + { + "code": "PowerState/running", + "level": "Info", + "displayStatus": "VM running" + } + ] + } + } + } +} From 2613fc462419c6f008b8e90b7e82e9e15dd176e3 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Sun, 7 Jun 2020 00:19:57 -0700 Subject: [PATCH 15/19] Added examples for VMSS --- .../stable/2020-06-01/compute.json | 10 ++ ...nceViewAutoPlacedOnDedicatedHostGroup.json | 2 +- ...caleSetAutoPlacedOnDedicatedHostGroup.json | 93 +++++++++++++++++++ ...nceViewAutoPlacedOnDedicatedHostGroup.json | 69 ++++++++++++++ 4 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index e223b36cd02b..c00375428d50 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -3811,6 +3811,11 @@ "$ref": "#/definitions/VirtualMachineScaleSet" } } + }, + "x-ms-examples": { + "Get a virtual machine scale set placed on a dedicated host group through automatic placement.": { + "$ref": "./examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json" + } } } }, @@ -5777,6 +5782,11 @@ "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceView" } } + }, + "x-ms-examples": { + "Get instance view of a virtual machine from a VM scale set placed on a dedicated host group through automatic placement.": { + "$ref": "./examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json" + } } } }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json index b1c54692f371..753e36339bd3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineInstanceViewAutoPlacedOnDedicatedHostGroup.json @@ -37,7 +37,7 @@ } ], "hyperVGeneration": "V1", - "assignedHost": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup/hosts/myHost" + "assignedHost": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup/hosts/myHost", "statuses": [ { "code": "ProvisioningState/succeeded", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json new file mode 100644 index 000000000000..846cf1a2e255 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "virtualMachineScaleSetName": "myVirtualMachineScaleSet", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "name": "myVirtualMachineScaleSet", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myVirtualMachineScaleSet", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "location": "West US", + "tags": { + "myTag1": "tagValue1" + }, + "sku": { + "name": "Standard_D2s_v3", + "tier": "Standard", + "capacity": 4 + }, + "properties": { + "singlePlacementGroup": false, + "upgradePolicy": { + "mode": "Automatic", + "automaticOSUpgradePolicy": { + "enableAutomaticOSUpgrade": false + }, + "disableExistingVMOSUpgrade": false + }, + "virtualMachineProfile": { + "storageProfile": { + "osDisk": { + "createOption": "FromImage", + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "diskSizeGB": 30 + }, + "imageReference": { + "publisher": "azuredatabricks", + "offer": "databricks", + "sku": "databricksworker", + "version": "3.15.2" + }, + "dataDisks": [] + }, + "osProfile": { + "computerNamePrefix": "myVirtualMachineScaleSet", + "adminUsername": "admin", + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "myNic", + "properties": { + "primary": true, + "ipConfigurations": [ + { + "name": "myIPConfig", + "properties": { + "primary": true, + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet" + } + } + } + ], + "networkSecurityGroup": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup" + } + } + } + ] + } + }, + "provisioningState": "succeeded", + "overprovision": false, + "doNotRunExtensionsOnOverprovisionedVMs": false, + "platformFaultDomainCount": 1, + "hostGroup": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup" + } + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json new file mode 100644 index 000000000000..9217d2663aa7 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "virtualMachineScaleSetName": "myVirtualMachineScaleSet", + "instanceId": "0", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "platformUpdateDomain": 0, + "platformFaultDomain": 0, + "computerName": null, + "osName": null, + "osVersion": null, + "rdpThumbPrint": null, + "vmAgent": { + "vmAgentVersion": "Unknown", + "statuses": [ + { + "code": "ProvisioningState/Unavailable", + "level": 2, + "displayStatus": "Not Ready", + "message": "VM status blob is found but not yet populated.", + "time": "2020-06-01T05:00:32+00:00" + } + ], + "extensionHandlers": null + }, + "patchStatus": null, + "disks": [ + { + "name": "myOSDisk", + "encryptionSettings": null, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": 1, + "displayStatus": "Provisioning succeeded", + "message": null, + "time": "2020-06-01T04:58:58.0882815+00:00" + } + ] + } + ], + "extensions": null, + "assignedHost": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup/hosts/myHost", + "bootDiagnostics": null, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": 1, + "displayStatus": "Provisioning succeeded", + "message": null, + "time": "2020-06-05T04:59:58.1852966+00:00" + }, + { + "code": "PowerState/running", + "level": 1, + "displayStatus": "VM running", + "message": null, + "time": null + } + ] + } + } + } +} From 99eab7577c9586ee695eae5b16c5f1e60c13ab30 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Mon, 8 Jun 2020 11:22:39 -0700 Subject: [PATCH 16/19] small fix --- .../GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json index 8c4307733aa0..f8f243a0a90e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineAutoPlacedOnDedicatedHostGroup.json @@ -41,7 +41,7 @@ }, "diskSizeGB": 30 }, - "dataDisks": [], + "dataDisks": [] }, "osProfile": { "computerName": "myVM", From 3f417bdac29cf92e6ec80d065082770fceadd336 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 9 Jun 2020 00:37:48 -0700 Subject: [PATCH 17/19] Addressed comments --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- ...leSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index c00375428d50..3cfe3a0f2475 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -8737,7 +8737,7 @@ }, "hostGroup": { "$ref": "#/definitions/SubResource", - "description": "Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01. NOTE: User cannot specify both host and hostGroup properties." + "description": "Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01.

NOTE: User cannot specify both host and hostGroup properties." }, "provisioningState": { "readOnly": true, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json index 9217d2663aa7..b3601655f3b9 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json @@ -20,7 +20,7 @@ "statuses": [ { "code": "ProvisioningState/Unavailable", - "level": 2, + "level": "Warning", "displayStatus": "Not Ready", "message": "VM status blob is found but not yet populated.", "time": "2020-06-01T05:00:32+00:00" @@ -36,7 +36,7 @@ "statuses": [ { "code": "ProvisioningState/succeeded", - "level": 1, + "level": "Info", "displayStatus": "Provisioning succeeded", "message": null, "time": "2020-06-01T04:58:58.0882815+00:00" @@ -50,14 +50,14 @@ "statuses": [ { "code": "ProvisioningState/succeeded", - "level": 1, + "level": "Info", "displayStatus": "Provisioning succeeded", "message": null, "time": "2020-06-05T04:59:58.1852966+00:00" }, { "code": "PowerState/running", - "level": 1, + "level": "Info", "displayStatus": "VM running", "message": null, "time": null From 49327b2dad8cdbe58a50239055355dc5aac8eed1 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 9 Jun 2020 14:22:49 -0700 Subject: [PATCH 18/19] Added missing parameter --- .../stable/2020-06-01/examples/GetADedicatedHostGroup.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json index 429412d62e0c..cdd201b86023 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetADedicatedHostGroup.json @@ -3,7 +3,8 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "api-version": "2020-06-01", - "hostGroupName": "myDedicatedHostGroup" + "hostGroupName": "myDedicatedHostGroup", + "expand": "instanceView" }, "responses": { "200": { From 94d546c070f989f6863a3025795913edf293ef60 Mon Sep 17 00:00:00 2001 From: Dongwook Chung Date: Tue, 9 Jun 2020 21:46:57 -0700 Subject: [PATCH 19/19] Fixed examples --- ...irtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json | 5 ++--- ...caleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json | 6 +----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json index 846cf1a2e255..1e18a2445395 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetAutoPlacedOnDedicatedHostGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "virtualMachineScaleSetName": "myVirtualMachineScaleSet", + "vmScaleSetName": "myVirtualMachineScaleSet", "api-version": "2020-06-01" }, "responses": { @@ -26,8 +26,7 @@ "mode": "Automatic", "automaticOSUpgradePolicy": { "enableAutomaticOSUpgrade": false - }, - "disableExistingVMOSUpgrade": false + } }, "virtualMachineProfile": { "storageProfile": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json index b3601655f3b9..bd6489768829 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/GetVirtualMachineScaleSetVMInstanceViewAutoPlacedOnDedicatedHostGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "virtualMachineScaleSetName": "myVirtualMachineScaleSet", + "vmScaleSetName": "myVirtualMachineScaleSet", "instanceId": "0", "api-version": "2020-06-01" }, @@ -11,9 +11,6 @@ "body": { "platformUpdateDomain": 0, "platformFaultDomain": 0, - "computerName": null, - "osName": null, - "osVersion": null, "rdpThumbPrint": null, "vmAgent": { "vmAgentVersion": "Unknown", @@ -28,7 +25,6 @@ ], "extensionHandlers": null }, - "patchStatus": null, "disks": [ { "name": "myOSDisk",