Skip to content

Commit b31fd02

Browse files
sirajudeenshyonholee
authored andcommitted
Adding DisallowedConfiguration property to VirtualMachineImageProperties (#9065)
1 parent da8a011 commit b31fd02

File tree

2 files changed

+84
-2
lines changed

2 files changed

+84
-2
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,13 +3439,13 @@
34393439
"x-ms-long-running-operation": true
34403440
}
34413441
},
3442-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/SimulateEviction": {
3442+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction": {
34433443
"post": {
34443444
"tags": [
34453445
"VirtualMachines"
34463446
],
34473447
"operationId": "VirtualMachines_SimulateEviction",
3448-
"description": "The operation to simulate the eviction of spot virtual machine",
3448+
"description": "The operation to simulate the eviction of spot virtual machine. The eviction will occur within 30 minutes of calling the API",
34493449
"parameters": [
34503450
{
34513451
"name": "resourceGroupName",
@@ -5984,6 +5984,55 @@
59845984
"x-ms-long-running-operation": true
59855985
}
59865986
},
5987+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction": {
5988+
"post": {
5989+
"tags": [
5990+
"VirtualMachineScaleSetVMs"
5991+
],
5992+
"operationId": "VirtualMachineScaleSetVMs_SimulateEviction",
5993+
"description": "The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction will occur within 30 minutes of calling the API",
5994+
"parameters": [
5995+
{
5996+
"name": "resourceGroupName",
5997+
"in": "path",
5998+
"required": true,
5999+
"type": "string",
6000+
"description": "The name of the resource group."
6001+
},
6002+
{
6003+
"name": "vmScaleSetName",
6004+
"in": "path",
6005+
"required": true,
6006+
"type": "string",
6007+
"description": "The name of the VM scale set."
6008+
},
6009+
{
6010+
"name": "instanceId",
6011+
"in": "path",
6012+
"required": true,
6013+
"type": "string",
6014+
"description": "The instance ID of the virtual machine."
6015+
},
6016+
{
6017+
"$ref": "#/parameters/ApiVersionParameter"
6018+
},
6019+
{
6020+
"$ref": "#/parameters/SubscriptionIdParameter"
6021+
}
6022+
],
6023+
"responses": {
6024+
"204": {
6025+
"description": "No Content"
6026+
}
6027+
},
6028+
"x-ms-long-running-operation": false,
6029+
"x-ms-examples": {
6030+
"Simulate Eviction a virtual machine.": {
6031+
"$ref": "./examples/SimulateEvictionOfVmssVM.json"
6032+
}
6033+
}
6034+
}
6035+
},
59876036
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval": {
59886037
"post": {
59896038
"tags": [
@@ -6151,6 +6200,23 @@
61516200
},
61526201
"description": "Describes the properties of a Compute Operation Value Display."
61536202
},
6203+
"DisallowedConfiguration": {
6204+
"properties": {
6205+
"vmDiskType": {
6206+
"type": "string",
6207+
"description": "VM disk types which are disallowed.",
6208+
"enum": [
6209+
"None",
6210+
"Unmanaged"
6211+
],
6212+
"x-ms-enum": {
6213+
"name": "VmDiskTypes",
6214+
"modelAsString": true
6215+
}
6216+
}
6217+
},
6218+
"description": "Specifies the disallowed configuration for a virtual machine image."
6219+
},
61546220
"HyperVGenerationType": {
61556221
"type": "string",
61566222
"description": "Specifies the HyperVGeneration Type",
@@ -8776,6 +8842,10 @@
87768842
"hyperVGeneration": {
87778843
"$ref": "#/definitions/HyperVGenerationType",
87788844
"description": "Gets the HyperVGenerationType of the VirtualMachine created from the image"
8845+
},
8846+
"disallowed": {
8847+
"$ref": "#/definitions/DisallowedConfiguration",
8848+
"description": "Specifies disallowed configuration for the VirtualMachine created from the image"
87798849
}
87808850
},
87818851
"description": "Describes the properties of an Image."
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "ResourceGroup",
5+
"vmScaleSetName": "VmScaleSetName",
6+
"api-version": "2020-06-01",
7+
"instanceId": "InstanceId"
8+
},
9+
"responses": {
10+
"204": {}
11+
}
12+
}

0 commit comments

Comments
 (0)