You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for DiskIOPSReadOnly and DiskMBpsReadOnly
These two properties are the read-only version of DiskIOPSReadWrite and DiskMBpsReadWrite, which specify the read-only IOps and MBps to the disk
These two properties are only available for Ultra disk, and only available if it is a shared disk.
returnfmt.Errorf("[ERROR] disk_iops_read_write, disk_mbps_read_write, disk_iops_read_only, disk_mbps_read_only and logical_sector_size are only available for UltraSSD disks")
274
305
}
275
306
276
307
ifcreateOption==compute.DiskCreateOptionImport {
@@ -398,6 +429,7 @@ func resourceManagedDiskUpdate(d *pluginsdk.ResourceData, meta interface{}) erro
returnfmt.Errorf("[ERROR] disk_iops_read_write, disk_mbps_read_write, disk_iops_read_only and disk_mbps_read_only are only available for UltraSSD disks")
473
522
}
474
523
475
524
ifd.HasChange("os_type") {
@@ -687,6 +736,8 @@ func resourceManagedDiskRead(d *pluginsdk.ResourceData, meta interface{}) error
Copy file name to clipboardexpand all lines: website/docs/r/managed_disk.html.markdown
+4
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,10 @@ The following arguments are supported:
101
101
102
102
*`disk_mbps_read_write` - (Optional) The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
103
103
104
+
*`disk_iops_read_only` - (Optional) The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
105
+
106
+
*`disk_mbps_read_only` - (Optional) The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
107
+
104
108
*`disk_size_gb` - (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If `create_option` is `Copy` or `FromImage`, then the value must be equal to or greater than the source's size. The size can only be increased.
105
109
106
110
~> **NOTE:** Changing this value is disruptive if the disk is attached to a Virtual Machine. The VM will be shut down and de-allocated as required by Azure to action the change. Terraform will attempt to start the machine again after the update if it was in a `running` state when the apply was started.
0 commit comments