Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iops, throughput and instance view #7499

Merged
merged 3 commits into from
Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2528,6 +2528,11 @@
"$ref": "#/definitions/VirtualMachine"
}
}
},
"x-ms-examples": {
"Get a Virtual Machine.": {
"$ref": "./examples/GetVirtualMachine.json"
}
}
}
},
Expand Down Expand Up @@ -2567,7 +2572,12 @@
"$ref": "#/definitions/VirtualMachineInstanceView"
}
}
}
},
"x-ms-examples": {
"Get Virtual Machine Instance View.": {
"$ref": "./examples/GetVirtualMachineInstanceView.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks": {
Expand Down Expand Up @@ -2734,6 +2744,13 @@
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"name": "statusOnly",
"in": "query",
"required": false,
"type": "string",
"description": "statusOnly=true enables fetching run time status of all Virtual Machines in the subscription."
}
],
"responses": {
Expand Down Expand Up @@ -7092,7 +7109,19 @@
"toBeDetached": {
"type": "boolean",
"description": "Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset"
}
},
"diskIOPSReadWrite": {
"type": "integer",
"readOnly": true,
"format": "int64",
"description": "Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set."
},
"diskMBpsReadWrite": {
"type": "integer",
"readOnly": true,
"format": "int64",
"description": "Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set."
}
},
"required": [
"lun",
Expand Down Expand Up @@ -8383,6 +8412,16 @@
"managedDisk": {
"description": "The managed disk parameters.",
"$ref": "#/definitions/VirtualMachineScaleSetManagedDiskParameters"
},
"diskIOPSReadWrite": {
"type": "integer",
"format": "int64",
"description": "Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB."
},
"diskMBpsReadWrite": {
"type": "integer",
"format": "int64",
"description": "Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB."
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmName": "myVM",
"api-version": "2019-07-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",
"availabilitySet" : {
"id" : "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/my-AvailabilitySet"
},
"proximityPlacementGroup" : {
"id" : "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/my-ppg01"
},
"hardwareProfile" : {
"vmSize" : "Standard_DS3_v2"
},
"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" : [
{
"lun": 0,
"name": "myDataDisk0",
"createOption": "Empty",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk0"
},
"diskSizeGB": 30
},
{
"lun": 1,
"name": "myDataDisk1",
"createOption": "Attach",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk1"
},
"diskSizeGB": 100
}
]
},
"osProfile" : {
"computerName" : "myVM",
"adminUsername" : "admin",
"windowsConfiguration" : {
"provisionVMAgent" : true,
"enableAutomaticUpdates" : false
},
"secrets" : [
]
},
"networkProfile" : {
"networkInterfaces" : [{
"id" : "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{myNIC}"
}
]
},
"diagnosticsProfile" : {
"bootDiagnostics" : {
"enabled" : true,
"storageUri" : "http://{myStorageAccount}.blob.core.windows.net"
}
},
"provisioningState" : "Succeeded"
},
"resources" : [{
"name" : "CustomScriptExtension-DSC",
"id" : "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/extensions/CustomScriptExtension-DSC",
"type" : "Microsoft.Compute/virtualMachines/extensions",
"location" : "west us",
"tags" : {
"displayName" : "CustomScriptExtension-DSC"
},
"properties" : {
"autoUpgradeMinorVersion" : true,
"provisioningState" : "Succeeded",
"publisher" : "Microsoft.Compute",
"type" : "CustomScriptExtension",
"typeHandlerVersion" : "1.9",
"settings" : {
}
}
}]
}
}
}
}



Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"parameters" : {
"subscriptionId" : "{subscription-id}",
"resourceGroupName" : "myResourceGroup",
"api-version" : "2019-07-01",
"vmName" : "myVM"
},
"responses" : {
"200" : {
"body" : {
"platformUpdateDomain" : 1,
"platformFaultDomain" : 1,
"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" : "2019-10-14T23:11:22+00:00"
}
],
"extensionHandlers" : [{
"type" : "Microsoft.Azure.Security.IaaSAntimalware",
"typeHandlerVersion" : "1.5.5.9",
"status" : {
"code" : "ProvisioningState/succeeded",
"level" : "Info",
"displayStatus" : "Ready"
}
}
]
},
"disks" : [
{
"name" : "myOsDisk",
"statuses" : [{
"code" : "ProvisioningState/succeeded",
"level" : "Info",
"displayStatus" : "Provisioning succeeded",
"time" : "2019-10-14T21:29:47.477089+00:00"
}
]
},
{
"name" : "myDataDisk0",
"statuses" : [{
"code" : "ProvisioningState/succeeded",
"level" : "Info",
"displayStatus" : "Provisioning succeeded",
"time" : "2019-10-14T21:29:47.461517+00:00"
}
]
}
],
"bootDiagnostics" : {
"consoleScreenshotBlobUri" : "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.screenshot.bmp",
"serialConsoleLogBlobUri" : "https://{myStorageAccount}.blob.core.windows.net/bootdiagnostics-myOsDisk/myOsDisk.serialconsole.log"
},
"extensions" : [{
"name" : "IaaSAntiMalware-ext0",
"type" : "Microsoft.Azure.Security.IaaSAntimalware",
"typeHandlerVersion" : "1.5.5.9",
"statuses" : [{
"code" : "ProvisioningState/succeeded",
"level" : "Info",
"displayStatus" : "Provisioning succeeded",
"message" : "Microsoft Antimalware enabled"
}
]
}
],
"hyperVGeneration" : "V1",
"statuses" : [{
"code" : "ProvisioningState/succeeded",
"level" : "Info",
"displayStatus" : "Provisioning succeeded",
"time" : "2019-10-14T21:30:12.8051917+00:00"
}, {
"code" : "PowerState/running",
"level" : "Info",
"displayStatus" : "VM running"
}
]
}
}
}
}