libre-devops / terraform-azurerm-vm-os-sku-calculator

A module used to simplify the generation of image Azure marketplace image, passing a simple variable to this module will output the config items. :rocket:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-azurerm-os-calculator

Heavily inspired form Terraform Azure Compute Module

Designed to be used with Libre DevOps VM modules, and will simplify the way of getting SKUs for your VM images without having to look it up.

Simple pass the OS you want to the variable, and it will output the values of the publisher, offer and SKU. All versions are latest

module "os_calculator" {
  source = "github.com/libre-devops/terraform-azurerm-windows-os-sku-calculator"

  vm_os_simple = "WindowsServer2019" // will give you WindowsServer2019 sku properties, to be used in windows-vm module
}

For a full example build, check out the Libre DevOps Website

Requirements

No requirements.

Providers

No providers.

Modules

No modules.

Resources

No resources.

Inputs

Name Description Type Default Required
standard_os n/a map
{
"Windows10": "MicrosoftWindowsDesktop,Windows-10,win10-21h2-ent-ltsc",
"Windows10Avd": "MicrosoftWindowsDesktop,Windows-10,win10-21h2-avd",
"Windows10Gen2": "MicrosoftWindowsDesktop,Windows-10,win10-21h2-ent-ltsc-g2",
"Windows11": "MicrosoftWindowsDesktop,Windows-11,win11-21h2-ent",
"Windows11Avd": "MicrosoftWindowsDesktop,Windows-11,win11-21h2-avd",
"Windows11Gen2": "MicrosoftWindowsDesktop,Windows-11,win11-21h2-ent-g2",
"WindowsServer2008": "MicrosoftWindowsServer,WindowsServer,2008-R2-SP1",
"WindowsServer2012": "MicrosoftWindowsServer,WindowsServer,2012-Datacenter",
"WindowsServer2012Gen2": "MicrosoftWindowsServer,WindowsServer,2012-Datacenter-gensecond",
"WindowsServer2016": "MicrosoftWindowsServer,WindowsServer,2016-Datacenter",
"WindowsServer2016Gen2": "MicrosoftWindowsServer,WindowsServer,2016-Datacenter-gensecond",
"WindowsServer2019": "MicrosoftWindowsServer,WindowsServer,2019-Datacenter",
"WindowsServer2019Gen2": "MicrosoftWindowsServer,WindowsServer,2019-Datacenter-g2",
"WindowsServer2019SqlServer2019Developer": "microsoftsqlserver,sql2019-ws2019,sqldev",
"WindowsServer2019SqlServer2019DeveloperGen2": "microsoftsqlserver,sql2019-ws2019,sqldev-gen2",
"WindowsServer2019SqlServer2019Enterprise": "microsoftsqlserver,sql2019-ws2019,enterprise",
"WindowsServer2019SqlServer2019EnterpriseGen2": "microsoftsqlserver,sql2019-ws2019,enterprise-gen2",
"WindowsServer2019SqlServer2019Standard": "microsoftsqlserver,sql2019-ws2019,standard",
"WindowsServer2019SqlServer2019StandardGen2": "microsoftsqlserver,sql2019-ws2019,standard-gen2",
"WindowsServer2019SqlServer2019Web": "microsoftsqlserver,sql2019-ws2019,web",
"WindowsServer2019SqlServer2019WebGen2": "microsoftsqlserver,sql2019-ws2019,web-gen2",
"WindowsServer2019WithContainers": "MicrosoftWindowsServer,WindowsServer,2019-Datacenter-with-Containers",
"WindowsServer2019WithContainersGen2": "MicrosoftWindowsServer,WindowsServer,2019-Datacenter-with-Containers-g2",
"WindowsServer2022": "MicrosoftWindowsServer,WindowsServer,2022-Datacenter",
"WindowsServer2022AzureEdition": "MicrosoftWindowsServer,WindowsServer,2022-datacenter-azure-edition",
"WindowsServer2022AzureEditionGen2": "MicrosoftWindowsServer,WindowsServer,2022-datacenter-azure-edition",
"WindowsServer2022Gen2": "MicrosoftWindowsServer,WindowsServer,2022-Datacenter-g2",
"WindowsServer2022SqlServer2019Enterprise": "microsoftsqlserver,sql2019-ws2022,enterprise",
"WindowsServer2022SqlServer2019EnterpriseGen2": "microsoftsqlserver,sql2019-ws2022,enterprise-gen2"
}
no
vm_os_simple If using this module, pass one of the keys as the variable to get that image properties string "" no

Outputs

Name Description
calculated_value_os_offer Gets the offer value
calculated_value_os_publisher Gets the offer value
calculated_value_os_sku Gets the OS value

About

A module used to simplify the generation of image Azure marketplace image, passing a simple variable to this module will output the config items. :rocket:

License:MIT License


Languages

Language:HCL 46.3%Language:PowerShell 44.0%Language:Shell 9.8%