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

supportsHibernation property added #2

Merged
merged 2 commits into from
Feb 19, 2021
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 @@ -171,6 +171,9 @@
},
"Create or update a bursting enabled managed disk.": {
"$ref": "./examples/CreateOrUpdateABurstingEnabledManagedDisk.json"
},
"Update a managed disk to add supportsHibernation.": {
"$ref": "./examples/UpdateAManagedDiskToAddSupportsHibernation.json"
}
}
},
Expand Down Expand Up @@ -1986,6 +1989,10 @@
"burstingEnabled": {
"type": "boolean",
"description": "Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks."
},
"supportsHibernation": {
"type": "boolean",
"description": "Indicates the OS on a disk supports hibernation."
}
},
"required": [
Expand Down Expand Up @@ -2076,6 +2083,10 @@
"diskAccessId": {
"type": "string",
"description": "ARM id of the DiskAccess resource for using private endpoints on disks."
},
"supportsHibernation": {
"type": "boolean",
"description": "Indicates the OS on a snapshot supports hibernation."
}
},
"required": [
Expand Down Expand Up @@ -2369,6 +2380,10 @@
"purchasePlan": {
"$ref": "#/definitions/PurchasePlan",
"description": "Purchase plan information to be added on the OS disk"
},
"supportsHibernation": {
"type": "boolean",
"description": "Indicates the OS on a disk supports hibernation."
}
},
"description": "Disk resource update properties."
Expand Down Expand Up @@ -2406,6 +2421,10 @@
"diskAccessId": {
"type": "string",
"description": "ARM id of the DiskAccess resource for using private endpoints on disks."
},
"supportsHibernation": {
"type": "boolean",
"description": "Indicates the OS on a snapshot supports hibernation."
}
},
"description": "Snapshot resource update properties."
Expand Down Expand Up @@ -3103,6 +3122,10 @@
"$ref": "#/definitions/Encryption",
"description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.",
"readOnly": true
},
"supportsHibernation": {
"type": "boolean",
"description": "Indicates the OS on a disk supports hibernation."
}
},
"description": "Properties of an incremental disk restore point"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"publisher": "test_test_pmc2pc1",
"product": "marketplace_vm_test"
},
"supportsHibernation": true,
"creationData": {
"createOption": "FromImage",
"imageReference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"publisher": "test_test_pmc2pc1",
"product": "marketplace_vm_test"
},
"supportsHibernation": true,
"creationData": {
"createOption": "Copy",
"sourceResourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-12-01",
"diskName": "myDisk",
"disk": {
"properties": {
"supportsHibernation": true
}
}
},
"responses": {
"202": {
"body": {
"name": "myDisk",
"location": "westus",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"hyperVGeneration": "V1",
"supportsHibernation": true,
"creationData": {
"createOption": "Import",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
},
"diskSizeGB": 127,
"provisioningState": "Updating"
}
}
},
"200": {
"body": {
"name": "myDisk",
"location": "westus",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"hyperVGeneration": "V1",
"supportsHibernation": true,
"creationData": {
"createOption": "Import",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
},
"diskSizeGB": 127,
"provisioningState": "Succeeded"
}
}
}
}
}