azurerm_virtual_machine_extension

    0

    0

    lucycodes42

    Terraform snippets

    The code defines a resource named "my-${MyResource}-name" in the location "West US" for the resource group "test.name" with the virtual machine "test.name" created by publisher "Microsoft.OSTCExtensions". The type of the resource is "CustomScriptForLinux". The handler version is "1.2".

    Shortcut: tf_azurerm_virtual_machine_extension

    resource "azurerm_virtual_machine_extension" "${MyResource}" {
       name = "my-${MyResource}-name"
       location = "West US"
       resource_group_name = "\${azurerm_resource_group.test.name}"
       virtual_machine_name = "\${azurerm_virtual_machine.test.name}"
       publisher = "Microsoft.OSTCExtensions"
       type = "CustomScriptForLinux"
       type_handler_version = "1.2"
    
       settings = <<SETTINGS
    {
        "commandToExecute": "hostname"
    }
    SETTINGS
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.