GithubHelp home page GithubHelp logo

doytsujin / terraform-azurerm-windows-vm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rahmancloud/terraform-azurerm-windows-vm

0.0 1.0 0.0 36 KB

Terraform module to deploy a virtual network and a Windows virtual machine into existing resource group.

License: MIT License

HCL 100.00%

terraform-azurerm-windows-vm's Introduction

Windows Azure Module

A Terraform module to create a new virtual network and a publicly accessible Windows virtual machine into existing resource group in Azure.

  • By default create a single Windows 10, version 1903 IT Pro
  • Generate password and store secret in key vault
  • Allow only one source IP address to access remotely
  • Auto-shutdown virtual machine by default

The simplest example how to use this module

module "windows" {
  source              = "yusmadi/windows-vm/azurerm"
  prefix              = "example"
  domain_name_label   = "mywindows"
  resource_group_name = "existing-rg"
  vnet_name           = "existing-vnet"
  subnet_name         = "default"
}

Full example how to use this module

module "windows" {
  source               = "ayusmadi/windows-vm/azurerm"
  prefix               = "mywindows"
  domain_name_label    = "mywindows"
  resource_group_name  = "existing-rg"
  allowed_ip_addresses = ["13.15.17.19/32"]
  vm_size              = "Standard_DS1_v2"
  publisher            = "MicrosoftWindowsDesktop"
  offer                = "Windows-10"
  sku                  = "19h1-pro"
  image_version        = "latest"
  delete_disks_on_termination = true
}

Providers

Name Version
azurerm ~> 1.43.0
random n/a

Inputs

Name Description Type Default Required
allowed_ip_addresses Public IP address to allow remote access list(string)
[
"1.2.3.4/32"
]
no
autoShutdownStatus The status of the schedule (i.e. Enabled, Disabled). - Enabled or Disabled string "Enabled" no
autoShutdownTime The time of day the schedule will occur. string "00:00" no
autoShutdownTimeZone The time zone ID (e.g. Pacific Standard time). string "UTC" no
delete_disks_on_termination Delete all disks when virtual machine is deleted bool false no
domain_name_label Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. any n/a yes
image_version Specifies the version of the image used to create the virtual machine. Changing this forces a new resource to be created. string "latest" no
offer Specifies the offer of the image used to create the virtual machine. Changing this forces a new resource to be created. string "Windows-10" no
prefix Prefix to be used by resources and attributes. Windows computer name cannot be more than 15 characters long, be entirely numeric string "myserver" no
publisher Specifies the publisher of the image used to create the virtual machine. Changing this forces a new resource to be created. string "MicrosoftWindowsDesktop" no
resource_group_name Specifies the name of the existing resource group. any n/a yes
sku Specifies the SKU of the image used to create the virtual machine. Changing this forces a new resource to be created. string "19h1-pro" no
subnet_name Specifies the name of the existing Subnet. any n/a yes
vm_size Specifies the size of the Virtual Machine. string "Standard_DS1_v2" no
vnet_name Specifies the name of the existing Virtual Network. any n/a yes

Outputs

Name Description
fqdn Fully qualified domain name of the A DNS record associated with the public IP. domain_name_label must be specified to get the fqdn. This is the concatenation of the domain_name_label and the regionalized DNS zone
password Username to access the Windows virtual machine
username Username to access the Windows virtual machine
vm_id The ID of the Virtual Machine.

Reference

terraform-azurerm-windows-vm's People

Contributors

rahmancloud avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.