Skip to content

Automation of azure VM initial state via custom script extensions and Terraform

License

Notifications You must be signed in to change notification settings

kolosovpetro/azure-windows-vm-terraform

Repository files navigation

Azure Windows VM Terraform

Automation of azure VM initial state via custom script extensions and Terraform

Trello tasks

List of required software

General steps to deploy

  1. Create custom script extension ps1 file
  2. Create blob storage account and container
  3. Upload ps1 file to blob storage
  4. Create windows virtual machine
  5. Deploy custom script extension to virtual machine providing custom script extension ps1 file url from step 3

Notes

Sources

Requirements

Name Version
azurerm =3.71.0

Providers

Name Version
azurerm 3.71.0

Modules

Name Source Version
custom_script_extension ./modules/custom-script-extension n/a
key_vault ./modules/keyvault n/a
key_vault_secrets ./modules/keyvault-secrets n/a
keyvault_access_policy ./modules/keyvault-access-policy n/a
network ./modules/network n/a
storage ./modules/storage n/a
virtual_machine ./modules/vm n/a

Resources

Name Type
azurerm_resource_group.public resource
azurerm_client_config.current data source

Inputs

Name Description Type Default Required
custom_script_extension_enabled Specifies whether the extension should be enabled or disabled. bool n/a yes
keyvault_enabled Specifies whether the keyvault should be enabled or disabled. bool n/a yes
os_profile_admin_password Specifies the password of the administrator account. string n/a yes
os_profile_admin_username Specifies the name of the administrator account. string n/a yes
prefix Resources name prefix string n/a yes
resource_group_location Resource group location string n/a yes
resource_group_name Resource group name string n/a yes
storage_account_replication Specifies the replication type for this storage account. string n/a yes
storage_account_tier Specifies the tier to use for this storage account. string n/a yes
storage_enabled Specifies whether the storage should be enabled or disabled. bool n/a yes
storage_image_reference_sku Specifies the SKU of the platform image or marketplace image used to create the virtual machine. string n/a yes
vm_size The size of the virtual machine. string n/a yes

Outputs

Name Description
public_ip n/a
username n/a

About

Automation of azure VM initial state via custom script extensions and Terraform

Topics

Resources

License

Stars

Watchers

Forks