Resource configuration functions for a virtual machine deployment
user_config(username, sshkey = NULL, password = NULL)datadisk_config(size, name = "datadisk", create = "empty",
  type = c("StandardSSD_LRS", "Premium_LRS", "Standard_LRS", "UltraSSD_LRS"),
  write_accelerator = FALSE)
image_config(publisher = NULL, offer = NULL, sku = NULL,
  version = "latest", id = NULL)
For user_config, the name for the admin user account.
For user_config, string containing an SSH public key. Can be the key itself, or the name of the public key file.
For user_config, the admin password. Supply either sshkey or password, but not both; also, note that Windows does not support SSH logins.
For datadisk_config, the size of the data disk in GB. St this to NULL for a disk that will be created from an image.
For datadisk_config, the disk name. Duplicate names will automatically be disambiguated prior to VM deployment.
For datadisk_config, the creation method. Can be "empty" (the default) to create a blank disk, or "fromImage" to use an image.
For datadisk_config, the disk type (SKU). Can be "Standard_LRS", "StandardSSD_LRS" (the default), "Premium_LRS" or "UltraSSD_LRS". Of these, "Standard_LRS" uses hard disks and the others use SSDs as the underlying hardware.
For datadisk_config, whether the disk should have write acceleration enabled.
For image_config, the details for a marketplace image.
For image_config, the resource ID for a disk to use as a custom image.