Azure module list Claranet images and their versions by OS name.
- claranet_windows_datacenter: 2019, 2022
- claranet_ubuntu: 20.04, 22.04
- claranet_debian: 11, 12
Module version | Terraform version | OpenTofu version | AzureRM version |
---|---|---|---|
>= 8.x.x | Unverified | 1.8.x | >= 4.0 |
>= 7.x.x | 1.3.x | >= 3.0 | |
>= 6.x.x | 1.x | >= 3.0 | |
>= 5.x.x | 0.15.x | >= 2.0 | |
>= 4.x.x | 0.13.x / 0.14.x | >= 2.0 | |
>= 3.x.x | 0.12.x | >= 2.0 | |
>= 2.x.x | 0.12.x | < 2.0 | |
< 2.x.x | 0.11.x | < 2.0 |
If you want to contribute to this repository, feel free to use our pre-commit git hook configuration which will help you automatically update and format some files for you by enforcing our Terraform code module best-practices.
More details are available in the CONTRIBUTING.md file.
This module is optimized to work with the Claranet terraform-wrapper tool
which set some terraform variables in the environment needed by this module.
More details about variables set by the terraform-wrapper
available in the documentation.
module "claranet_gallery_images" {
source = "claranet/claranet-gallery-images/azapi"
version = "x.x.x"
azure_subscription_id = var.azure_subscription_id
location_cli = module.azure_region.location_cli
}
module "vm" {
source = "claranet/linux-vm/azurerm"
version = "x.x.x"
location = module.azure_region.location
location_short = module.azure_region.location_short
client_name = var.client_name
environment = var.environment
stack = var.stack
resource_group_name = module.rg.name
subnet = module.subnet
vm_size = "Standard_B2s"
admin_username = var.vm_administrator_login
ssh_public_key = var.ssh_public_key
diagnostics_storage_account_name = module.run.logs_storage_account_name
azure_monitor_data_collection_rule = {
id = module.run.data_collection_rule_id
}
# Set to null to deactivate backup
backup_policy = {
id = module.run.vm_backup_policy_id
}
patch_mode = "AutomaticByPlatform"
maintenance_configurations_ids = [module.run.maintenance_configurations["Donald"].id, module.run.maintenance_configurations["Hammer"].id]
availability_set = azurerm_availability_set.main
# or use Availability Zone
# zone_id = 1
vm_image_id = module.claranet_gallery_images.claranet_ubuntu["24.04"].latest
}
module "vm_gen1" {
source = "claranet/linux-vm/azurerm"
version = "x.x.x"
location = module.azure_region.location
location_short = module.azure_region.location_short
client_name = var.client_name
environment = var.environment
stack = var.stack
resource_group_name = module.rg.name
subnet = module.subnet
vm_size = "Standard_B2s"
admin_username = var.vm_administrator_login
ssh_public_key = var.ssh_public_key
diagnostics_storage_account_name = module.run.logs_storage_account_name
azure_monitor_data_collection_rule = {
id = module.run.data_collection_rule_id
}
# Set to null to deactivate backup
backup_policy = {
id = module.run.vm_backup_policy_id
}
patch_mode = "AutomaticByPlatform"
maintenance_configurations_ids = [module.run.maintenance_configurations["Donald"].id, module.run.maintenance_configurations["Hammer"].id]
zone_id = 1
vm_image_id = module.claranet_gallery_images.claranet_ubuntu["24.04"].gen1.latest
}
Name | Version |
---|---|
azapi | ~> 2.0 |
No modules.
Name | Type |
---|---|
azapi_resource_list.image | data source |
azapi_resource_list.version | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
azure_subscription_id | Azure subscription ID. | string |
n/a | yes |
gallery_name | Name of the gallery to check. Default to Claranet's community gallery. | string |
"claranet-890239a9-edcc-42b3-82c2-de32ab229874" |
no |
location_cli | Location as Azure CLI format. | string |
n/a | yes |
Name | Description |
---|---|
claranet_debian | Claranet's Debian golden images versions. |
claranet_ubuntu | Claranet's Ubuntu golden images versions. |
claranet_windows_datacenter | Claranet's Windows golden images versions. |
images_names_list | List of images definitions names. |
images_versions | List of images versions for each image definition. |
Microsoft Azure documentation: xxxx