resource "vsphere_file" "${myResourceName}" {
         name = "my-${myResourceName}"
         description = "my-description-${myResourceName}"
      
         datacenter = "my_datacenter"
         datastore = "local"
         source_file = "/home/ubuntu/my_disks/custom_ubuntu.vmdk"
         destination_file = "/my_path/disks/custom_ubuntu.vmdk"
      }

      Terraform language logo
      vsphere_file

      Terraform snippets

      This code defines a resource named "vsphere_file" that stores a virtual disk in the my_datacenter in the my_datastore on the local machine.

      Shortcut: tf_vsphere_file

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.