Skip to content

Commit

Permalink
Adding DisallowedConfiguration property to VirtualMachineImagePropert…
Browse files Browse the repository at this point in the history
…ies (#9065)
  • Loading branch information
sirajudeens authored and hyonholee committed May 11, 2020
1 parent da8a011 commit b31fd02
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3439,13 +3439,13 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/SimulateEviction": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction": {
"post": {
"tags": [
"VirtualMachines"
],
"operationId": "VirtualMachines_SimulateEviction",
"description": "The operation to simulate the eviction of spot virtual machine",
"description": "The operation to simulate the eviction of spot virtual machine. The eviction will occur within 30 minutes of calling the API",
"parameters": [
{
"name": "resourceGroupName",
Expand Down Expand Up @@ -5984,6 +5984,55 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction": {
"post": {
"tags": [
"VirtualMachineScaleSetVMs"
],
"operationId": "VirtualMachineScaleSetVMs_SimulateEviction",
"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",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "vmScaleSetName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the VM scale set."
},
{
"name": "instanceId",
"in": "path",
"required": true,
"type": "string",
"description": "The instance ID of the virtual machine."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"x-ms-long-running-operation": false,
"x-ms-examples": {
"Simulate Eviction a virtual machine.": {
"$ref": "./examples/SimulateEvictionOfVmssVM.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval": {
"post": {
"tags": [
Expand Down Expand Up @@ -6151,6 +6200,23 @@
},
"description": "Describes the properties of a Compute Operation Value Display."
},
"DisallowedConfiguration": {
"properties": {
"vmDiskType": {
"type": "string",
"description": "VM disk types which are disallowed.",
"enum": [
"None",
"Unmanaged"
],
"x-ms-enum": {
"name": "VmDiskTypes",
"modelAsString": true
}
}
},
"description": "Specifies the disallowed configuration for a virtual machine image."
},
"HyperVGenerationType": {
"type": "string",
"description": "Specifies the HyperVGeneration Type",
Expand Down Expand Up @@ -8776,6 +8842,10 @@
"hyperVGeneration": {
"$ref": "#/definitions/HyperVGenerationType",
"description": "Gets the HyperVGenerationType of the VirtualMachine created from the image"
},
"disallowed": {
"$ref": "#/definitions/DisallowedConfiguration",
"description": "Specifies disallowed configuration for the VirtualMachine created from the image"
}
},
"description": "Describes the properties of an Image."
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "ResourceGroup",
"vmScaleSetName": "VmScaleSetName",
"api-version": "2020-06-01",
"instanceId": "InstanceId"
},
"responses": {
"204": {}
}
}

0 comments on commit b31fd02

Please sign in to comment.