A module used for deploying virtual machines in Azure.
Terraform | >= 1.0.6 |
azurerm | = 2.88.1 |
Check out the examples folder for more.
module "virtual_machine" {
source = "crayon/vm/azurerm"
version = "1.0.0"
name = "vm-example"
resource_group = azurerm_resource_group.example.name
network_interface_ids = [azurerm_network_interface.example.id]
admin_user = {
username = "crayonadm"
ssh_key = file("~/.ssh/id_rsa.pub")
}
data_disks = [{
name = "disk01"
storage_account_type = "Standard_LRS"
create_option = "Empty"
caching = "ReadWrite"
lun = 10
disk_size_gb = 50
},
{
name = "disk02"
storage_account_type = "Standard_LRS"
create_option = "Empty"
caching = "ReadWrite"
lun = 11
disk_size_gb = 50
}]
}