vsphere_virtual_machine

    0

    0

    lucycodes42

    Terraform snippets

    The code creates a virtual machine named "my-description-${myResourceName}" with vcpu=2 and memory=4096.

    Shortcut: tf_vsphere_virtual_machine

    resource "vsphere_virtual_machine" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       vcpu   = 2
       memory = 4096
       network_interface {
           label = "VM Network"
       }
       disk {
           template = "centos-7"
       }
    }
    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.