From 055b2ada86506c8693f518c417482078577cc855 Mon Sep 17 00:00:00 2001 From: Rakesh Akkera Date: Thu, 27 Jun 2019 16:55:11 -0700 Subject: [PATCH 1/2] Adding optional billing profile to VMSS Set and Update APIs for Api Version 2019-03-01 --- .../stable/2019-03-01/compute.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json index f3d83ab1d77d..8309610e21d0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json @@ -6208,6 +6208,14 @@ }, "description": "Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15." }, + "BillingProfile": { + "maxPrice": { + "type": "number", + "format": "double", + "description": "Specifies the maximum price you are willing to pay for a low priority VM/VMSS. This price is in US Dollars.

This price will be compared with the current low priority price for the VM size. Also, the prices are compared at the time of create/update of low priority VM/VMSS and the operation will only succeed if the maxPrice is greater than the current low priority price.

The maxPrice will also be used for evicting a low priority VM/VMSS if the current low priority price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: $0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the low priority VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01." + }, + "description": "Specifies the billing related details of a low priority VM or VMSS.

Minimum api-version: 2019-03-01." + }, "VirtualMachineExtensionHandlerInstanceView": { "properties": { "type": { @@ -7726,6 +7734,10 @@ "name": "VirtualMachineEvictionPolicyTypes", "modelAsString": true } + }, + "billingProfile": { + "$ref": "#/definitions/BillingProfile", + "description": "Specifies the billing related details of a low priority VMSS.

Minimum api-version: 2019-03-01." } }, "description": "Describes a virtual machine scale set virtual machine profile." @@ -7755,6 +7767,10 @@ "licenseType": { "type": "string", "description": "The license type, which is for bring your own license scenario." + }, + "billingProfile": { + "$ref": "#/definitions/BillingProfile", + "description": "Specifies the billing related details of a low priority VMSS.

Minimum api-version: 2019-03-01." } }, "description": "Describes a virtual machine scale set virtual machine profile." From 4d339d3178413898d013ac693e3a661954b35163 Mon Sep 17 00:00:00 2001 From: Rakesh Akkera Date: Fri, 28 Jun 2019 08:52:36 -0700 Subject: [PATCH 2/2] Added propeties block for Billing profile and put max price in it --- .../Microsoft.Compute/stable/2019-03-01/compute.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json index 8309610e21d0..f047cd362dc9 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json @@ -6209,10 +6209,12 @@ "description": "Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15." }, "BillingProfile": { - "maxPrice": { + "properties": { + "maxPrice": { "type": "number", "format": "double", - "description": "Specifies the maximum price you are willing to pay for a low priority VM/VMSS. This price is in US Dollars.

This price will be compared with the current low priority price for the VM size. Also, the prices are compared at the time of create/update of low priority VM/VMSS and the operation will only succeed if the maxPrice is greater than the current low priority price.

The maxPrice will also be used for evicting a low priority VM/VMSS if the current low priority price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: $0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the low priority VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01." + "description": "Specifies the maximum price you are willing to pay for a low priority VM/VMSS. This price is in US Dollars.

This price will be compared with the current low priority price for the VM size. Also, the prices are compared at the time of create/update of low priority VM/VMSS and the operation will only succeed if the maxPrice is greater than the current low priority price.

The maxPrice will also be used for evicting a low priority VM/VMSS if the current low priority price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: $0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the low priority VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01." + } }, "description": "Specifies the billing related details of a low priority VM or VMSS.

Minimum api-version: 2019-03-01." },