Terraform module for creation Azure Vm Extension
# Prerequisite resources
data "azurerm_virtual_machine" "example" {
name = "production"
resource_group_name = "networking"
}
locals {
extentions = {
name = "example"
virtual_machine_id = data.azurerm_virtual_machine.example.id
settings = jsonencode({
"script" : (base64encode(templatefile("./script.sh", {
var = "example"
})))
})
}
}
module "virtual_machine_extension" {
source = "data-platform-hq/vm-extension/azurerm"
version = "~> 1.0"
extentions = local.extentions
}
Name | Version |
---|---|
terraform | >=1.0.0 |
azurerm | >= 4.0.1 |
Name | Version |
---|---|
azurerm | >= 4.0.1 |
No modules.
Name | Type |
---|---|
azurerm_virtual_machine_extension.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
extensions | Objects to configure extentions for virtual machine | object({ |
n/a | yes |
Name | Description |
---|---|
id | The ID of the Virtual Machine Extension. |
Apache 2 Licensed. For more information please see LICENSE