--- layout: page title: proxmox_virtual_environment_file permalink: /resources/virtual_environment_file nav_order: 6 parent: Resources subcategory: Virtual Environment --- # Resource: proxmox_virtual_environment_file Manages a file. ## Example Usage ### Backups (`dump`) -> **Note:** The resource with this content type uses SSH access to the node. You might need to configure the [`ssh` option in the `provider` section](../index.md#node-ip-address-used-for-ssh-connection). ```terraform resource "proxmox_virtual_environment_file" "backup" { content_type = "dump" datastore_id = "local" node_name = "pve" source_file { path = "vzdump-lxc-100-2023_11_08-23_10_05.tar" } } ``` ### Images ```terraform resource "proxmox_virtual_environment_file" "ubuntu_container_template" { content_type = "iso" datastore_id = "local" node_name = "pve" source_file { path = "https://cloud-images.ubuntu.com/jammy/20230929/jammy-server-cloudimg-amd64-disk-kvm.img" } } ``` ### Snippets -> **Note:** Snippets are not enabled by default in new Proxmox installations. You need to enable them in the 'Datacenter>Storage' section of the proxmox interface before first using this resource. -> **Note:** The resource with this content type uses SSH access to the node. You might need to configure the [`ssh` option in the `provider` section](../index.md#node-ip-address-used-for-ssh-connection). ```terraform resource "proxmox_virtual_environment_file" "cloud_config" { content_type = "snippets" datastore_id = "local" node_name = "pve" source_raw { data = <