[x] Tested my code end-to-end against a live Azure subscription.
[x] Updated the documentation in the docs folder for the affected changes.
[x] Written unit tests against the modified code that I have made.
[x] Updated the release notes with a new entry for this PR.
[x] Checked the coding standards outlined in the contributions guide and ensured my code adheres to them.
If I haven't completed any of the tasks above, I include the reasons why here:
Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:
let disk0 =
disk {
name "disk-0"
sku Vm.DiskType.Premium_LRS
os_type Linux
create_empty 1024<Gb>
}
let disk1 =
disk {
name "disk-1"
sku Vm.DiskType.Standard_LRS
os_type Linux
import
(System.Uri
"https://mystorageaccount.blob.core.windows.net/vhds/MyVirtualHardDisk.vhd")
(Arm.Storage.storageAccounts.resourceId "mystorageaccount")
}
let vmWithAttachedDisks =
vm {
name "vm-with-attached-disks"
vm_size Standard_B1ms
operating_system UbuntuServer_2204LTS
username "azureuser"
attach_data_disk disk0
attach_data_disk disk1
}
let deployment =
arm {
add_resources
[
disk0
disk1
vmWithAttachedDisks
]
}
This PR closes #904
The changes in this PR are as follows:
I have read the contributing guidelines and have completed the following:
If I haven't completed any of the tasks above, I include the reasons why here:
Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure: