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
      }
      Terraform language logo

      azurerm_virtual_machine_extension

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.