ManagedDisk
A resource of the Azure provider, version 0.3.0, in its Storage group. Import it with:
import ManagedDisk from "azure/storage"Example
resource ManagedDisk example {
name = "example-value"
resourceGroup = "example-value"
location = "example-value"
size = 3.14
sku = "StandardSSD_LRS"
tier = "example-value"
diskIops = 3.14
diskMbps = 3.14
osType = "Linux"
sourceResourceId = "example-value"
sourceUri = "example-value"
storageAccountId = "example-value"
zone = "example-value"
burstingEnabled = false
networkAccessPolicy = "AllowAll"
diskAccessId = "example-value"
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the managed disk |
resourceGroup | string | — | No | The Azure resource group name |
location | string | — | No | The Azure region/location (e.g., eastus, westeurope) |
size | number | — | No | The size of the disk in GB |
sku | string | "StandardSSD_LRS" | No | The disk SKU (storage type) Allowed: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS" |
tier | string | — | No | The disk tier for Premium and Ultra disks (e.g., P30, P40, P50) |
diskIops | number | — | No | The IOPS read/write budget for Ultra disks (100 - 160,000) |
diskMbps | number | — | No | The throughput in MB/s for Ultra disks (1 - 2,000) |
osType | string | — | No | The operating system type if this is an OS disk Allowed: "Linux", "Windows" |
sourceResourceId | string | — | No | The source resource ID to create the disk from (snapshot, image, or disk) |
sourceUri | string | — | No | The source URI for importing a VHD from a storage account |
storageAccountId | string | — | No | The storage account ID where sourceUri is located |
zone | string | — | No | The availability zone for the disk (1, 2, or 3) |
burstingEnabled | boolean | false | No | Enable bursting for Premium SSD disks > 512 GB |
networkAccessPolicy | string | "AllowAll" | No | Network access policy for the disk Allowed: "AllowAll", "AllowPrivate", "DenyAll" |
diskAccessId | string | — | No | The disk access ID for private endpoint connections |
tags | object | — | No | Tags to apply to the disk |
Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The Azure resource ID of the disk |
provisioningState | string | No | The provisioning state of the disk |
diskState | string | No | The disk state (Unattached, Attached, Reserved, etc.) |
uniqueId | string | No | The unique identifier for the disk |
timeCreated | string | No | The time the disk was created |
managedBy | string | No | The ID of the VM this disk is attached to |