Skip to content

Azure Virtual Machine module for Cloud Adoption Framework for Azure landing zones

License

Notifications You must be signed in to change notification settings

insobi/terraform-azurerm-caf-vm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploys an Azure Virtual Machine

Creates an Azure Virtual Machine. This virtual machine can be created from:

  • Azure Gallery
  • Azure Shared Image

Reference the module to a specific version (recommended):

module "vm" {
    source  = "aztfmod/caf-container-registry/azurerm"
    version = "0.x.y"
    
    resource_group_name               = var.rg
    asr_vault_name                    = var.name
    location                          = var.location
    tags                              = var.tags
    opslogs_retention_period          = var.retention
    diagnostics_map                   = var.diagsmap
    la_workspace_id                   = var.laworkspace.id
}

Inputs

Name Type Default Description
name string None Specifies the name of the VM. Changing this forces a new resource to be created.
resource_group_name string None The name of the resource group in which to create the VM. Changing this forces a new resource to be created.
location string None Specifies the supported Azure location where to create the resource. Changing this forces a new resource to be created.
tags map None Map of tags for the deployment.
la_workspace_id string None Log Analytics Repository ID.
diagnostics_map map None Map with the diagnostics repository information.
diagnostics_settings object None Map with the diagnostics settings for VM deployment. See the required structure in the following example or in the diagnostics module documentation.
network_interface_ids list False A list of Network Interface ID's which should be associated with the Virtual Machine
primary_network_interface_id string None The primary Network Interface ID's which should be associated with the Virtual Machine. Note when using multiple NICs you must set it in the nic_object configuration
os string Windows Define if the operating system is 'Linux' or 'Windows'
os_profile object None A windows or Linux profile as per documentation. To find types of images, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage
os_profile_secrets object None Specifies the settings to store OS secret as defined in https://www.terraform.io/docs/providers/azurerm/r/virtual_machine.html
storage_image_reference string None storage_image_reference
storage_os_disk object null storage_os_disk
vm_size string None Azure VM size name, to list all images available in a regionm use : "az vm list-sizes --location "

Output

Name Type Description
network_interface_ids list(string) Set of all NIC identifers
primary_network_interface_id string Primary NIC ID
admin_username string Name of the local admin account created
ssh_private_key_pem string Private Key of the VM
msi_system_principal_id string Principal ID for the created VM
id string Identifier of the VM
name string Name of the VM

About

Azure Virtual Machine module for Cloud Adoption Framework for Azure landing zones

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • HCL 100.0%