Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "DiskResourceProviderClient",
"description": "The Disk Resource Provider Client.",
"version": "2020-05-01"
"version": "2020-06-30"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -1634,6 +1634,10 @@
"diskAccessId": {
"type": "string",
"description": "ARM id of the DiskAccess resource for using private endpoints on disks."
},
"tier": {
"type": "string",
"description": "Customer visible tier on the disk which indicates the tier to be set on the blob."
}
},
"required": [
Expand Down Expand Up @@ -1735,7 +1739,7 @@
"EncryptionSetProperties": {
"properties": {
"encryptionType": {
"$ref": "#/definitions/EncryptionType"
"$ref": "#/definitions/DiskEncryptionSetType"
},
"activeKey": {
"$ref": "#/definitions/KeyVaultAndKeyReference",
Expand Down Expand Up @@ -1862,6 +1866,28 @@
]
}
},
"DiskEncryptionSetType": {
"type": "string",
"description": "The type of key used to encrypt the data of the disk.",
"enum": [
"EncryptionAtRestWithCustomerKey",
"EncryptionAtRestWithPlatformAndCustomerKeys"
],
"x-ms-enum": {
"name": "DiskEncryptionSetType",
"modelAsString": true,
"values": [
{
"value": "EncryptionAtRestWithCustomerKey",
"description": "Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer."
},
{
"value": "EncryptionAtRestWithPlatformAndCustomerKeys",
"description": "Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed."
}
]
}
},
"Encryption": {
"properties": {
"diskEncryptionSetId": {
Expand Down Expand Up @@ -1959,6 +1985,10 @@
"diskAccessId": {
"type": "string",
"description": "ARM id of the DiskAccess resource for using private endpoints on disks."
},
"tier": {
"type": "string",
"description": "Customer visible tier on the disk which indicates the tier to be set on the blob."
}
},
"description": "Disk resource update properties."
Expand Down Expand Up @@ -2003,7 +2033,7 @@
"DiskEncryptionSetUpdateProperties": {
"properties": {
"encryptionType": {
"$ref": "#/definitions/EncryptionType"
"$ref": "#/definitions/DiskEncryptionSetType"
},
"activeKey": {
"$ref": "#/definitions/KeyVaultAndKeyReference"
Expand Down Expand Up @@ -2089,6 +2119,11 @@
"type": "integer",
"format": "int64",
"description": "If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer)."
},
"logicalSectorSize": {
"type": "integer",
"format": "int32",
"description": "Support customers creating ultra disks with logicalSectorSize 512E. Support values are 512 and 4096 (default value)."
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskAccessName": "myDiskAccess",
"diskAccess": {
"location": "West US"
}
},
"responses": {
"202": {
"body": {
"name": "myDiskAccess",
"location": "West US",
"type": "Microsoft.Compute/diskAccesses"
}
},
"200": {
"body": {
"name": "myDiskAccess",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
"type": "Microsoft.Compute/diskAccesses",
"location": "West US",
"properties": {
"provisioningState": "Succeeded",
"timeCreated": "2020-05-01T04:41:35.079872+00:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskEncryptionSetName": "myDiskEncryptionSet",
"diskEncryptionSet": {
"location": "West US",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"activeKey": {
"sourceVault": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
},
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
},
"encryptionType": "EncryptionAtRestWithCustomerKey"
}
}
},
"responses": {
"202": {
"body": {
"name": "myDiskEncryptionSet",
"location": "West US",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"activeKey": {
"sourceVault": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
},
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
},
"encryptionType": "EncryptionAtRestWithCustomerKey",
"previousKeys": []
}
}
},
"200": {
"body": {
"name": "myDiskEncryptionSet",
"location": "West US",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"activeKey": {
"sourceVault": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
},
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
},
"encryptionType": "EncryptionAtRestWithCustomerKey",
"previousKeys": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"creationData": {
"createOption": "Copy",
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
}
}
}
},
"responses": {
"202": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Copy",
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
}
}
}
},
"200": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Copy",
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"creationData": {
"createOption": "Import",
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
},
"responses": {
"202": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Import",
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
},
"200": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Import",
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"creationData": {
"createOption": "Import",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
},
"responses": {
"202": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Import",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
},
"200": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"creationData": {
"createOption": "Import",
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-06-30",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "FromImage",
"imageReference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
}
}
}
}
},
"responses": {
"202": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"osType": "Windows",
"creationData": {
"createOption": "FromImage",
"imageReference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
}
}
}
}
},
"200": {
"body": {
"name": "myDisk",
"location": "West US",
"properties": {
"provisioningState": "Updating",
"osType": "Windows",
"creationData": {
"createOption": "FromImage",
"imageReference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
}
}
}
}
}
}
}
Loading