diff --git a/CHANGELOG.md b/CHANGELOG.md index 22aa29b0b..1e3d1fdc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,29 +1,35 @@ # -## 2.9.2 (nNot Released) +## 2.9.2 (September 16, 2024) BUG FIX: -* `resource/vsphere_compute_cluster_vm_group`: Updates resource to allow for additional virtual + +- `resource/vsphere_compute_cluster_vm_group`: Updates resource to allow for additional virtual machines to be adding or removed from a VM Group. Must be ran in conjunction with and import. ([#2260]https://github.com/hashicorp/terraform-provider-vsphere/pull/2260) +FEATURES: + +- `resource\vsphere_tag`: Adds a format validation for `catagory_id`. + ([#2261]https://github.com/hashicorp/terraform-provider-vsphere/pull/2261) + ## 2.9.1 (September 9, 2024) BUG FIX: -* `resource/vsphere_resource_pool`: Removes the default setting for `scale_descendants_shares` to +- `resource/vsphere_resource_pool`: Removes the default setting for `scale_descendants_shares` to allows for inheritance from the parent resource pool. ([#2255]https://github.com/hashicorp/terraform-provider-vsphere/pull/2255) DOCUMENTATION: -* `resource/vsphere_virtual_machine`: Updates to clarify assignment of `network_interface` +- `resource/vsphere_virtual_machine`: Updates to clarify assignment of `network_interface` resources. ([#2256]https://github.com/hashicorp/terraform-provider-vsphere/pull/2256) -* `resource/vsphere_host`: Updates to clarify import of `vsphere_hosts`. +- `resource/vsphere_host`: Updates to clarify import of `vsphere_hosts`. ([#2257]https://github.com/hashicorp/terraform-provider-vsphere/pull/2257) -* `resource/vsphere_compute_cluster`: Updates to clarify import of `vsphere_compute_cluster` +- `resource/vsphere_compute_cluster`: Updates to clarify import of `vsphere_compute_cluster` resources. ([#2257]https://github.com/hashicorp/terraform-provider-vsphere/pull/2257) -* `resource/vsphere_virtual_machine`: Updates to clarify the `vm` path in the import of +- `resource/vsphere_virtual_machine`: Updates to clarify the `vm` path in the import of `virtual_machine` resources. ([#2257]https://github.com/hashicorp/terraform-provider-vsphere/pull/2257) @@ -31,83 +37,83 @@ DOCUMENTATION: FEATURES: -* `resource/host` - Added support for ntpd for services on `r/vsphere_host`. This allows for ntpd +- `resource/host` - Added support for ntpd for services on `r/vsphere_host`. This allows for ntpd service settings and policy to be added to a host resource and future expansion of additional services. ([#2232](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2232)) CHORE: -* `provider`: Updated `vmware/govmomi` to v0.42.0. +- `provider`: Updated `vmware/govmomi` to v0.42.0. ([#2248](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2248)) -* `provider`: Updated `golang/go` to v1.22.6 +- `provider`: Updated `golang/go` to v1.22.6 ([#2247](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2247)) ## 2.8.3 (August 13, 2024) BUG FIX: -* `resource/virtual_machine`: Fixed virtual machine reconfiguration with multiple PCI passthrough +- `resource/virtual_machine`: Fixed virtual machine reconfiguration with multiple PCI passthrough devices.([#2236](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2236)) -* `resource/virtual_machine`: Fixed inability to apply a default gateway on more than one network +- `resource/virtual_machine`: Fixed inability to apply a default gateway on more than one network adapter. ([#2235](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2235)) FEATURES: -* `r/virtual_disk`: Allows the increasing the size of virtual disks. Reductions in size are not +- `r/virtual_disk`: Allows the increasing the size of virtual disks. Reductions in size are not supported by vSphere and are allowed. ([#2244](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2244)) CHORES: -* `provider`: Updated `vmware/govmomi` to v0.39.0. +- `provider`: Updated `vmware/govmomi` to v0.39.0. ([#2240](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2240)) ## 2.8.2 (June 28, 2024) BUG FIX: -* `resource/file`: Updated to ensure that incoming file names with special characters (`+`, +- `resource/file`: Updated to ensure that incoming file names with special characters (`+`, specifically) retain their original name when uploaded. ([#2217](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2217)) -* `resource/virtual_machine`: Updated `searchPath` to use `path` instead of `filepath` since this is +- `resource/virtual_machine`: Updated `searchPath` to use `path` instead of `filepath` since this is a vSphere inventory path (_e.g._, `\Datacenter\vm\`), not a directory path. ([#2216](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2216)) -* `resource/virtual_machine`: Removed the default values for `ept_rvi_mode` and `hv_mode` from the +- `resource/virtual_machine`: Removed the default values for `ept_rvi_mode` and `hv_mode` from the virtual machine configuration. ([#2230](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2230)) -* `resource/virtual_machine`: Fixed overflow for the disk sub-resource when running a 32-bit version +- `resource/virtual_machine`: Fixed overflow for the disk sub-resource when running a 32-bit version of the provider. Modified the call to `GiBToByte` by passing the parameter as `int64` which forces the function to go through the 64-bit case. ([#2200](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2200)) FEATURES: -* `data/virtual_machine`: Added support for `instance_uuid`. +- `data/virtual_machine`: Added support for `instance_uuid`. ([#2198](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2198)) DOCUMENTATION: -* `datasource/ovf_vm_template` and `resource/virtual_machine`: Updated to use a Ubuntu Server cloud +- `datasource/ovf_vm_template` and `resource/virtual_machine`: Updated to use a Ubuntu Server cloud image since the nested ESXi OVA images are no longer available for direct download from Flings. ([#2215](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2215)) -* `resource/virtual_machine`: Updated to denote support and limitations for options. +- `resource/virtual_machine`: Updated to denote support and limitations for options. ([#2218](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2218)) -* `resource/virtual_machine`: Added examples for the use of guest customization specifications. +- `resource/virtual_machine`: Added examples for the use of guest customization specifications. ([#2218](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2218)) -* Removed deprecated interpolation syntax where it is no longer required. +- Removed deprecated interpolation syntax where it is no longer required. ([#2220](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2220)) -* Updated examples to use the correct syntax, formatting, and alignment with other examples in the +- Updated examples to use the correct syntax, formatting, and alignment with other examples in the docs. ([#2222](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2222)) -* Updated all links in documentation, as necessary. +- Updated all links in documentation, as necessary. ([#2212](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2212)) CHORE: -* `provider`: Updated `vmware/govmomi` to v0.38.0. +- `provider`: Updated `vmware/govmomi` to v0.38.0. ([#2229](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2229)) -* `provider`: Updated `hashicorp/terraform-plugin-sdk` to v2.34.0. +- `provider`: Updated `hashicorp/terraform-plugin-sdk` to v2.34.0. ([#2201](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2201)) -* `provider`: Added version tracking (`// Minimum Supported Version: x.y.z`) where there is a version +- `provider`: Added version tracking (`// Minimum Supported Version: x.y.z`) where there is a version restriction. This is preparation for removing checks and to support only 7.0 and later per the product lifecycle. ([#2213](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2213)) @@ -116,7 +122,7 @@ CHORE: BUG FIX: -* `resource/virtual_machine`: Reverts removing the default values for `ept_rvi_mode` and `hv_mode` +- `resource/virtual_machine`: Reverts removing the default values for `ept_rvi_mode` and `hv_mode` from the virtual machine configuration. ([#2194](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2194)) @@ -124,145 +130,146 @@ BUG FIX: BUG FIX: -* `resource/virtual_machine`: Removed the default values for `ept_rvi_mode` and `hv_mode` from the +- `resource/virtual_machine`: Removed the default values for `ept_rvi_mode` and `hv_mode` from the virtual machine configuration. ([#2172](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2172)) -* `resource/virtual_machine`: Fixed issue when network interfaces, created by Docker, with the same +- `resource/virtual_machine`: Fixed issue when network interfaces, created by Docker, with the same `deviceConfigId` causes an unexpected output. ([#2121](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2121)) FEATURES: -* `resource/virtual_machine`: Added support for specifying a `datastore_cluster_id` when cloning from +- `resource/virtual_machine`: Added support for specifying a `datastore_cluster_id` when cloning from a vSphere content library. ([#2061](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2061)) -* `resource/guest_os_customization`: Added support for `domain_ou` for Windows customizations added +- `resource/guest_os_customization`: Added support for `domain_ou` for Windows customizations added in vSphere 8.0.2. ([#2181](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2181)) -* Added resources for vSphere workload management. +- Added resources for vSphere workload management. ([#2791](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2179)) + - Enable workload management on a cluster. - Creatw custom namespaces and VM classes. - Choose a content library. - Configure passthrough devices for VM classes (e.g. vGPU). -* `resource/vsphere_offline_software_depot`: Added resource to the provider for offline software +- `resource/vsphere_offline_software_depot`: Added resource to the provider for offline software depots. Support for online depots can be added at a later time. Only depots with source type "PULL" are supported. This is intentional and aims to discourage the use of the deprecated VUM functionality. ([#2143](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2143)) -* `data/vsphere_host_base_images`: Added data source to the provider for base images. Declaring this +- `data/vsphere_host_base_images`: Added data source to the provider for base images. Declaring this data source allows users to retrieve the full list of available ESXi versions for their environment. ([#2143](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2143)) -* `resource/vsphere_compute_cluster`: Added property that serves as an entry point for the vLCM +- `resource/vsphere_compute_cluster`: Added property that serves as an entry point for the vLCM configuration. Allows selection of a base image and a list of custom components from a depot. Configuring this property for the first time also enables vLCM on the cluster. ([#2143](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2143)) DOCUMENTATION: -* `vsphere_folder`: Added clarification for storage folders instead of datastore folders. +- `vsphere_folder`: Added clarification for storage folders instead of datastore folders. ([#2183](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2183)) -* `resource/virtual_machine`: Corrected resource and data source anchor links intended for +- `resource/virtual_machine`: Corrected resource and data source anchor links intended for `virtual_machine#virtual-machine-customizations`. ([#2182](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2182)) CHORES: -* `provider`: Updated to allows the use of a SHA256 thumbprint when connecting to vCenter Server. +- `provider`: Updated to allows the use of a SHA256 thumbprint when connecting to vCenter Server. Support for SHA256 was added to `vmware/govmomi` 0.36.1. ([#2184](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2184)) -* `provider`: Updated `hashicorp/terraform-plugin-sdk` to 2.33.0. +- `provider`: Updated `hashicorp/terraform-plugin-sdk` to 2.33.0. ([#2137](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2137)) -* `provider`: Updated `vmware/govmomi` to 0.37.1. +- `provider`: Updated `vmware/govmomi` to 0.37.1. ([#2174](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2174)) -* `provider`: Updated `golang.org/x/net` to 0.23.0. +- `provider`: Updated `golang.org/x/net` to 0.23.0. ([#2173](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2173)) -* `provider`: Updated `golang.org/protobuf` to 1.33.0. +- `provider`: Updated `golang.org/protobuf` to 1.33.0. ([#2155](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2155)) ## 2.7.0 (March 06, 2024) BUG Fixed: -* `resource/virtual_machine`: Fixed support for SR-IOV passthrough virtual machine network adapters. +- `resource/virtual_machine`: Fixed support for SR-IOV passthrough virtual machine network adapters. ([#2133](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2133)) -* `resource/virtual_machine`: Unifies `disk.keep_on_remove` with default and `disk.label` with the +- `resource/virtual_machine`: Unifies `disk.keep_on_remove` with default and `disk.label` with the correct one assigned to the virtual machine disk during import. If the datastore for a virtual machine is part of a datastore cluster the `datastore_cluster_id` attribute is filled during import. ([#2127](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2127)) -* `resource/virtual_machine`: Changed the default value for `sync_time_with_host` in +- `resource/virtual_machine`: Changed the default value for `sync_time_with_host` in `r/vsphere_virtual_machine` to `true` to align with default value provided by the UI. ([#2120](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2120)) -* `resource/virtual_machine`: Added the virtual machine folder in the search for virtual machine +- `resource/virtual_machine`: Added the virtual machine folder in the search for virtual machine criteria when deploying from an OVF/OVA. scenario. Allows virtual machines with same names in different virtual machine folders to be not distinguished as different managed entities. ([#2118](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2118)) -* `resource/virtual_disk`: Fixed import to use the correct the `vmdk_path`. +- `resource/virtual_disk`: Fixed import to use the correct the `vmdk_path`. ([#1762](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1762)) FEATURES: -* `resource/virtual_machine`: Added support for `memory_reservation_locked_to_max` property. If set +- `resource/virtual_machine`: Added support for `memory_reservation_locked_to_max` property. If set true, memory resource reservation for the virtual machine will always be equal to the virtual machine's memory size. ([#2093](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2093)) -* `data/vsphere_host_vgpu_profile`: Added data source to the provider to query and return available +- `data/vsphere_host_vgpu_profile`: Added data source to the provider to query and return available vGPU profiles for an ESXi host. ([#2048](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2048)) -* `data/vsphere_datastore_stats`: Added datastore stats to report total capacity and free space of +- `data/vsphere_datastore_stats`: Added datastore stats to report total capacity and free space of datastores. ([#1896](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1896)) -* `data/vsphere_datastore`: Added stats to report total capacity and free space of a single +- `data/vsphere_datastore`: Added stats to report total capacity and free space of a single datastore. ([#1896](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1896)) DOCUMENTATION: -* Updated `INSTALL.md` use use `unzip` for Linux and macOS examples. +- Updated `INSTALL.md` use use `unzip` for Linux and macOS examples. ([#2105](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2105)) CHORES: -* `provider`: Updated `vmware/govmomi` to v0.35.0. +- `provider`: Updated `vmware/govmomi` to v0.35.0. ([#2132](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2132)) -* `provider`: Updated `hashicorp/terraform-plugin-sdk` to v2.32.0. +- `provider`: Updated `hashicorp/terraform-plugin-sdk` to v2.32.0. ([#2125](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2125)) -* `provider`: Updated `golang/go` to v1.22.0 +- `provider`: Updated `golang/go` to v1.22.0 ([#2139](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2139)) ## 2.6.1 (December 11, 2023) BUG Fixed: -* `resource/guest_os_customization`: Fixed incorrect path for `RequiredWith` and `ConflictsWith` +- `resource/guest_os_customization`: Fixed incorrect path for `RequiredWith` and `ConflictsWith` attribute identifiers for `windows_options`. ([#2083](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2083)) -* `resource/virtual_machine`: Fixed error setting SR-IOV (`sriov`) network interface address. +- `resource/virtual_machine`: Fixed error setting SR-IOV (`sriov`) network interface address. ([#2081](https://github.com/hashicorp/terraform-provider-vsphere/pull/2081)) ## 2.6.0 (November 29, 2023) BUG Fixed: -* `resource/virtual_machine`: Fixed upload error when deploying an OVF/OVA directly to an ESXi +- `resource/virtual_machine`: Fixed upload error when deploying an OVF/OVA directly to an ESXi host. ([#1813](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1813)) FEATURES: -* `resource/compute_cluster`: Added support for vSAN Express Storage Architecture in vSphere 8.0. +- `resource/compute_cluster`: Added support for vSAN Express Storage Architecture in vSphere 8.0. ([#1874](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1874)) -* `resource/compute_cluster`: Added support for vSAN stretched clusters. +- `resource/compute_cluster`: Added support for vSAN stretched clusters. ([#1885](https://github.com/hashicorp/terraform-provider-vsphere/pull/1885/)) -* `resource/compute_cluster`: Added support for vSAN fault domains. +- `resource/compute_cluster`: Added support for vSAN fault domains. ([#1968](https://github.com/hashicorp/terraform-provider-vsphere/pull/1969/)) -* `resource/guest_os_customization`: Added support for the customization specifications for guest +- `resource/guest_os_customization`: Added support for the customization specifications for guest operating systems. ([#2053](https://github.com/hashicorp/terraform-provider-vsphere/pull/2053)) -* `datasource/guest_os_customization`: Added support for the customization specifications for guest +- `datasource/guest_os_customization`: Added support for the customization specifications for guest operating systems. ([#2053](https://github.com/hashicorp/terraform-provider-vsphere/pull/2053)) -* `resource/virtual_machine`: Added support for the use of customization specifications for guest +- `resource/virtual_machine`: Added support for the use of customization specifications for guest operating systems. ([#2053](https://github.com/hashicorp/terraform-provider-vsphere/pull/2053)) -* `resource/virtual_machine`: Added support for the SR-IOV (`sriov`) network interface adapter type. +- `resource/virtual_machine`: Added support for the SR-IOV (`sriov`) network interface adapter type. ([#2059](https://github.com/hashicorp/terraform-provider-vsphere/pull/2059) and [#1417](https://github.com/hashicorp/terraform-provider-vsphere/pull/1417)) @@ -270,83 +277,83 @@ FEATURES: BUG Fixed: -* `resource/virtual_machine`: Fixed cloning regression on datastore cluster. Restored behavior not to send relocate specs for the virtual disks when it is cloned on datastore cluster with exception when `datastore_id` is explicitly specified for the virtual disk. ([#2037](https://github.com/hashicorp/terraform-provider-vsphere/pull/2037)) -* `resource/vsphere_virtual_disk`: Fixed improper disk type handling forcing disks to be recreated. ([#2033](https://github.com/hashicorp/terraform-provider-vsphere/pull/2033)) +- `resource/virtual_machine`: Fixed cloning regression on datastore cluster. Restored behavior not to send relocate specs for the virtual disks when it is cloned on datastore cluster with exception when `datastore_id` is explicitly specified for the virtual disk. ([#2037](https://github.com/hashicorp/terraform-provider-vsphere/pull/2037)) +- `resource/vsphere_virtual_disk`: Fixed improper disk type handling forcing disks to be recreated. ([#2033](https://github.com/hashicorp/terraform-provider-vsphere/pull/2033)) IMPROVEMENTS: -* `resource/virtual_machine`: Allow hardware version up to 21. ([#2038](https://github.com/hashicorp/terraform-provider-vsphere/pull/2038)) +- `resource/virtual_machine`: Allow hardware version up to 21. ([#2038](https://github.com/hashicorp/terraform-provider-vsphere/pull/2038)) CHORES: -* `provider`: Updated `golang.org/x/net` from 0.13.0 to 0.17.0. ([#2035](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2035)) +- `provider`: Updated `golang.org/x/net` from 0.13.0 to 0.17.0. ([#2035](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2035)) ## 2.5.0 (October 09, 2023) BUG Fixed: -* `resource/virtual_machine`: Removes the validation for `eagerly_scrubbed` and `thin_provision` fields for a disk subresource so that `ignore_changes` Fixed a deployment. ([#2028](https://github.com/hashicorp/terraform-provider-vsphere/pull/2028)) -* `resource/virtual_machine`: Added a differential between the disk properties specified and those existing on the source virtual machine disk, allowing changes to be sent to the API for disk subresource. ([#2028](https://github.com/hashicorp/terraform-provider-vsphere/pull/2028)) +- `resource/virtual_machine`: Removes the validation for `eagerly_scrubbed` and `thin_provision` fields for a disk subresource so that `ignore_changes` Fixed a deployment. ([#2028](https://github.com/hashicorp/terraform-provider-vsphere/pull/2028)) +- `resource/virtual_machine`: Added a differential between the disk properties specified and those existing on the source virtual machine disk, allowing changes to be sent to the API for disk subresource. ([#2028](https://github.com/hashicorp/terraform-provider-vsphere/pull/2028)) IMPROVEMENTS: -* `resource/vsphere_nic`: Documentation Updated. ([#2017](https://github.com/hashicorp/terraform-provider-vsphere/pull/2017)) +- `resource/vsphere_nic`: Documentation Updated. ([#2017](https://github.com/hashicorp/terraform-provider-vsphere/pull/2017)) CHORES: -* `provider`: Updated `vmware/govmomi` to v0.31.0. ([#2026](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2026)) +- `provider`: Updated `vmware/govmomi` to v0.31.0. ([#2026](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2026)) ## 2.4.3 (September 08, 2023) BUG Fixed: -* `resource/virtual_machine`: Fixed hardware version conversion. ([#2011](https://github.com/hashicorp/terraform-provider-vsphere/pull/2011)) +- `resource/virtual_machine`: Fixed hardware version conversion. ([#2011](https://github.com/hashicorp/terraform-provider-vsphere/pull/2011)) CHORES: -* `provider`: Updated `terraform-plugin-sdk` v2.28.0. ([#2002](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2002)) -* `provider`: Updated `vmware/govmomi` to v0.30.7. ([#1972](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1972)) +- `provider`: Updated `terraform-plugin-sdk` v2.28.0. ([#2002](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2002)) +- `provider`: Updated `vmware/govmomi` to v0.30.7. ([#1972](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1972)) ## 2.4.2 (August 21, 2023) BUG Fixed: -* `resource/virtual_machine`: Fixed hardware version error when cloning and/or configuring a VM/Template. ([#1995](https://github.com/hashicorp/terraform-provider-vsphere/pull/1995)) -* `resource/virtual_machine`: Fixed invalid operation for device '0' when reconfiguring a VM. ([#1996](https://github.com/hashicorp/terraform-provider-vsphere/pull/1996)) +- `resource/virtual_machine`: Fixed hardware version error when cloning and/or configuring a VM/Template. ([#1995](https://github.com/hashicorp/terraform-provider-vsphere/pull/1995)) +- `resource/virtual_machine`: Fixed invalid operation for device '0' when reconfiguring a VM. ([#1996](https://github.com/hashicorp/terraform-provider-vsphere/pull/1996)) CHORES: -* `provider`: Updated `terraform-plugin-sdk` to v2.27.0. ([#1937](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1937)) -* `provider`: Updated `vmware/govmomi` to v0.30.7. ([#1972](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1972)) +- `provider`: Updated `terraform-plugin-sdk` to v2.27.0. ([#1937](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1937)) +- `provider`: Updated `vmware/govmomi` to v0.30.7. ([#1972](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1972)) ## 2.4.1 (June 26, 2023) BUG Fixed: -* `resource/compute_cluster`: Added version check for [vSphere 7.0.1 or later](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vsan.doc/GUID-9113BBD6-5428-4287-9F61-C8C3EE51E07E.html) when enabling vSAN HCI Mesh. ([#1931](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1931)) +- `resource/compute_cluster`: Added version check for [vSphere 7.0.1 or later](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vsan.doc/GUID-9113BBD6-5428-4287-9F61-C8C3EE51E07E.html) when enabling vSAN HCI Mesh. ([#1931](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1931)) ## 2.4.0 (May 5, 2023) FEATURES: -* `datasource/virtual_machine`: Added support for lookup by moid. ([#1868](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1868)) -* `resource/vnic`: Added support for services on vmkernel adapter/vnic. ([#1855](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1855)) +- `datasource/virtual_machine`: Added support for lookup by moid. ([#1868](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1868)) +- `resource/vnic`: Added support for services on vmkernel adapter/vnic. ([#1855](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1855)) BUG Fixed: -* `resource/nas_datastore`: Fixed issue mounting and/or unmounting NFS datastores when updating `host_system_ids` as a day-two operation. ([#1860](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1860)) -* `resource/virtual_machine_storage_policy`: Updated the `resourceVMStoragePolicyDelete` method to check the response of `pbmClient.DeleteProfile()` API for errors. If a storage policy is in use and cannot be deleted, the destroy operation will fail and the storage policy will remain in the state. ([#1863](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1863)) -* `resource/virtual_machine`: Fixed vSAN timeout. ([#1864](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1864)) +- `resource/nas_datastore`: Fixed issue mounting and/or unmounting NFS datastores when updating `host_system_ids` as a day-two operation. ([#1860](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1860)) +- `resource/virtual_machine_storage_policy`: Updated the `resourceVMStoragePolicyDelete` method to check the response of `pbmClient.DeleteProfile()` API for errors. If a storage policy is in use and cannot be deleted, the destroy operation will fail and the storage policy will remain in the state. ([#1863](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1863)) +- `resource/virtual_machine`: Fixed vSAN timeout. ([#1864](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1864)) IMPROVEMENTS: -* `resource/host`: Documentation Updated. ([#1884](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1884)) -* `resource/vnic`: Fixed tests. ([#1887](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1887)) +- `resource/host`: Documentation Updated. ([#1884](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1884)) +- `resource/vnic`: Fixed tests. ([#1887](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1887)) CHORES: -* `provider`: Updated `terraform-plugin-sdk` to v2.26.1. ([#1862](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1862)) -* `provider`: Updated `vmware/govmomi` to v0.30.4. ([#1858](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1858)) +- `provider`: Updated `terraform-plugin-sdk` to v2.26.1. ([#1862](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1862)) +- `provider`: Updated `vmware/govmomi` to v0.30.4. ([#1858](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1858)) ## 2.3.1 (February 8, 2023) @@ -354,73 +361,73 @@ CHORES: BUG Fixed: -* `resource/compute_cluster`: Fixed panic when reading vSAN. ([#1835](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1835)) -* `resource/vsphere_file`: Fixed a provider crash by updating the `createDirectory` method to check if the provided file path has any parent folder(s). If no folders need to be created `FileManager.MakeDirectory` is not invoked. ([#1866](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1866)) +- `resource/compute_cluster`: Fixed panic when reading vSAN. ([#1835](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1835)) +- `resource/vsphere_file`: Fixed a provider crash by updating the `createDirectory` method to check if the provided file path has any parent folder(s). If no folders need to be created `FileManager.MakeDirectory` is not invoked. ([#1866](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1866)) ## 2.3.0 (February 8, 2023) FEATURES: -* `resource/virtual_machine`: Added support for the paravirtual RDMA (PVRDMA) `vmxnet3vrdma` network interface adapter type. ([#1598](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1598)) -* `resource/virtual_machine`: Added support for an optional `extra_config_reboot_required` argument to `r/virtual_machine`. This argument allows you to configure if a virtual machine reboot is enforced when `extra_config` is changed. ([#1603](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1603)) -* `resource/virtual_machine`: Added support for two (2) CD-ROMs attached to a virtual machine. ([#1631](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1631)) -* `resource/compute_cluster`: Added support for vSAN compression and deduplication. ([#1702](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1702)) -* `resource/compute_cluster`: Added support for vSAN performance services. ([#1727](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1727)) -* `resource/compute_cluster`: Added support for vSAN unmap. ([#1745](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1745)) -* `resource/compute_cluster`: Added support for vSAN HCI Mesh. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) -* `resource/compute_cluster`: Added support for vSAN Data-in-Transit Encryption. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) -* `resource/role`: Added support for import. ([#1822](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1822)) +- `resource/virtual_machine`: Added support for the paravirtual RDMA (PVRDMA) `vmxnet3vrdma` network interface adapter type. ([#1598](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1598)) +- `resource/virtual_machine`: Added support for an optional `extra_config_reboot_required` argument to `r/virtual_machine`. This argument allows you to configure if a virtual machine reboot is enforced when `extra_config` is changed. ([#1603](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1603)) +- `resource/virtual_machine`: Added support for two (2) CD-ROMs attached to a virtual machine. ([#1631](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1631)) +- `resource/compute_cluster`: Added support for vSAN compression and deduplication. ([#1702](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1702)) +- `resource/compute_cluster`: Added support for vSAN performance services. ([#1727](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1727)) +- `resource/compute_cluster`: Added support for vSAN unmap. ([#1745](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1745)) +- `resource/compute_cluster`: Added support for vSAN HCI Mesh. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) +- `resource/compute_cluster`: Added support for vSAN Data-in-Transit Encryption. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) +- `resource/role`: Added support for import. ([#1822](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1822)) BUG Fixed: -* `resource/datastore_cluster`: Fixed error parsing string as enum type for `sdrs_advanced_options`. [(1749](https://github.com/hashicorp/terraform-provider-vsphere/pull/1749)) -* `provider`: Reverts a linting update from #1416 back to SHA1. SHA1 is used by `vmware/govmomi` for the session file. This will allow session reuse from govc. [(1808](https://github.com/hashicorp/terraform-provider-vsphere/pull/1808)) -* `resource/compute_cluster`: Fixed panic in vsan disk group. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) -* `resource/virtual_machine`: Updating the `datastore_id` will apply to disk sub-resources. ([#1817](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1817)) +- `resource/datastore_cluster`: Fixed error parsing string as enum type for `sdrs_advanced_options`. [(1749](https://github.com/hashicorp/terraform-provider-vsphere/pull/1749)) +- `provider`: Reverts a linting update from #1416 back to SHA1. SHA1 is used by `vmware/govmomi` for the session file. This will allow session reuse from govc. [(1808](https://github.com/hashicorp/terraform-provider-vsphere/pull/1808)) +- `resource/compute_cluster`: Fixed panic in vsan disk group. ([#1820](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1820)) +- `resource/virtual_machine`: Updating the `datastore_id` will apply to disk sub-resources. ([#1817](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1817)) IMPROVEMENTS: -* `resource/distributed_virtual_switch`: Added support for vSphere distributed switch version `8.0.0` in vSphere 8.0. [(1767](https://github.com/hashicorp/terraform-provider-vsphere/pull/1767)) -* `resource/virtual_machine`: Enables virtual machine reconfiguration tasks to use the provider `api_timeout` setting. ([#1645](https://github.com/hashicorp/terraform-provider-vsphere/pull/1645)) -* `resource/host`: Documentation Updated. ([#1675](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1675)) -* `resource/host_virtual_switch`: Allows `standby_nics` on `r/vsphere_host_virtual_switch` to be an optional attribute so `standby_nics = []` does not need to be defined when no standby NICs are required/available. ([#1695](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1695)) -* `resource/compute_cluster_vm_anti_affinity_rule`: Documentation Updated. ([#1700](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1700)) -* `vsphere_ovf_vm_template`: Documentation Updated. ([#1792](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1792)) +- `resource/distributed_virtual_switch`: Added support for vSphere distributed switch version `8.0.0` in vSphere 8.0. [(1767](https://github.com/hashicorp/terraform-provider-vsphere/pull/1767)) +- `resource/virtual_machine`: Enables virtual machine reconfiguration tasks to use the provider `api_timeout` setting. ([#1645](https://github.com/hashicorp/terraform-provider-vsphere/pull/1645)) +- `resource/host`: Documentation Updated. ([#1675](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1675)) +- `resource/host_virtual_switch`: Allows `standby_nics` on `r/vsphere_host_virtual_switch` to be an optional attribute so `standby_nics = []` does not need to be defined when no standby NICs are required/available. ([#1695](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1695)) +- `resource/compute_cluster_vm_anti_affinity_rule`: Documentation Updated. ([#1700](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1700)) +- `vsphere_ovf_vm_template`: Documentation Updated. ([#1792](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1792)) CHORES: -* `provider`: Updated `vmware/govmomi` to v0.29.0. ([#1701](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1701)) +- `provider`: Updated `vmware/govmomi` to v0.29.0. ([#1701](https://github.com/terraform-providers/terraform-provider-vsphere/pull/1701)) ## 2.2.0 (June 16, 2022) BUG Fixed: -* `resource/virtual_machine`: Fixed ability to clone and import virtual machine resources with SATA and IDE controllers. ([#1629](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1629)) -* `resource/dvs`: Prevent setting unsupported traffic classes. ([#1633](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1633)) -* `resource/virtual_machine`: Fixed provider panic when a non supported PCI device is added outside Terraform to a virtual machine. ([#1627](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1627)) -* `resource/datacenter`: Updated `resourceVSphereDatacenterImport` to include the datacenter folder in which the datacenter object may exist. ([#1607](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1607)) -* `resource/virtual_machine` - Fixed issue where PCI passthrough devices not applied during initial cloning. ([#1625](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1625)) -* `helper/content_library`: Fixed content library item local iso upload ([#1665](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1665)) +- `resource/virtual_machine`: Fixed ability to clone and import virtual machine resources with SATA and IDE controllers. ([#1629](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1629)) +- `resource/dvs`: Prevent setting unsupported traffic classes. ([#1633](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1633)) +- `resource/virtual_machine`: Fixed provider panic when a non supported PCI device is added outside Terraform to a virtual machine. ([#1627](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1627)) +- `resource/datacenter`: Updated `resourceVSphereDatacenterImport` to include the datacenter folder in which the datacenter object may exist. ([#1607](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1607)) +- `resource/virtual_machine` - Fixed issue where PCI passthrough devices not applied during initial cloning. ([#1625](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1625)) +- `helper/content_library`: Fixed content library item local iso upload ([#1665](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1665)) FEATURES: -* `resource/vsphere_host`: Added support for custom attributes. ([#1619](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1619)) -* `resource/virtual_machine`: Added support for guest customization script for Linux guest operating systems. ([#1621](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1621)) -* `datasource/virtual_machine`: Added support for lookup by `uuid`. ([#1650](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1650)) -* `resource/compute_cluster`: Added support for scalable shares. ([#1634](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1634)) -* `resource/resource_pool`: Added support for scalable shares. ([#1634](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1634)) -* `datasource/compute_cluster_host_group`: Added support for a data source that can be used to read general attributes of a host group. ([#1636](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1636)) +- `resource/vsphere_host`: Added support for custom attributes. ([#1619](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1619)) +- `resource/virtual_machine`: Added support for guest customization script for Linux guest operating systems. ([#1621](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1621)) +- `datasource/virtual_machine`: Added support for lookup by `uuid`. ([#1650](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1650)) +- `resource/compute_cluster`: Added support for scalable shares. ([#1634](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1634)) +- `resource/resource_pool`: Added support for scalable shares. ([#1634](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1634)) +- `datasource/compute_cluster_host_group`: Added support for a data source that can be used to read general attributes of a host group. ([#1636](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1636)) IMPROVEMENTS: -* `resource/vsphere_resource_pool`: Documentation Updated. ([#1620](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1620)) -* `resource/virtual_machine`: Documentation Updated. ([#1630](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1630)) -* `resource/virtual_machine`: Added `tools_upgrade_policy` to list of params that trigger a reboot ([#1644](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1644)) -* `resource/datastore_cluster`: Documentation Updated. ([#1670](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1670)) -* `provider`: Index page documentation Updated. ([#1672](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1672)) -* `resource/host_port_group`: Documentation Updated. ([#1671](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1671)) -* `provider`: Updated Go to 1.18 and remove vendoring. ([#1676](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1676)) -* `provider`: Updated Terraform Plugin SDK to 2.17.0. ([#1677](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1677)) +- `resource/vsphere_resource_pool`: Documentation Updated. ([#1620](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1620)) +- `resource/virtual_machine`: Documentation Updated. ([#1630](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1630)) +- `resource/virtual_machine`: Added `tools_upgrade_policy` to list of params that trigger a reboot ([#1644](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1644)) +- `resource/datastore_cluster`: Documentation Updated. ([#1670](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1670)) +- `provider`: Index page documentation Updated. ([#1672](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1672)) +- `resource/host_port_group`: Documentation Updated. ([#1671](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1671)) +- `provider`: Updated Go to 1.18 and remove vendoring. ([#1676](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1676)) +- `provider`: Updated Terraform Plugin SDK to 2.17.0. ([#1677](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1677)) ## 2.1.1 (March 08, 2022) @@ -428,423 +435,423 @@ IMPROVEMENTS: BUG Fixed: -* `resource/compute_cluster`: Reverts ([#1432](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1432)) switching `vsan_disk_group` back to `TypeList`. Switching from `TypeList` to `TypeSet` is a sore spot when it comes to what is considered a breaking change to provider configuration. Generally we accept that users may use list indices within their config. When this attribute switched to `TypeSet` this caused a breaking change for configurations doing that, as `TypeSet` is indexed by a hash value that Terraform calculates. Furthermore other code around type assertions was not changed and this attribute actually crashed the provider in `v2.1.0`, we will address the now re-opened ([#1205](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1205)) in `v3.0.0` of the provider. ([#1615](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1615)) +- `resource/compute_cluster`: Reverts ([#1432](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1432)) switching `vsan_disk_group` back to `TypeList`. Switching from `TypeList` to `TypeSet` is a sore spot when it comes to what is considered a breaking change to provider configuration. Generally we accept that users may use list indices within their config. When this attribute switched to `TypeSet` this caused a breaking change for configurations doing that, as `TypeSet` is indexed by a hash value that Terraform calculates. Furthermore other code around type assertions was not changed and this attribute actually crashed the provider in `v2.1.0`, we will address the now re-opened ([#1205](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1205)) in `v3.0.0` of the provider. ([#1615](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1615)) FEATURES: -* `resource/virtual_machine`: Added support to check the power state of the resource. ([#1407](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1407)) +- `resource/virtual_machine`: Added support to check the power state of the resource. ([#1407](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1407)) ## 2.1.0 (February 28, 2022) BUG Fixed: -* `resource/compute_cluster`: Updated `ha_datastore_apd_response_delay` to the API default (180) for `vmTerminateDelayForAPDSec`. Previously set to 3 (minutes) however the codebase uses this value as seconds. Users who had the field left blank may see a warning about the state value drifting from 3 to 180, after applying this should go away. ([#1542](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1542)) -* `resource/virtual_machine`: Don't read `storage_policy_id` if vCenter is not configured. This is not a scenario we test or support explicitly ([#1408](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1408)) -* `datasource/virtual_machine`: Fixed silent failure and add `default_ip_address` attribute. ([#1532](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1532)) -* `resource/virtual_machine`: Fixed race condition by always forcing a new datastore id. ([#1486](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1486)) -* `resource/virtual_machine`: Fixed default guest OS identifier. ([#1543](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1543)) -* `resource/virtual_machine`: Updated `windows_options` to ensure all required options for domain join are provided ([#1562](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1562)) -* `resource/virtual_machine`: Fixed migration of all disks and configuration files when the datastore_cluster_id is changed on the resource. ([#1546](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1546)) -* `resource/file`: Fixed upload of VMDK to datastore on ESXi host. ([#1409](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1409)) -* `resource/tag`: Fixed deletion detection in `tag` and `tag_category`. ([#1579](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1579)) -* `resource/virtual_machine`: Sets `annotation` to optional + computed. ([#1588](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1588)) +- `resource/compute_cluster`: Updated `ha_datastore_apd_response_delay` to the API default (180) for `vmTerminateDelayForAPDSec`. Previously set to 3 (minutes) however the codebase uses this value as seconds. Users who had the field left blank may see a warning about the state value drifting from 3 to 180, after applying this should go away. ([#1542](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1542)) +- `resource/virtual_machine`: Don't read `storage_policy_id` if vCenter is not configured. This is not a scenario we test or support explicitly ([#1408](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1408)) +- `datasource/virtual_machine`: Fixed silent failure and add `default_ip_address` attribute. ([#1532](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1532)) +- `resource/virtual_machine`: Fixed race condition by always forcing a new datastore id. ([#1486](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1486)) +- `resource/virtual_machine`: Fixed default guest OS identifier. ([#1543](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1543)) +- `resource/virtual_machine`: Updated `windows_options` to ensure all required options for domain join are provided ([#1562](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1562)) +- `resource/virtual_machine`: Fixed migration of all disks and configuration files when the datastore_cluster_id is changed on the resource. ([#1546](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1546)) +- `resource/file`: Fixed upload of VMDK to datastore on ESXi host. ([#1409](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1409)) +- `resource/tag`: Fixed deletion detection in `tag` and `tag_category`. ([#1579](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1579)) +- `resource/virtual_machine`: Sets `annotation` to optional + computed. ([#1588](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1588)) FEATURES: -* `datasource/license`: New datasource can be used to read general attributes of a license. ([#1580](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1580)) -* `resource/virtual_machine`: Added the `tools_upgrade_policy` argument to set the upgrade policy for VMware Tools. ([#1506](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1506)) +- `datasource/license`: New datasource can be used to read general attributes of a license. ([#1580](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1580)) +- `resource/virtual_machine`: Added the `tools_upgrade_policy` argument to set the upgrade policy for VMware Tools. ([#1506](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1506)) IMPROVEMENTS: -* `resource/vapp_container`: Documentation Updated. ([#1551](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1551)) -* `resource/computer_cluster_vm_affinity_rule`: Documentation Updated. ([#1544](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1544)) -* `resource/computer_cluster_vm_anti_affinity_rule`: Documentation Updated. ([#1544](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1544)) -* `resource/virtual_machine`: Documentation Updated. ([#1513](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1513)) -* `resource/custom_attribute`: Documentation Updated. ([#1508](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1508)) -* `resource/virtual_machine_storage_policy`: Documentation Updated. ([#1541](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1541)) -* `datasource/storage_policy`: Documentation Updated. ([#1541](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1541)) -* `resource/distributed_virtual_switch`: Documentation Updated. ([#1504](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1504)) -* `datasource/distributed_virtual_switch`: Documentation Updated. ([#1504](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1504)) -* `resource/distributed_virtual_switch`: Added support for dvs versions `6.6.0` and `7.0.3`. ([#1501](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1501)) -* `datasource/content_library_item`: Documentation Updated. ([#1507](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1507)) -* `resource/ha_vm_override`: Added `disabled` option to `ha_vm_restart_priority`. ([#1505](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1505)) -* `resource/virtual_disk`: Documentation Updated. ([#1569](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1569)) -* `resource/virtual_machine`: Documentation Updated. ([#1566](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1566)) -* `resource/content_library`: Documentation Updated. ([#1577](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1577)) -* `resource/virtual_machine`: Updated the documentation with the conditions that causes the virtual machine to reboot on update. ([#1522](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1522)) -* `resource/distributed_virtual_switch`: Devices argument is now optional ([#1468](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1468)) -* `resource/virtual_host`: Added support add tags to hosts. ([#1499](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1499)) -* `resource/content_library_item`: Documentation Updated. ([#1586](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1586)) -* `resource/file`: Documentation Updated and deletion fix. ([#1590](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1590)) -* `resource/virtual_machine`: Documentation Updated. ([#1595](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1595)) -* `resource/tag_category`: Performs validation of associable types and update documentation around "All" which never worked. ([#1602](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1602)) +- `resource/vapp_container`: Documentation Updated. ([#1551](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1551)) +- `resource/computer_cluster_vm_affinity_rule`: Documentation Updated. ([#1544](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1544)) +- `resource/computer_cluster_vm_anti_affinity_rule`: Documentation Updated. ([#1544](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1544)) +- `resource/virtual_machine`: Documentation Updated. ([#1513](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1513)) +- `resource/custom_attribute`: Documentation Updated. ([#1508](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1508)) +- `resource/virtual_machine_storage_policy`: Documentation Updated. ([#1541](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1541)) +- `datasource/storage_policy`: Documentation Updated. ([#1541](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1541)) +- `resource/distributed_virtual_switch`: Documentation Updated. ([#1504](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1504)) +- `datasource/distributed_virtual_switch`: Documentation Updated. ([#1504](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1504)) +- `resource/distributed_virtual_switch`: Added support for dvs versions `6.6.0` and `7.0.3`. ([#1501](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1501)) +- `datasource/content_library_item`: Documentation Updated. ([#1507](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1507)) +- `resource/ha_vm_override`: Added `disabled` option to `ha_vm_restart_priority`. ([#1505](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1505)) +- `resource/virtual_disk`: Documentation Updated. ([#1569](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1569)) +- `resource/virtual_machine`: Documentation Updated. ([#1566](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1566)) +- `resource/content_library`: Documentation Updated. ([#1577](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1577)) +- `resource/virtual_machine`: Updated the documentation with the conditions that causes the virtual machine to reboot on update. ([#1522](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1522)) +- `resource/distributed_virtual_switch`: Devices argument is now optional ([#1468](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1468)) +- `resource/virtual_host`: Added support add tags to hosts. ([#1499](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1499)) +- `resource/content_library_item`: Documentation Updated. ([#1586](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1586)) +- `resource/file`: Documentation Updated and deletion fix. ([#1590](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1590)) +- `resource/virtual_machine`: Documentation Updated. ([#1595](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1595)) +- `resource/tag_category`: Performs validation of associable types and update documentation around "All" which never worked. ([#1602](https://github.com/terraform-providers/terraform-provider-vsphere/issues/1602)) ## 2.0.2 (June 25, 2021) BUG Fixed: -* `resource/virtual_machine`: Fix logic bug that caused the provider to set unsupported fields when talking to vSphere 6.5. ([1430](https://github.com/hashicorp/terraform-provide-vsphere/pull/1430)) -* `resource/virtual_machine`: Fix resource diff bug where it was not possible to ignore changes to `cdrom` subresource. ([1433](https://github.com/hashicorp/terraform-provide-vsphere/pull/1433)) +- `resource/virtual_machine`: Fix logic bug that caused the provider to set unsupported fields when talking to vSphere 6.5. ([1430](https://github.com/hashicorp/terraform-provide-vsphere/pull/1430)) +- `resource/virtual_machine`: Fix resource diff bug where it was not possible to ignore changes to `cdrom` subresource. ([1433](https://github.com/hashicorp/terraform-provide-vsphere/pull/1433)) IMPROVEMENTS: -* `resource/virtual_machine`: Support periodic time syncing for VMs on vSphere 7.0U1 onwards. ([1431](https://github.com/hashicorp/terraform-provide-vsphere/pull/1431)) +- `resource/virtual_machine`: Support periodic time syncing for VMs on vSphere 7.0U1 onwards. ([1431](https://github.com/hashicorp/terraform-provide-vsphere/pull/1431)) ## 2.0.1 (June 09, 2021) BUG Fixed: -* `resource/virtual_machine`: Only set vvtd/vbs if vSphere version is newer than 6.5. ([1423](https://github.com/hashicorp/terraform-provider-vsphere/pull/1423)) +- `resource/virtual_machine`: Only set vvtd/vbs if vSphere version is newer than 6.5. ([1423](https://github.com/hashicorp/terraform-provider-vsphere/pull/1423)) ## 2.0.0 (June 02, 2021) BREAKING CHANGES: -* `provider`: Moving forward this provider will only work with Terraform version v0.12 and later. -* `resource/virtual_machine`: [Deprecated attribute `name`](https://github.com/hashicorp/terraform-provider-vsphere/blob/main/CHANGELOG.md#130-january-26-2018) has been removed from the `disk` subresource. +- `provider`: Moving forward this provider will only work with Terraform version v0.12 and later. +- `resource/virtual_machine`: [Deprecated attribute `name`](https://github.com/hashicorp/terraform-provider-vsphere/blob/main/CHANGELOG.md#130-january-26-2018) has been removed from the `disk` subresource. BUG Fixed: -* `datasource/ovf_datasource`: Fix validation error when importing OVF spec. ([1398](https://github.com/hashicorp/terraform-provider-vsphere/pull/1398)) -* `resource/virtual_machine`: Fix post-import VM regression. ([1361](https://github.com/hashicorp/terraform-provider-vsphere/pull/1361)) -* `resource/virtual_machine`: Round up when calculating disk capacity. ([1397](https://github.com/hashicorp/terraform-provider-vsphere/pull/1397)) -* `resource/vnic`: Fix default netstack name. ([1376](https://github.com/hashicorp/terraform-provider-vsphere/pull/1376)) +- `datasource/ovf_datasource`: Fix validation error when importing OVF spec. ([1398](https://github.com/hashicorp/terraform-provider-vsphere/pull/1398)) +- `resource/virtual_machine`: Fix post-import VM regression. ([1361](https://github.com/hashicorp/terraform-provider-vsphere/pull/1361)) +- `resource/virtual_machine`: Round up when calculating disk capacity. ([1397](https://github.com/hashicorp/terraform-provider-vsphere/pull/1397)) +- `resource/vnic`: Fix default netstack name. ([1376](https://github.com/hashicorp/terraform-provider-vsphere/pull/1376)) IMPROVEMENTS: -* `provider`: Provider wide API timeout setting. ([1405](https://github.com/hashicorp/terraform-provider-vsphere/pull/1405)) -* `provider`: Enable keepalive for REST API sessions. ([1301](https://github.com/hashicorp/terraform-provider-vsphere/pull/1301)) -* `provider`: Upgrade Plugin SDK to 2.6.1 ([1379](https://github.com/hashicorp/terraform-provider-vsphere/pull/1379)) -* `datasource/virtual_machine`: Added `network_interfaces`` output. ([#1274](https://github.com/hashicorp/terraform-provider-vsphere/pull/1274)) -* `resource/virtual_machine`: Allow non-configurable vApp properties to be set. ([1199](https://github.com/hashicorp/terraform-provider-vsphere/pull/1199)) -* `resource/virtual_machine`: Enable VBS (`vbsEnabled`) and I/O MMU (`vvtdEnabled`). ([1287](https://github.com/hashicorp/terraform-provider-vsphere/pull/1287)) -* `resource/virtual_machine`: Added `replace_trigger` to support replacement of vms based external changes such as cloud_init ([#1360](https://github.com/hashicorp/terraform-provider-vsphere/issues/1360)) +- `provider`: Provider wide API timeout setting. ([1405](https://github.com/hashicorp/terraform-provider-vsphere/pull/1405)) +- `provider`: Enable keepalive for REST API sessions. ([1301](https://github.com/hashicorp/terraform-provider-vsphere/pull/1301)) +- `provider`: Upgrade Plugin SDK to 2.6.1 ([1379](https://github.com/hashicorp/terraform-provider-vsphere/pull/1379)) +- `datasource/virtual_machine`: Added `network_interfaces`` output. ([#1274](https://github.com/hashicorp/terraform-provider-vsphere/pull/1274)) +- `resource/virtual_machine`: Allow non-configurable vApp properties to be set. ([1199](https://github.com/hashicorp/terraform-provider-vsphere/pull/1199)) +- `resource/virtual_machine`: Enable VBS (`vbsEnabled`) and I/O MMU (`vvtdEnabled`). ([1287](https://github.com/hashicorp/terraform-provider-vsphere/pull/1287)) +- `resource/virtual_machine`: Added `replace_trigger` to support replacement of vms based external changes such as cloud_init ([#1360](https://github.com/hashicorp/terraform-provider-vsphere/issues/1360)) ## 1.26.0 (April 20, 2021) BUG Fixed: -* Minor Fixed of issues that came up during testing against vSphere 7.0 -* Change the way we set the timeout for maintenance mode ([#1392](https://github.com/hashicorp/terraform-provider-vsphere/pull/1392)) +- Minor Fixed of issues that came up during testing against vSphere 7.0 +- Change the way we set the timeout for maintenance mode ([#1392](https://github.com/hashicorp/terraform-provider-vsphere/pull/1392)) IMPROVEMENTS: -* `provider`: vSphere 7 compatibility validation ([#1381](https://github.com/hashicorp/terraform-provider-vsphere/pull/1381)) -* `resource/virtual_machine`: Allow hardware version up to 19 ([#1391](https://github.com/hashicorp/terraform-provider-vsphere/pull/1391)) +- `provider`: vSphere 7 compatibility validation ([#1381](https://github.com/hashicorp/terraform-provider-vsphere/pull/1381)) +- `resource/virtual_machine`: Allow hardware version up to 19 ([#1391](https://github.com/hashicorp/terraform-provider-vsphere/pull/1391)) ## 1.25.0 (March 17, 2021) BUG Fixed: -* `resource/vsphere_entity_permissions`: Sorting permission objects on user name/group name before storing. ([#1311](https://github.com/hashicorp/terraform-provider-vsphere/pull/1311)) -* `resource/virtual_machine`: Limit netmask length for ipv4 and ipv6 netmask. ([#1321](https://github.com/hashicorp/terraform-provider-vsphere/pull/1321)) -* `resource/virtual_machine`: Fix missing vApp properties. ([#1322](https://github.com/hashicorp/terraform-provider-vsphere/pull/1322)) +- `resource/vsphere_entity_permissions`: Sorting permission objects on user name/group name before storing. ([#1311](https://github.com/hashicorp/terraform-provider-vsphere/pull/1311)) +- `resource/virtual_machine`: Limit netmask length for ipv4 and ipv6 netmask. ([#1321](https://github.com/hashicorp/terraform-provider-vsphere/pull/1321)) +- `resource/virtual_machine`: Fix missing vApp properties. ([#1322](https://github.com/hashicorp/terraform-provider-vsphere/pull/1322)) FEATURES: -* `datasource/vsphere_ovf_vm_template`: Created data source OVF VM Template. This new data source allows `vsphere_virtual_machine` to be created by its exported attributes. See PR for more details. ([#1339](https://github.com/hashicorp/terraform-provider-vsphere/pull/1339)) +- `datasource/vsphere_ovf_vm_template`: Created data source OVF VM Template. This new data source allows `vsphere_virtual_machine` to be created by its exported attributes. See PR for more details. ([#1339](https://github.com/hashicorp/terraform-provider-vsphere/pull/1339)) IMPROVEMENTS: -* `resource/distributed_virtual_switch`: Allow vSphere7. ([#1363](https://github.com/hashicorp/terraform-provider-vsphere/pull/1363)) -* `provider`: Bump Go to version 1.16. ([#1365](https://github.com/hashicorp/terraform-provider-vsphere/pull/1365)) +- `resource/distributed_virtual_switch`: Allow vSphere7. ([#1363](https://github.com/hashicorp/terraform-provider-vsphere/pull/1363)) +- `provider`: Bump Go to version 1.16. ([#1365](https://github.com/hashicorp/terraform-provider-vsphere/pull/1365)) ## 1.24.3 (December 14, 2020) BUG Fixed: -* `resource/virtual_machine`: Support for no disks in config ([#1241](https://github.com/hashicorp/terraform-provider-vsphere/pull/1241)) -* `resource/virtual_machine`: Make API timeout configurable when building VMs ([#1278](https://github.com/hashicorp/terraform-provider-vsphere/pull/1278)) +- `resource/virtual_machine`: Support for no disks in config ([#1241](https://github.com/hashicorp/terraform-provider-vsphere/pull/1241)) +- `resource/virtual_machine`: Make API timeout configurable when building VMs ([#1278](https://github.com/hashicorp/terraform-provider-vsphere/pull/1278)) ## 1.24.2 (October 16, 2020) BUG Fixed: -* `resource/virtual_machine`: Prevent `guest_id`` nil condition. ([#1234](https://github.com/hashicorp/terraform-provider-vsphere/pull/1234)) +- `resource/virtual_machine`: Prevent `guest_id`` nil condition. ([#1234](https://github.com/hashicorp/terraform-provider-vsphere/pull/1234)) ## 1.24.1 (October 07, 2020) IMPROVEMENTS: -* `datasource/content_library_item`: Add `type` to content library item data source. ([#1184](https://github.com/hashicorp/terraform-provider-vsphere/pull/1184)) -* `resource/virtual_switch`: Fix port group resource to enable LACP in virtual switch only. ([#1214](https://github.com/hashicorp/terraform-provider-vsphere/pull/1214)) -* `resource/distributed_port_group`: Import distributed port group using MOID. ([#1208](https://github.com/hashicorp/terraform-provider-vsphere/pull/1208)) -* `resource/host_port_group`: Add support for importing. ([#1194](https://github.com/hashicorp/terraform-provider-vsphere/pull/1194)) -* `resource/virtual_machine`: Allow more config options to be changed from OVF. ([#1218](https://github.com/hashicorp/terraform-provider-vsphere/pull/1218)) -* `resource/virtual_machine`: Convert folder path to MOID. ([#1207](https://github.com/hashicorp/terraform-provider-vsphere/pull/1207)) +- `datasource/content_library_item`: Add `type` to content library item data source. ([#1184](https://github.com/hashicorp/terraform-provider-vsphere/pull/1184)) +- `resource/virtual_switch`: Fix port group resource to enable LACP in virtual switch only. ([#1214](https://github.com/hashicorp/terraform-provider-vsphere/pull/1214)) +- `resource/distributed_port_group`: Import distributed port group using MOID. ([#1208](https://github.com/hashicorp/terraform-provider-vsphere/pull/1208)) +- `resource/host_port_group`: Add support for importing. ([#1194](https://github.com/hashicorp/terraform-provider-vsphere/pull/1194)) +- `resource/virtual_machine`: Allow more config options to be changed from OVF. ([#1218](https://github.com/hashicorp/terraform-provider-vsphere/pull/1218)) +- `resource/virtual_machine`: Convert folder path to MOID. ([#1207](https://github.com/hashicorp/terraform-provider-vsphere/pull/1207)) BUG Fixed: -* `resource/datastore_cluster`: Fix missing field in import. ([#1203](https://github.com/hashicorp/terraform-provider-vsphere/pull/1203)) -* `resource/virtual_machine`: Change default OS method on bare VMs. ([#1217](https://github.com/hashicorp/terraform-provider-vsphere/pull/1217)) -* `resource/virtual_machine`: Read virtual machine after clone and OVF/OVA deploy. ([#1221](https://github.com/hashicorp/terraform-provider-vsphere/pull/1221)) +- `resource/datastore_cluster`: Fix missing field in import. ([#1203](https://github.com/hashicorp/terraform-provider-vsphere/pull/1203)) +- `resource/virtual_machine`: Change default OS method on bare VMs. ([#1217](https://github.com/hashicorp/terraform-provider-vsphere/pull/1217)) +- `resource/virtual_machine`: Read virtual machine after clone and OVF/OVA deploy. ([#1221](https://github.com/hashicorp/terraform-provider-vsphere/pull/1221)) ## 1.24.0 (September 02, 2020) BUG Fixed: -* `resource/virtual_machine`: Skip SCSI controller check when empty. ([#1179](https://github.com/hashicorp/terraform-provider-vsphere/pull/1179)) -* `resource/virtual_machine`: Make storage_policy_id computed to prevent flapping when unset. ([#1185](https://github.com/hashicorp/terraform-provider-vsphere/pull/1185)) -* `resource/virtual_machine`: Ignore nil objects in host network on read. ([#1186](https://github.com/hashicorp/terraform-provider-vsphere/pull/1186)) -* `resource/virtual_machine`: Keep progress channel open when deploying an OVF. ([#1187](https://github.com/hashicorp/terraform-provider-vsphere/pull/1187)) -* `resource/virtual_machine`: Set SCSI controller type to unknown when nil. ([#1188](https://github.com/hashicorp/terraform-provider-vsphere/pull/1188)) +- `resource/virtual_machine`: Skip SCSI controller check when empty. ([#1179](https://github.com/hashicorp/terraform-provider-vsphere/pull/1179)) +- `resource/virtual_machine`: Make storage_policy_id computed to prevent flapping when unset. ([#1185](https://github.com/hashicorp/terraform-provider-vsphere/pull/1185)) +- `resource/virtual_machine`: Ignore nil objects in host network on read. ([#1186](https://github.com/hashicorp/terraform-provider-vsphere/pull/1186)) +- `resource/virtual_machine`: Keep progress channel open when deploying an OVF. ([#1187](https://github.com/hashicorp/terraform-provider-vsphere/pull/1187)) +- `resource/virtual_machine`: Set SCSI controller type to unknown when nil. ([#1188](https://github.com/hashicorp/terraform-provider-vsphere/pull/1188)) IMPROVEMENTS: -* `resource/content_library_item`: Add local upload, OVA, and vm-template +- `resource/content_library_item`: Add local upload, OVA, and vm-template sources. ([#1196](https://github.com/hashicorp/terraform-provider-vsphere/pull/1196)) -* `resource/content_library`: Subscription and publication support. ([#1197](https://github.com/hashicorp/terraform-provider-vsphere/pull/1197)) -* `resource/virtual_machine`: Content library vm-template, disk type, and vApp property +- `resource/content_library`: Subscription and publication support. ([#1197](https://github.com/hashicorp/terraform-provider-vsphere/pull/1197)) +- `resource/virtual_machine`: Content library vm-template, disk type, and vApp property support. ([#1198](https://github.com/hashicorp/terraform-provider-vsphere/pull/1198)) ## 1.23.0 (August 21, 2020) BUG Fixed: -* `resource/vnic`: Fix missing fields on vnic import. ([#1162](https://github.com/hashicorp/terraform-provider-vsphere/pull/1162)) -* `resource/virtual_machine`: Ignore thin_provisioned and eagerly_scrub during DiskPostCloneOperation. ([#1161](https://github.com/hashicorp/terraform-provider-vsphere/pull/1161)) -* `resource/virtual_machine`: Fix SetHardwareOptions to fetch the hardware version from QueryConfigOption. ([#1159](https://github.com/hashicorp/terraform-provider-vsphere/pull/1159)) +- `resource/vnic`: Fix missing fields on vnic import. ([#1162](https://github.com/hashicorp/terraform-provider-vsphere/pull/1162)) +- `resource/virtual_machine`: Ignore thin_provisioned and eagerly_scrub during DiskPostCloneOperation. ([#1161](https://github.com/hashicorp/terraform-provider-vsphere/pull/1161)) +- `resource/virtual_machine`: Fix SetHardwareOptions to fetch the hardware version from QueryConfigOption. ([#1159](https://github.com/hashicorp/terraform-provider-vsphere/pull/1159)) IMPROVEMENTS: -* `resource/virtual_machine`: Allow performing a linked-clone from a template. ([#1158](https://github.com/hashicorp/terraform-provider-vsphere/pull/1158)) -* `datasource/virtual_machine`: Merge the virtual machine configuration schema. ([#1157](https://github.com/hashicorp/terraform-provider-vsphere/pull/1157)) +- `resource/virtual_machine`: Allow performing a linked-clone from a template. ([#1158](https://github.com/hashicorp/terraform-provider-vsphere/pull/1158)) +- `datasource/virtual_machine`: Merge the virtual machine configuration schema. ([#1157](https://github.com/hashicorp/terraform-provider-vsphere/pull/1157)) ## 1.22.0 (August 07, 2020) FEATURES: -* `resource/compute_cluster`: Basic vSAN support on compute clusters. ([#1151](https://github.com/hashicorp/terraform-provider-vsphere/pull/1151)) -* `resource/role`: Resource and data source to create and manage vSphere roles. ([#1144](https://github.com/hashicorp/terraform-provider-vsphere/pull/1144)) -* `resource/entity_permission`: Resource to create and manage vSphere permissions. ([#1144](https://github.com/hashicorp/terraform-provider-vsphere/pull/1144)) -* `datasource/entity_permission`: Data source to acquire ESXi host thumbprints . ([#1142](https://github.com/hashicorp/terraform-provider-vsphere/pull/1142)) +- `resource/compute_cluster`: Basic vSAN support on compute clusters. ([#1151](https://github.com/hashicorp/terraform-provider-vsphere/pull/1151)) +- `resource/role`: Resource and data source to create and manage vSphere roles. ([#1144](https://github.com/hashicorp/terraform-provider-vsphere/pull/1144)) +- `resource/entity_permission`: Resource to create and manage vSphere permissions. ([#1144](https://github.com/hashicorp/terraform-provider-vsphere/pull/1144)) +- `datasource/entity_permission`: Data source to acquire ESXi host thumbprints . ([#1142](https://github.com/hashicorp/terraform-provider-vsphere/pull/1142)) ## 1.21.1 (July 20, 2020) BUG Fixed: -* `resource/virtual_machine`: Set guest_id before customization. ([#1139](https://github.com/hashicorp/terraform-provider-vsphere/pull/1139)) +- `resource/virtual_machine`: Set guest_id before customization. ([#1139](https://github.com/hashicorp/terraform-provider-vsphere/pull/1139)) ## 1.21.0 (June 30, 2020) FEATURES: -* `resource/virtual_machine`: Support for SATA and IDE disks. ([#1118](https://github.com/hashicorp/terraform-provider-vsphere/pull/1118)) +- `resource/virtual_machine`: Support for SATA and IDE disks. ([#1118](https://github.com/hashicorp/terraform-provider-vsphere/pull/1118)) ## 1.20.0 (June 23, 2020) FEATURES: -* `resource/virtual_machine`: Add support for OVA deployment. ([#1105](https://github.com/hashicorp/terraform-provider-vsphere/pull/1105)) +- `resource/virtual_machine`: Add support for OVA deployment. ([#1105](https://github.com/hashicorp/terraform-provider-vsphere/pull/1105)) BUG Fixed: -* `resource/virtual_machine`: Delete disks on destroy when deployed from OVA/OVF. ([#1106](https://github.com/hashicorp/terraform-provider-vsphere/pull/1106)) -* `resource/virtual_machine`: Skip PCI passthrough operations if there are no changes. ([#1112](https://github.com/hashicorp/terraform-provider-vsphere/pull/1112)) +- `resource/virtual_machine`: Delete disks on destroy when deployed from OVA/OVF. ([#1106](https://github.com/hashicorp/terraform-provider-vsphere/pull/1106)) +- `resource/virtual_machine`: Skip PCI passthrough operations if there are no changes. ([#1112](https://github.com/hashicorp/terraform-provider-vsphere/pull/1112)) ## 1.19.0 (June 16, 2020) FEATURES: -* `datasource/dynamic`: Data source which can be used to match any tagged managed object. ([#1103](https://github.com/hashicorp/terraform-provider-vsphere/pull/1103)) -* `resource/virtual_machine_storage_policy_profile`: A resource for tag based storage placement. +- `datasource/dynamic`: Data source which can be used to match any tagged managed object. ([#1103](https://github.com/hashicorp/terraform-provider-vsphere/pull/1103)) +- `resource/virtual_machine_storage_policy_profile`: A resource for tag based storage placement. policies management. ([#1094](https://github.com/hashicorp/terraform-provider-vsphere/pull/1094)) -* `resource/virtual_machine`: Add support for PCI passthrough devices on virtual +- `resource/virtual_machine`: Add support for PCI passthrough devices on virtual machines. ([#1099](https://github.com/hashicorp/terraform-provider-vsphere/pull/1099)) -* `datasource/host_pci_device`: Data source which will locate the address of a PCI +- `datasource/host_pci_device`: Data source which will locate the address of a PCI device on a host. ([#1099](https://github.com/hashicorp/terraform-provider-vsphere/pull/1099)) ## 1.18.3 (June 01, 2020) IMPROVEMENTS: -* `resource/custom_attribute`: Fix id in error message when category is +- `resource/custom_attribute`: Fix id in error message when category is missing. ([#1088](https://github.com/hashicorp/terraform-provider-vsphere/pull/1088)) -* `resource/virtual_machine`: Add vApp properties with OVF deployment. ([#1082](https://github.com/hashicorp/terraform-provider-vsphere/pull/1082)) +- `resource/virtual_machine`: Add vApp properties with OVF deployment. ([#1082](https://github.com/hashicorp/terraform-provider-vsphere/pull/1082)) ## 1.18.2 (May 22, 2020) IMPROVEMENTS: -* `resource/host` & `resource/compute_cluster`: Add arguments for specifying +- `resource/host` & `resource/compute_cluster`: Add arguments for specifying if cluster management should be handled in `host` or `compute_cluster` resource. ([#1085](https://github.com/hashicorp/terraform-provider-vsphere/pull/1085)) -* `resource/virtual_machine`: Handle OVF argument validation during VM +- `resource/virtual_machine`: Handle OVF argument validation during VM creation. ([#1084](https://github.com/hashicorp/terraform-provider-vsphere/pull/1084)) -* `resource/host`: Disconnect rather than entering maintenance mode when +- `resource/host`: Disconnect rather than entering maintenance mode when deleting. ([#1083](https://github.com/hashicorp/terraform-provider-vsphere/pull/1083)) ## 1.18.1 (May 12, 2020) BUG Fixed: -* `resource/virtual_machine`: Skip unexpected NIC entries. ([#1067](https://github.com/hashicorp/terraform-provider-vsphere/pull/1067)) -* Respect `session_persistence` for REST sessions. ([#1077](https://github.com/hashicorp/terraform-provider-vsphere/pull/1077)) +- `resource/virtual_machine`: Skip unexpected NIC entries. ([#1067](https://github.com/hashicorp/terraform-provider-vsphere/pull/1067)) +- Respect `session_persistence` for REST sessions. ([#1077](https://github.com/hashicorp/terraform-provider-vsphere/pull/1077)) ## 1.18.0 (May 04, 2020) FEATURES: -* `resource/virtual_machine`: Allow users to deploy OVF templates from both +- `resource/virtual_machine`: Allow users to deploy OVF templates from both from local system and remote URL. ([#1052](https://github.com/hashicorp/terraform-provider-vsphere/pull/1052)) ## 1.17.4 (April 29, 2020) IMPROVEMENTS: -* `resource/virtual_machine`: Mark `product_key` as sensitive. ([#1045](https://github.com/hashicorp/terraform-provider-vsphere/pull/1045)) -* `resource/virtual_machine`: Increase max `hardware_version` for vSphere v7.0. ([#1056](https://github.com/hashicorp/terraform-provider-vsphere/pull/1056)) +- `resource/virtual_machine`: Mark `product_key` as sensitive. ([#1045](https://github.com/hashicorp/terraform-provider-vsphere/pull/1045)) +- `resource/virtual_machine`: Increase max `hardware_version` for vSphere v7.0. ([#1056](https://github.com/hashicorp/terraform-provider-vsphere/pull/1056)) BUG Fixed: -* `resource/virtual_machine`: Fix to disk bus sorting. ([#1039](https://github.com/hashicorp/terraform-provider-vsphere/pull/1039)) -* `resource/virtual_machine`: Only include `hardware_version` in CreateSpecs. ([#1055](https://github.com/hashicorp/terraform-provider-vsphere/pull/1055)) +- `resource/virtual_machine`: Fix to disk bus sorting. ([#1039](https://github.com/hashicorp/terraform-provider-vsphere/pull/1039)) +- `resource/virtual_machine`: Only include `hardware_version` in CreateSpecs. ([#1055](https://github.com/hashicorp/terraform-provider-vsphere/pull/1055)) ## 1.17.3 (April 22, 2020) IMPROVEMENTS: -* Use built in session persistence in `vmware/govmomi`. ([#1050](https://github.com/hashicorp/terraform-provider-vsphere/pull/1050)) +- Use built in session persistence in `vmware/govmomi`. ([#1050](https://github.com/hashicorp/terraform-provider-vsphere/pull/1050)) ## 1.17.2 (April 13, 2020) IMPROVEMENTS: -* `resource/virtual_disk`: Support VMDK files. ([#987](https://github.com/hashicorp/terraform-provider-vsphere/pull/987)) +- `resource/virtual_disk`: Support VMDK files. ([#987](https://github.com/hashicorp/terraform-provider-vsphere/pull/987)) BUG Fixed: -* `resource/virtual_machine`: Fix disk controller sorting. ([#1032](https://github.com/hashicorp/terraform-provider-vsphere/pull/1032)) +- `resource/virtual_machine`: Fix disk controller sorting. ([#1032](https://github.com/hashicorp/terraform-provider-vsphere/pull/1032)) ## 1.17.1 (April 07, 2020) IMPROVEMENTS: -* `resource/virtual_machine`: Add support for hardware version tracking and +- `resource/virtual_machine`: Add support for hardware version tracking and upgrading. ([#1020](https://github.com/hashicorp/terraform-provider-vsphere/pull/1020)) -* `datasource/vsphere_network`: Handle cases of network port groups with same name +- `datasource/vsphere_network`: Handle cases of network port groups with same name using `distributed_virtual_switch_uuid`. ([#1001](https://github.com/hashicorp/terraform-provider-vsphere/pull/1001)) BUG Fixed: -* `resource/virtual_machine`: Fix working with orphaned devices. ([#1005](https://github.com/hashicorp/terraform-provider-vsphere/pull/1005)) -* `resource/virtual_machine`: Ignore `guest_id` with content library. ([#1014](https://github.com/hashicorp/terraform-provider-vsphere/pull/1014)) +- `resource/virtual_machine`: Fix working with orphaned devices. ([#1005](https://github.com/hashicorp/terraform-provider-vsphere/pull/1005)) +- `resource/virtual_machine`: Ignore `guest_id` with content library. ([#1014](https://github.com/hashicorp/terraform-provider-vsphere/pull/1014)) ## 1.17.0 (March 23, 2020) FEATURES: -* **New Data Source:** `content_library` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) -* **New Data Source:** `content_library_item` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) -* **New Resource:** `content_library` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) -* **New Resource:** `content_library_item` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) +- **New Data Source:** `content_library` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) +- **New Data Source:** `content_library_item` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) +- **New Resource:** `content_library` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) +- **New Resource:** `content_library_item` ([#985](https://github.com/hashicorp/terraform-provider-vsphere/pull/985)) IMPROVEMENTS: -* `resource/virtual_machine`: Add `poweron_timeout` option for the amount of +- `resource/virtual_machine`: Add `poweron_timeout` option for the amount of time to give a VM to power on. ([#990](https://github.com/hashicorp/terraform-provider-vsphere/pull/990)) ## 1.16.2 (March 04, 2020) IMPROVEMENTS: -* `resource/virtual_machine`: Optimize OS family query. ([#959](https://github.com/hashicorp/terraform-provider-vsphere/pull/959)) -* Migrate provider to Terraform plugin SDK. ([#982](https://github.com/hashicorp/terraform-provider-vsphere/pull/982)) +- `resource/virtual_machine`: Optimize OS family query. ([#959](https://github.com/hashicorp/terraform-provider-vsphere/pull/959)) +- Migrate provider to Terraform plugin SDK. ([#982](https://github.com/hashicorp/terraform-provider-vsphere/pull/982)) ## 1.16.1 (February 06, 2020) BUG Fixed: -* `resource/virtual_machine`: Set `storage_policy_id` based off of VM rather +- `resource/virtual_machine`: Set `storage_policy_id` based off of VM rather than template. ([#970](https://github.com/hashicorp/terraform-provider-vsphere/pull/970)) ## 1.16.0 (February 04, 2020) FEATURES: -* **New Data Source:** `storage_policy` ([#881](https://github.com/hashicorp/terraform-provider-vsphere/pull/881)) +- **New Data Source:** `storage_policy` ([#881](https://github.com/hashicorp/terraform-provider-vsphere/pull/881)) IMPROVEMENTS: -* Switch to `vmware/govmomi` REST client ([#955](https://github.com/hashicorp/terraform-provider-vsphere/pull/955)) -* Add storage policy to `virtual_machine` resource. ** Requires `profile-driven storage` privilege on vCenter Server for the Terraform provider user. ([#881](https://github.com/hashicorp/terraform-provider-vsphere/pull/881)) +- Switch to `vmware/govmomi` REST client ([#955](https://github.com/hashicorp/terraform-provider-vsphere/pull/955)) +- Add storage policy to `virtual_machine` resource. \*\* Requires `profile-driven storage` privilege on vCenter Server for the Terraform provider user. ([#881](https://github.com/hashicorp/terraform-provider-vsphere/pull/881)) ## 1.15.0 (January 23, 2020) IMPROVEMENTS: -* `resource/virtual_machine`: Do not throw error when disk path is not known yet. ([#944](https://github.com/hashicorp/terraform-provider-vsphere/pull/944)) +- `resource/virtual_machine`: Do not throw error when disk path is not known yet. ([#944](https://github.com/hashicorp/terraform-provider-vsphere/pull/944)) BUG Fixed: -* `resource/virtual_machine`: Do not set `datastoreID` in `RelocateSpec` when `datastore_cluster`` is set. ([#933](https://github.com/hashicorp/terraform-provider-vsphere/pull/933)) -* `resource/vapp_container`: Fix handling of child vApp containers. ([#941](https://github.com/hashicorp/terraform-provider-vsphere/pull/941)) -* `resource/virtual_disk`: Enforce .vmdk suffix on `vmdk_path`. ([#942](https://github.com/hashicorp/terraform-provider-vsphere/pull/942)) +- `resource/virtual_machine`: Do not set `datastoreID` in `RelocateSpec` when `datastore_cluster`` is set. ([#933](https://github.com/hashicorp/terraform-provider-vsphere/pull/933)) +- `resource/vapp_container`: Fix handling of child vApp containers. ([#941](https://github.com/hashicorp/terraform-provider-vsphere/pull/941)) +- `resource/virtual_disk`: Enforce .vmdk suffix on `vmdk_path`. ([#942](https://github.com/hashicorp/terraform-provider-vsphere/pull/942)) ## 1.14.0 (December 18, 2019) IMPROVEMENTS -* `resource/host` Add details to error messages. ([#850](https://github.com/hashicorp/terraform-provider-vsphere/pull/850)) -* `resource/virtual_machine`: Pick default datastore for extra disks. ([#897](https://github.com/hashicorp/terraform-provider-vsphere/pull/897)) -* `resource/virtual_machine`: Extend `ignored_guest_ips` to support CIDR. ([#841](https://github.com/hashicorp/terraform-provider-vsphere/pull/841)) +- `resource/host` Add details to error messages. ([#850](https://github.com/hashicorp/terraform-provider-vsphere/pull/850)) +- `resource/virtual_machine`: Pick default datastore for extra disks. ([#897](https://github.com/hashicorp/terraform-provider-vsphere/pull/897)) +- `resource/virtual_machine`: Extend `ignored_guest_ips` to support CIDR. ([#841](https://github.com/hashicorp/terraform-provider-vsphere/pull/841)) FEATURES: -* **New Resource:** `vsphere_vnic` ([#876](https://github.com/hashicorp/terraform-provider-vsphere/pull/876)) +- **New Resource:** `vsphere_vnic` ([#876](https://github.com/hashicorp/terraform-provider-vsphere/pull/876)) BUG Fixed: -* `resource/virtual_machine`: Allow blank networkID in order to support cloning - into clusters that do not include the source network. ([#787](https://github.com/hashicorp/terraform-provider-vsphere/pull/787)) -* `resource/host`: Properly handle situation where NIC teaming policy is `nil`. ([#889](https://github.com/hashicorp/terraform-provider-vsphere/pull/889)) -* Limit scope when listing network interfaces. ([#840](https://github.com/hashicorp/terraform-provider-vsphere/pull/840)) -* `resource/compute_cluster`: Set HA Admission Control Failure to `off` before deleting. ([#891](https://github.com/hashicorp/terraform-provider-vsphere/pull/891)) -* `resource/virtual_machine_snapshot`: Fix typo in error condition. ([#906](https://github.com/hashicorp/terraform-provider-vsphere/pull/906)) -* `tags`: Return matched tag rather than last tag in list. ([#910](https://github.com/hashicorp/terraform-provider-vsphere/pull/910)) -* `resource/virtual_machine`: Unmount ISO when switching CDROM backends. ([#920](https://github.com/hashicorp/terraform-provider-vsphere/pull/920)) -* `resource/virtual_machine`: Migrate VM when moving to different root resource pool. ([#931](https://github.com/hashicorp/terraform-provider-vsphere/pull/931)) +- `resource/virtual_machine`: Allow blank networkID in order to support cloning + into clusters that do not include the source network. ([#787](https://github.com/hashicorp/terraform-provider-vsphere/pull/787)) +- `resource/host`: Properly handle situation where NIC teaming policy is `nil`. ([#889](https://github.com/hashicorp/terraform-provider-vsphere/pull/889)) +- Limit scope when listing network interfaces. ([#840](https://github.com/hashicorp/terraform-provider-vsphere/pull/840)) +- `resource/compute_cluster`: Set HA Admission Control Failure to `off` before deleting. ([#891](https://github.com/hashicorp/terraform-provider-vsphere/pull/891)) +- `resource/virtual_machine_snapshot`: Fix typo in error condition. ([#906](https://github.com/hashicorp/terraform-provider-vsphere/pull/906)) +- `tags`: Return matched tag rather than last tag in list. ([#910](https://github.com/hashicorp/terraform-provider-vsphere/pull/910)) +- `resource/virtual_machine`: Unmount ISO when switching CDROM backends. ([#920](https://github.com/hashicorp/terraform-provider-vsphere/pull/920)) +- `resource/virtual_machine`: Migrate VM when moving to different root resource pool. ([#931](https://github.com/hashicorp/terraform-provider-vsphere/pull/931)) ## 1.13.0 (October 01, 2019) IMPROVEMENTS: -* Add `vim_keep_alive` which sets a keepalive interval for VIM session. ([#792](https://github.com/hashicorp/terraform-provider-vsphere/pull/792)) -* `resource/virtual_machine`: Mark `windows_sysprep_text` as sensitive. ([#802](https://github.com/hashicorp/terraform-provider-vsphere/pull/802)) +- Add `vim_keep_alive` which sets a keepalive interval for VIM session. ([#792](https://github.com/hashicorp/terraform-provider-vsphere/pull/792)) +- `resource/virtual_machine`: Mark `windows_sysprep_text` as sensitive. ([#802](https://github.com/hashicorp/terraform-provider-vsphere/pull/802)) FEATURES: -* **New Resource:** `vsphere_host` ([#836](https://github.com/hashicorp/terraform-provider-vsphere/pull/836)) +- **New Resource:** `vsphere_host` ([#836](https://github.com/hashicorp/terraform-provider-vsphere/pull/836)) BUG Fixed: -* `resource/virtual_machine`: Change the way we detect if a VM is in a vApp. ([#825](https://github.com/hashicorp/terraform-provider-vsphere/pull/825)) -* Delete tags and tag_categories when they are removed. ([#801](https://github.com/hashicorp/terraform-provider-vsphere/pull/801)) +- `resource/virtual_machine`: Change the way we detect if a VM is in a vApp. ([#825](https://github.com/hashicorp/terraform-provider-vsphere/pull/825)) +- Delete tags and tag_categories when they are removed. ([#801](https://github.com/hashicorp/terraform-provider-vsphere/pull/801)) ## 1.12.0 (June 19, 2019) IMPROVEMENTS: -* `resource/virtual_machine`: Allow cloning of powered on virtual machines. ([#785](https://github.com/hashicorp/terraform-provider-vsphere/pull/785)) -* Add keep alive timer for VIM sessions. ([#792](https://github.com/hashicorp/terraform-provider-vsphere/pull/792)) +- `resource/virtual_machine`: Allow cloning of powered on virtual machines. ([#785](https://github.com/hashicorp/terraform-provider-vsphere/pull/785)) +- Add keep alive timer for VIM sessions. ([#792](https://github.com/hashicorp/terraform-provider-vsphere/pull/792)) BUG Fixed: -* `resource/virtual_machine`: Ignore validation when interpolation is not +- `resource/virtual_machine`: Ignore validation when interpolation is not available. ([#784](https://github.com/hashicorp/terraform-provider-vsphere/pull/784)) -* `resource/virtual_machine`: Only set vApp properties that are +- `resource/virtual_machine`: Only set vApp properties that are UserConfigurable. ([#751](https://github.com/hashicorp/terraform-provider-vsphere/pull/751)) -* `resource/virtual_machine`: Set `network_id` to empty string when cloning a +- `resource/virtual_machine`: Set `network_id` to empty string when cloning a `virtual_machine` to a cluster that is not part of source DVS. ([#787](https://github.com/hashicorp/terraform-provider-vsphere/pull/787)) ## 1.11.0 (May 09, 2019) IMPROVEMENTS: -* Add support for importing datacenters. ([#737](https://github.com/hashicorp/terraform-provider-vsphere/pull/737)) -* Document max character limit on `run_once_command_list`. ([#748](https://github.com/hashicorp/terraform-provider-vsphere/pull/748)) -* Add missing ENV variable checks for acceptance tests. ([#758](https://github.com/hashicorp/terraform-provider-vsphere/pull/758)) -* Switch to Terraform 0.12 SDK which is required for Terraform 0.12 support. +- Add support for importing datacenters. ([#737](https://github.com/hashicorp/terraform-provider-vsphere/pull/737)) +- Document max character limit on `run_once_command_list`. ([#748](https://github.com/hashicorp/terraform-provider-vsphere/pull/748)) +- Add missing ENV variable checks for acceptance tests. ([#758](https://github.com/hashicorp/terraform-provider-vsphere/pull/758)) +- Switch to Terraform 0.12 SDK which is required for Terraform 0.12 support. This is the first release to use the 0.12 SDK required for Terraform 0.12 support. Some provider behavior may have changed as a result of changes made by the new SDK version. ([#760](https://github.com/hashicorp/terraform-provider-vsphere/pull/760)) @@ -853,122 +860,122 @@ IMPROVEMENTS: FEATURES: -* **New Data Source:** `vsphere_folder` ([#709](https://github.com/hashicorp/terraform-provider-vsphere/pull/709)) +- **New Data Source:** `vsphere_folder` ([#709](https://github.com/hashicorp/terraform-provider-vsphere/pull/709)) IMPROVEMENTS: -* Update tf-vsphere-devrc.mk.example to include all environment variables ([#707](https://github.com/hashicorp/terraform-provider-vsphere/pull/707)) -* Add Go Modules support ([#705](https://github.com/hashicorp/terraform-provider-vsphere/pull/705)) -* Fix assorted typos in documentation -* `resource/virtual_machine`: Add support for using guest.ipAddress for older +- Update tf-vsphere-devrc.mk.example to include all environment variables ([#707](https://github.com/hashicorp/terraform-provider-vsphere/pull/707)) +- Add Go Modules support ([#705](https://github.com/hashicorp/terraform-provider-vsphere/pull/705)) +- Fix assorted typos in documentation +- `resource/virtual_machine`: Add support for using guest.ipAddress for older versions of VM Tools. ([#684](https://github.com/hashicorp/terraform-provider-vsphere/issues/684)) BUG Fixed: -* `resource/virtual_machine`: Do not set optional `ignored_guest_ips` on read ([#726](https://github.com/hashicorp/terraform-provider-vsphere/pull/726)) +- `resource/virtual_machine`: Do not set optional `ignored_guest_ips` on read ([#726](https://github.com/hashicorp/terraform-provider-vsphere/pull/726)) ## 1.9.1 (January 10, 2019) IMPROVEMENTS: -* `resource/virtual_machine`: Increase logging after old config expansion during +- `resource/virtual_machine`: Increase logging after old config expansion during diff checking ([#661](https://github.com/hashicorp/terraform-provider-vsphere/issues/661)) -* `resource/virtual_machine`: Unlock `memory_reservation` from maximum when +- `resource/virtual_machine`: Unlock `memory_reservation` from maximum when `memory_reservation` is not equal to `memory`. ([#680](https://github.com/hashicorp/terraform-provider-vsphere/issues/680)) BUG Fixed: -* `resource/virtual_machine`: Return zero instead of nil for memory allocation +- `resource/virtual_machine`: Return zero instead of nil for memory allocation and reservation values ([#655](https://github.com/hashicorp/terraform-provider-vsphere/issues/655)) -* Ignore nil interfaces when converting a slice of interfaces into a slice +- Ignore nil interfaces when converting a slice of interfaces into a slice of strings. ([#666](https://github.com/hashicorp/terraform-provider-vsphere/issues/666)) -* `resource/virtual_machine`: Use schema for `properties` elem definition in `vapp` schema. ([#678](https://github.com/hashicorp/terraform-provider-vsphere/issues/678)) +- `resource/virtual_machine`: Use schema for `properties` elem definition in `vapp` schema. ([#678](https://github.com/hashicorp/terraform-provider-vsphere/issues/678)) ## 1.9.0 (October 31, 2018) FEATURES: -* **New Resource:** `vsphere_vapp_entity` ([#640](https://github.com/hashicorp/terraform-provider-vsphere/issues/640)) -* `resource/host_virtual_switch`: Add support for importing ([#625](https://github.com/hashicorp/terraform-provider-vsphere/issues/625)) +- **New Resource:** `vsphere_vapp_entity` ([#640](https://github.com/hashicorp/terraform-provider-vsphere/issues/640)) +- `resource/host_virtual_switch`: Add support for importing ([#625](https://github.com/hashicorp/terraform-provider-vsphere/issues/625)) IMPROVEMENTS: -* `resource/virtual_disk`: Update existing and add additional tests ([#635](https://github.com/hashicorp/terraform-provider-vsphere/issues/635)) +- `resource/virtual_disk`: Update existing and add additional tests ([#635](https://github.com/hashicorp/terraform-provider-vsphere/issues/635)) BUG Fixed: -* `resource/virtual_disk`: Ignore "already exists" errors when creating +- `resource/virtual_disk`: Ignore "already exists" errors when creating directories on vSAN. ([#639](https://github.com/hashicorp/terraform-provider-vsphere/issues/639)) -* Find tag changes when first tag is changed. ([#632](https://github.com/hashicorp/terraform-provider-vsphere/issues/632)) -* `resource/virtual_machine`: Do not ForceNew when clone `timeout` is changed. ([#631](https://github.com/hashicorp/terraform-provider-vsphere/issues/631)) -* `resource/virtual_machine_snapshot`: Raise error on snapshot create task +- Find tag changes when first tag is changed. ([#632](https://github.com/hashicorp/terraform-provider-vsphere/issues/632)) +- `resource/virtual_machine`: Do not ForceNew when clone `timeout` is changed. ([#631](https://github.com/hashicorp/terraform-provider-vsphere/issues/631)) +- `resource/virtual_machine_snapshot`: Raise error on snapshot create task error. ([#628](https://github.com/hashicorp/terraform-provider-vsphere/pull/628)) ## 1.8.1 (September 11, 2018) IMPROVEMENTS: -* `datasource/vapp_container`: Re-add `data_source_vapp_container`. ([#617](https://github.com/hashicorp/terraform-provider-vsphere/issues/617)) +- `datasource/vapp_container`: Re-add `data_source_vapp_container`. ([#617](https://github.com/hashicorp/terraform-provider-vsphere/issues/617)) ## 1.8.0 (September 10, 2018) FEATURES: -* **New Data Source:** `vsphere_vapp_container` ([#610](https://github.com/hashicorp/terraform-provider-vsphere/issues/610)) +- **New Data Source:** `vsphere_vapp_container` ([#610](https://github.com/hashicorp/terraform-provider-vsphere/issues/610)) BUG Fixed: -* `resource/virtual_machine`: Only relocate after create if `host_system_id` is +- `resource/virtual_machine`: Only relocate after create if `host_system_id` is set and does not match host the VM currently resides on. ([#609](https://github.com/hashicorp/terraform-provider-vsphere/issues/609)) -* `resource/compute_cluster`: Return empty policy instead of trying to read +- `resource/compute_cluster`: Return empty policy instead of trying to read `nil` variable when `ha_admission_control_policy` is set to `disabled`. ([#611](https://github.com/hashicorp/terraform-provider-vsphere/issues/611)) -* `resource/virtual_machine`: Skip reading latency sensitivity parameters when +- `resource/virtual_machine`: Skip reading latency sensitivity parameters when LatencySensitivity is `nil`. ([#612](https://github.com/hashicorp/terraform-provider-vsphere/issues/612)) -* `resource/compute_cluster`: Unset ID when the resource is not found. ([#613](https://github.com/hashicorp/terraform-provider-vsphere/issues/613)) -* `resource/virtual_machine`: Skip OS specific customization checks when +- `resource/compute_cluster`: Unset ID when the resource is not found. ([#613](https://github.com/hashicorp/terraform-provider-vsphere/issues/613)) +- `resource/virtual_machine`: Skip OS specific customization checks when `resource_pool_id` is not set. ([#614](https://github.com/hashicorp/terraform-provider-vsphere/issues/614)) ## 1.7.0 (August 24, 2018) FEATURES: -* **New Resource:** `vsphere_vapp_container` ([#566](https://github.com/hashicorp/terraform-provider-vsphere/issues/566)) -* `resource/vsphere_virtual_machine`: Added support for bus sharing on SCSI +- **New Resource:** `vsphere_vapp_container` ([#566](https://github.com/hashicorp/terraform-provider-vsphere/issues/566)) +- `resource/vsphere_virtual_machine`: Added support for bus sharing on SCSI adapters. ([#574](https://github.com/hashicorp/terraform-provider-vsphere/issues/574)) IMPROVEMENTS: -* `resource/vsphere_datacenter`: Added `moid` to expose the managed object ID +- `resource/vsphere_datacenter`: Added `moid` to expose the managed object ID because the datacenter's name is currently being used as the `id`. ([#575](https://github.com/hashicorp/terraform-provider-vsphere/issues/575)) -* `resource/vsphere_virtual_machine`: Check if relocation is necessary after +- `resource/vsphere_virtual_machine`: Check if relocation is necessary after creation. ([#583](https://github.com/hashicorp/terraform-provider-vsphere/issues/583)) BUG Fixed: -* `resource/vsphere_virtual_machine`: The resource no longer attempts to set +- `resource/vsphere_virtual_machine`: The resource no longer attempts to set ResourceAllocation on virtual ethernet cards when the vSphere version is under 6.0. ([#579](https://github.com/hashicorp/terraform-provider-vsphere/issues/579)) -* `resource/vsphere_resource_pool`: The read function is now called at the end +- `resource/vsphere_resource_pool`: The read function is now called at the end of resource creation. ([#560](https://github.com/hashicorp/terraform-provider-vsphere/issues/560)) -* Updated govmomi to v0.18. ([#600](https://github.com/hashicorp/terraform-provider-vsphere/issues/600)) +- Updated govmomi to v0.18. ([#600](https://github.com/hashicorp/terraform-provider-vsphere/issues/600)) ## 1.6.0 (May 31, 2018) FEATURES: -* **New Resource:** `vsphere_resource_pool` ([#535](https://github.com/hashicorp/terraform-provider-vsphere/issues/535)) +- **New Resource:** `vsphere_resource_pool` ([#535](https://github.com/hashicorp/terraform-provider-vsphere/issues/535)) IMPROVEMENTS: -* `datasource/vsphere_host`: Now exports the `resource_pool_id` attribute, which +- `datasource/vsphere_host`: Now exports the `resource_pool_id` attribute, which points to the root resource pool of either the standalone host, or the cluster's root resource pool in the event the host is a member of a cluster. ([#535](https://github.com/hashicorp/terraform-provider-vsphere/issues/535)) BUG Fixed: -* `resource/vsphere_virtual_machine`: Scenarios that force a new resource will +- `resource/vsphere_virtual_machine`: Scenarios that force a new resource will no longer create diff mismatches when external disks are attached with the `attach` parameter. ([#528](https://github.com/hashicorp/terraform-provider-vsphere/issues/528)) @@ -976,25 +983,25 @@ BUG Fixed: FEATURES: -* **New Data Source:** `vsphere_compute_cluster` ([#492](https://github.com/hashicorp/terraform-provider-vsphere/issues/492)) -* **New Resource:** `vsphere_compute_cluster` ([#487](https://github.com/hashicorp/terraform-provider-vsphere/issues/487)) -* **New Resource:** `vsphere_drs_vm_override` ([#498](https://github.com/hashicorp/terraform-provider-vsphere/issues/498)) -* **New Resource:** `vsphere_ha_vm_override` ([#501](https://github.com/hashicorp/terraform-provider-vsphere/issues/501)) -* **New Resource:** `vsphere_dpm_host_override` ([#503](https://github.com/hashicorp/terraform-provider-vsphere/issues/503)) -* **New Resource:** `vsphere_compute_cluster_vm_group` ([#506](https://github.com/hashicorp/terraform-provider-vsphere/issues/506)) -* **New Resource:** `vsphere_compute_cluster_host_group` ([#508](https://github.com/hashicorp/terraform-provider-vsphere/issues/508)) -* **New Resource:** `vsphere_compute_cluster_vm_host_rule` ([#511](https://github.com/hashicorp/terraform-provider-vsphere/issues/511)) -* **New Resource:** `vsphere_compute_cluster_vm_dependency_rule` ([#513](https://github.com/hashicorp/terraform-provider-vsphere/issues/513)) -* **New Resource:** `vsphere_compute_cluster_vm_affinity_rule` ([#515](https://github.com/hashicorp/terraform-provider-vsphere/issues/515)) -* **New Resource:** `vsphere_compute_cluster_vm_anti_affinity_rule` ([#515](https://github.com/hashicorp/terraform-provider-vsphere/issues/515)) -* **New Resource:** `vsphere_datastore_cluster_vm_anti_affinity_rule` ([#520](https://github.com/hashicorp/terraform-provider-vsphere/issues/520)) +- **New Data Source:** `vsphere_compute_cluster` ([#492](https://github.com/hashicorp/terraform-provider-vsphere/issues/492)) +- **New Resource:** `vsphere_compute_cluster` ([#487](https://github.com/hashicorp/terraform-provider-vsphere/issues/487)) +- **New Resource:** `vsphere_drs_vm_override` ([#498](https://github.com/hashicorp/terraform-provider-vsphere/issues/498)) +- **New Resource:** `vsphere_ha_vm_override` ([#501](https://github.com/hashicorp/terraform-provider-vsphere/issues/501)) +- **New Resource:** `vsphere_dpm_host_override` ([#503](https://github.com/hashicorp/terraform-provider-vsphere/issues/503)) +- **New Resource:** `vsphere_compute_cluster_vm_group` ([#506](https://github.com/hashicorp/terraform-provider-vsphere/issues/506)) +- **New Resource:** `vsphere_compute_cluster_host_group` ([#508](https://github.com/hashicorp/terraform-provider-vsphere/issues/508)) +- **New Resource:** `vsphere_compute_cluster_vm_host_rule` ([#511](https://github.com/hashicorp/terraform-provider-vsphere/issues/511)) +- **New Resource:** `vsphere_compute_cluster_vm_dependency_rule` ([#513](https://github.com/hashicorp/terraform-provider-vsphere/issues/513)) +- **New Resource:** `vsphere_compute_cluster_vm_affinity_rule` ([#515](https://github.com/hashicorp/terraform-provider-vsphere/issues/515)) +- **New Resource:** `vsphere_compute_cluster_vm_anti_affinity_rule` ([#515](https://github.com/hashicorp/terraform-provider-vsphere/issues/515)) +- **New Resource:** `vsphere_datastore_cluster_vm_anti_affinity_rule` ([#520](https://github.com/hashicorp/terraform-provider-vsphere/issues/520)) IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: Exposed `latency_sensitivity`, which can +- `resource/vsphere_virtual_machine`: Exposed `latency_sensitivity`, which can be used to adjust the scheduling priority of the virtual machine for low-latency applications. ([#490](https://github.com/hashicorp/terraform-provider-vsphere/issues/490)) -* `resource/vsphere_virtual_disk`: Introduced the `create_directories` setting, +- `resource/vsphere_virtual_disk`: Introduced the `create_directories` setting, which tells this resource to create any parent directories in the VMDK path. ([#512](https://github.com/hashicorp/terraform-provider-vsphere/issues/512)) @@ -1002,31 +1009,31 @@ IMPROVEMENTS: IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: Introduced the +- `resource/vsphere_virtual_machine`: Introduced the `wait_for_guest_net_routable` setting, which controls whether or not the guest network waiter waits on an address that matches the virtual machine's configured default gateway. ([#470](https://github.com/hashicorp/terraform-provider-vsphere/issues/470)) BUG Fixed: -* `resource/vsphere_virtual_machine`: The resource now correctly blocks `clone` +- `resource/vsphere_virtual_machine`: The resource now correctly blocks `clone` workflows on direct ESXi connections, where cloning is not supported. ([#476](https://github.com/hashicorp/terraform-provider-vsphere/issues/476)) -* `resource/vsphere_virtual_machine`: Corrected an issue that was preventing VMs +- `resource/vsphere_virtual_machine`: Corrected an issue that was preventing VMs from being migrated from one cluster to another. ([#474](https://github.com/hashicorp/terraform-provider-vsphere/issues/474)) -* `resource/vsphere_virtual_machine`: Corrected an issue where changing +- `resource/vsphere_virtual_machine`: Corrected an issue where changing datastore information and cloning/customization parameters (which forces a new resource) at the same time was creating a diff mismatch after destroying the old virtual machine. ([#469](https://github.com/hashicorp/terraform-provider-vsphere/issues/469)) -* `resource/vsphere_virtual_machine`: Corrected a crash that can come up from an +- `resource/vsphere_virtual_machine`: Corrected a crash that can come up from an incomplete lookup of network information during network device management. ([#456](https://github.com/hashicorp/terraform-provider-vsphere/issues/456)) -* `resource/vsphere_virtual_machine`: Corrected some issues where some +- `resource/vsphere_virtual_machine`: Corrected some issues where some post-clone configuration errors were leaving the resource half-completed and irrecoverable without direct modification of the state. ([#467](https://github.com/hashicorp/terraform-provider-vsphere/issues/467)) -* `resource/vsphere_virtual_machine`: Corrected a crash that can come up when a +- `resource/vsphere_virtual_machine`: Corrected a crash that can come up when a retrieved virtual machine has no lower-level configuration object in the API. ([#463](https://github.com/hashicorp/terraform-provider-vsphere/issues/463)) -* `resource/vsphere_virtual_machine`: Fixed an issue where disk sub-resource +- `resource/vsphere_virtual_machine`: Fixed an issue where disk sub-resource configurations were not being checked for newly created disks. ([#481](https://github.com/hashicorp/terraform-provider-vsphere/issues/481)) @@ -1034,56 +1041,56 @@ BUG Fixed: FEATURES: -* **New Resource:** `vsphere_storage_drs_vm_override` ([#450](https://github.com/hashicorp/terraform-provider-vsphere/issues/450)) -* **New Resource:** `vsphere_datastore_cluster` ([#436](https://github.com/hashicorp/terraform-provider-vsphere/issues/436)) -* **New Data Source:** `vsphere_datastore_cluster` ([#437](https://github.com/hashicorp/terraform-provider-vsphere/issues/437)) +- **New Resource:** `vsphere_storage_drs_vm_override` ([#450](https://github.com/hashicorp/terraform-provider-vsphere/issues/450)) +- **New Resource:** `vsphere_datastore_cluster` ([#436](https://github.com/hashicorp/terraform-provider-vsphere/issues/436)) +- **New Data Source:** `vsphere_datastore_cluster` ([#437](https://github.com/hashicorp/terraform-provider-vsphere/issues/437)) IMPROVEMENTS: -* The provider now has the ability to persist sessions to disk, which can help +- The provider now has the ability to persist sessions to disk, which can help when running large amounts of consecutive or concurrent Terraform operations at once. See the [provider documentation](https://www.terraform.io/docs/providers/vsphere/index.html) for more details. ([#422](https://github.com/hashicorp/terraform-provider-vsphere/issues/422)) -* `resource/vsphere_virtual_machine`: This resource now supports import of +- `resource/vsphere_virtual_machine`: This resource now supports import of resources or migrations from legacy versions of the provider (provider version 0.4.2 or earlier) into configurations that have the `clone` block specified. See [Additional requirements and notes for importing](https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#additional-requirements-and-notes-for-importing) in the resource documentation for more details. ([#460](https://github.com/hashicorp/terraform-provider-vsphere/issues/460)) -* `resource/vsphere_virtual_machine`: Now supports datastore clusters. Virtual +- `resource/vsphere_virtual_machine`: Now supports datastore clusters. Virtual machines placed in a datastore cluster will use Storage DRS recommendations for initial placement, virtual disk creation, and migration between datastore clusters. Migrations made by Storage DRS outside of Terraform will no longer create diffs when datastore clusters are in use. ([#447](https://github.com/hashicorp/terraform-provider-vsphere/issues/447)) -* `resource/vsphere_virtual_machine`: Added support for ISO transport of vApp +- `resource/vsphere_virtual_machine`: Added support for ISO transport of vApp properties. The resource should now behave better with virtual machines cloned from OVF/OVA templates that use the ISO transport to supply configuration settings. ([#381](https://github.com/hashicorp/terraform-provider-vsphere/issues/381)) -* `resource/vsphere_virtual_machine`: Added support for client mapped CDROM +- `resource/vsphere_virtual_machine`: Added support for client mapped CDROM devices. ([#421](https://github.com/hashicorp/terraform-provider-vsphere/issues/421)) -* `resource/vsphere_virtual_machine`: Destroying a VM that currently has +- `resource/vsphere_virtual_machine`: Destroying a VM that currently has external disks attached should now function correctly and not give a duplicate UUID error. ([#442](https://github.com/hashicorp/terraform-provider-vsphere/issues/442)) -* `resource/vsphere_nas_datastore`: Now supports datastore clusters. ([#439](https://github.com/hashicorp/terraform-provider-vsphere/issues/439)) -* `resource/vsphere_vmfs_datastore`: Now supports datastore clusters. ([#439](https://github.com/hashicorp/terraform-provider-vsphere/issues/439)) +- `resource/vsphere_nas_datastore`: Now supports datastore clusters. ([#439](https://github.com/hashicorp/terraform-provider-vsphere/issues/439)) +- `resource/vsphere_vmfs_datastore`: Now supports datastore clusters. ([#439](https://github.com/hashicorp/terraform-provider-vsphere/issues/439)) ## 1.3.3 (March 01, 2018) IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: The `moid` attribute has now be re-added +- `resource/vsphere_virtual_machine`: The `moid` attribute has now be re-added to the resource, exporting the managed object ID of the virtual machine. ([#390](https://github.com/hashicorp/terraform-provider-vsphere/issues/390)) BUG Fixed: -* `resource/vsphere_virtual_machine`: Fixed a crash scenario that can happen +- `resource/vsphere_virtual_machine`: Fixed a crash scenario that can happen when a virtual machine is deployed to a cluster that does not have any hosts, or under certain circumstances such an expired vCenter license. ([#414](https://github.com/hashicorp/terraform-provider-vsphere/issues/414)) -* `resource/vsphere_virtual_machine`: Corrected an issue reading disk capacity +- `resource/vsphere_virtual_machine`: Corrected an issue reading disk capacity values after a vCenter or ESXi upgrade. ([#405](https://github.com/hashicorp/terraform-provider-vsphere/issues/405)) -* `resource/vsphere_virtual_machine`: Opaque networks, such as those coming from +- `resource/vsphere_virtual_machine`: Opaque networks, such as those coming from NSX, should now be able to be correctly added as networks for virtual machines. ([#398](https://github.com/hashicorp/terraform-provider-vsphere/issues/398)) @@ -1091,7 +1098,7 @@ BUG Fixed: BUG Fixed: -* `resource/vsphere_virtual_machine`: Changed the update implemented in ([#377](https://github.com/hashicorp/terraform-provider-vsphere/issues/377)) +- `resource/vsphere_virtual_machine`: Changed the update implemented in ([#377](https://github.com/hashicorp/terraform-provider-vsphere/issues/377)) to use a local filter implementation. This corrects situations where virtual machines in inventory with orphaned or otherwise corrupt configurations were interfering with UUID searches, creating erroneous duplicate UUID errors. This @@ -1102,14 +1109,14 @@ BUG Fixed: BUG Fixed: -* `resource/vsphere_virtual_machine`: Looking up templates by their UUID now +- `resource/vsphere_virtual_machine`: Looking up templates by their UUID now functions correctly for vSphere 6.0 and earlier. ([#377](https://github.com/hashicorp/terraform-provider-vsphere/issues/377)) ## 1.3.0 (January 26, 2018) BREAKING CHANGES: -* The `vsphere_virtual_machine` resource now has a new method of identifying +- The `vsphere_virtual_machine` resource now has a new method of identifying virtual disk sub-resources, via the `label` attribute. This replaces the `name` attribute, which has now been marked as deprecated and will be removed in the next major version (2.0.0). Further to this, there is a `path` @@ -1121,61 +1128,61 @@ BREAKING CHANGES: IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: Fixed an issue where certain changes +- `resource/vsphere_virtual_machine`: Fixed an issue where certain changes happening at the same time (such as a disk resize along with a change of SCSI type) were resulting in invalid device change operations. ([#371](https://github.com/hashicorp/terraform-provider-vsphere/issues/371)) -* `resource/vsphere_virtual_machine`: Introduced the `label` argument, which +- `resource/vsphere_virtual_machine`: Introduced the `label` argument, which allows one to address a virtual disk independent of its VMDK file name and position on the SCSI bus. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Introduced the `path` argument, which +- `resource/vsphere_virtual_machine`: Introduced the `path` argument, which replaces the `name` attribute for supplying the path for externally attached disks supplied with `attach = true`, and is otherwise a computed attribute pointing to the current path of any specific virtual disk. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Introduced the `uuid` attribute, a new +- `resource/vsphere_virtual_machine`: Introduced the `uuid` attribute, a new computed attribute that allows the tracking of a disk independent of its current position on the SCSI bus. This is used in all scenarios aside from freshly-created or added virtual disks. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: The virtual disk `name` argument is now +- `resource/vsphere_virtual_machine`: The virtual disk `name` argument is now deprecated and will be removed from future releases. It no longer dictates the name of non-attached VMDK files and serves as an alias to the now-split `label` and `path` attributes. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Cloning no longer requires you to choose a +- `resource/vsphere_virtual_machine`: Cloning no longer requires you to choose a disk label (name) that matches the name of the VM. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Storage vMotion can now be performed on +- `resource/vsphere_virtual_machine`: Storage vMotion can now be performed on renamed virtual machines. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Storage vMotion no longer cares what your +- `resource/vsphere_virtual_machine`: Storage vMotion no longer cares what your disks are labeled (named), and will not block migrations based on the naming criteria added after 1.1.1. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Storage vMotion now works on linked +- `resource/vsphere_virtual_machine`: Storage vMotion now works on linked clones. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: The import restrictions for virtual disks +- `resource/vsphere_virtual_machine`: The import restrictions for virtual disks have changed, and rather than ensuring that disk `name` arguments match a certain convention, `label` is now expected to match a convention of `diskN`, where N is the disk number, ordered by the disk's position on the SCSI bus. Importing to a configuration still using `name` to address disks is no longer supported. ([#363](https://github.com/hashicorp/terraform-provider-vsphere/issues/363)) -* `resource/vsphere_virtual_machine`: Now supports setting vApp properties that +- `resource/vsphere_virtual_machine`: Now supports setting vApp properties that usually come from an OVF/OVA template or virtual appliance. ([#303](https://github.com/hashicorp/terraform-provider-vsphere/issues/303)) ## 1.2.0 (January 11, 2018) FEATURES: -* **New Resource:** `vsphere_custom_attribute` ([#229](https://github.com/hashicorp/terraform-provider-vsphere/issues/229)) -* **New Data Source:** `vsphere_custom_attribute` ([#229](https://github.com/hashicorp/terraform-provider-vsphere/issues/229)) +- **New Resource:** `vsphere_custom_attribute` ([#229](https://github.com/hashicorp/terraform-provider-vsphere/issues/229)) +- **New Data Source:** `vsphere_custom_attribute` ([#229](https://github.com/hashicorp/terraform-provider-vsphere/issues/229)) IMPROVEMENTS: -* All vSphere provider resources that are capable of doing so now support custom +- All vSphere provider resources that are capable of doing so now support custom attributes. Check the documentation of any specific resource for more details! ([#229](https://github.com/hashicorp/terraform-provider-vsphere/issues/229)) -* `resource/vsphere_virtual_machine`: The resource will now disallow a disk's +- `resource/vsphere_virtual_machine`: The resource will now disallow a disk's `name` coming from a value that is still unavailable at plan time (such as a computed value from a resource). ([#329](https://github.com/hashicorp/terraform-provider-vsphere/issues/329)) BUG Fixed: -* `resource/vsphere_virtual_machine`: Fixed an issue that was causing crashes +- `resource/vsphere_virtual_machine`: Fixed an issue that was causing crashes when working with virtual machines or templates when no network interface was occupying the first available device slot on the PCI bus. ([#344](https://github.com/hashicorp/terraform-provider-vsphere/issues/344)) @@ -1183,20 +1190,20 @@ BUG Fixed: IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: Network interface resource allocation +- `resource/vsphere_virtual_machine`: Network interface resource allocation options are now restricted to vSphere 6.0 and higher, as they are unsupported on vSphere 5.5. ([#322](https://github.com/hashicorp/terraform-provider-vsphere/issues/322)) -* `resource/vsphere_virtual_machine`: Resources that were deleted outside of +- `resource/vsphere_virtual_machine`: Resources that were deleted outside of Terraform will now be marked as gone in the state, causing them to be re-created during the next apply. ([#321](https://github.com/hashicorp/terraform-provider-vsphere/issues/321)) -* `resource/vsphere_virtual_machine`: Added some restrictions to storage vMotion +- `resource/vsphere_virtual_machine`: Added some restrictions to storage vMotion to cover some currently un-supported scenarios that were still allowed, leading to potentially dangerous situations or invalid post-application states. ([#319](https://github.com/hashicorp/terraform-provider-vsphere/issues/319)) -* `resource/vsphere_virtual_machine`: The resource now treats disks that it does +- `resource/vsphere_virtual_machine`: The resource now treats disks that it does not recognize at a known device address as orphaned, and will set `keep_on_remove` to safely remove them. ([#317](https://github.com/hashicorp/terraform-provider-vsphere/issues/317)) -* `resource/vsphere_virtual_machine`: The resource now attempts to detect unsafe +- `resource/vsphere_virtual_machine`: The resource now attempts to detect unsafe disk deletion scenarios that can happen from the renaming of a virtual machine in situations where the VM and disk names may share a common variable. The provider will block such operations from proceeding. ([#305](https://github.com/hashicorp/terraform-provider-vsphere/issues/305)) @@ -1205,7 +1212,7 @@ IMPROVEMENTS: BREAKING CHANGES: -* The `vsphere_virtual_machine` _data source_ has a new sub-resource attribute +- The `vsphere_virtual_machine` _data source_ has a new sub-resource attribute for disk information, named `disks`. This takes the place of `disk_sizes`, which has been moved to a `size` attribute within this new sub-resource, and also contains information about the discovered disks' `eagerly_scrub` and @@ -1261,11 +1268,11 @@ in the documentation. BUG Fixed: -* `resource/vsphere_virtual_machine`: Fixed a bug with NIC device assignment +- `resource/vsphere_virtual_machine`: Fixed a bug with NIC device assignment logic that was causing a crash when adding more than 3 NICs to a VM. ([#280](https://github.com/hashicorp/terraform-provider-vsphere/issues/280)) -* `resource/vsphere_virtual_machine`: CDROM devices on cloned virtual machines +- `resource/vsphere_virtual_machine`: CDROM devices on cloned virtual machines are now connected properly on power on. ([#278](https://github.com/hashicorp/terraform-provider-vsphere/issues/278)) -* `resource/vsphere_virtual_machine`: Tightened the pre-clone checks for virtual +- `resource/vsphere_virtual_machine`: Tightened the pre-clone checks for virtual disks to ensure that the size and disk types are the same between the template and the created virtual machine's configuration. ([#277](https://github.com/hashicorp/terraform-provider-vsphere/issues/277)) @@ -1273,17 +1280,17 @@ BUG Fixed: BUG Fixed: -* `resource/vsphere_virtual_machine`: Fixed an issue in the post-clone process +- `resource/vsphere_virtual_machine`: Fixed an issue in the post-clone process when a CDROM device exists in configuration. ([#276](https://github.com/hashicorp/terraform-provider-vsphere/issues/276)) ## 1.0.2 (December 05, 2017) BUG Fixed: -* `resource/vsphere_virtual_machine`: Fixed issues related to correct processing +- `resource/vsphere_virtual_machine`: Fixed issues related to correct processing VM templates with no network interfaces, or fewer network interfaces than the amount that will ultimately end up in configuration. ([#269](https://github.com/hashicorp/terraform-provider-vsphere/issues/269)) -* `resource/vsphere_virtual_machine`: Version comparison logic now functions +- `resource/vsphere_virtual_machine`: Version comparison logic now functions correctly to properly disable certain features when using older versions of vSphere. ([#272](https://github.com/hashicorp/terraform-provider-vsphere/issues/272)) @@ -1291,77 +1298,77 @@ BUG Fixed: BUG Fixed: -* `resource/vsphere_virtual_machine`: Corrected an issue that was preventing the +- `resource/vsphere_virtual_machine`: Corrected an issue that was preventing the use of this resource on standalone ESXi. ([#263](https://github.com/hashicorp/terraform-provider-vsphere/issues/263)) -* `datasource/vsphere_resource_pool`: This data source now works as documented on +- `datasource/vsphere_resource_pool`: This data source now works as documented on standalone ESXi. ([#263](https://github.com/hashicorp/terraform-provider-vsphere/issues/263)) ## 1.0.0 (December 01, 2017) BREAKING CHANGES: -* The `vsphere_virtual_machine` resource has received a major update and change +- The `vsphere_virtual_machine` resource has received a major update and change to its interface. See the documentation for the resource for full details, including information on things to consider while migrating the new version of the resource. FEATURES: -* **New Data Source:** `vsphere_resource_pool` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* **New Data Source:** `vsphere_datastore` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* **New Data Source:** `vsphere_virtual_machine` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) +- **New Data Source:** `vsphere_resource_pool` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) +- **New Data Source:** `vsphere_datastore` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) +- **New Data Source:** `vsphere_virtual_machine` ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) IMPROVEMENTS: -* `resource/vsphere_virtual_machine`: The distinct VM workflows are now better +- `resource/vsphere_virtual_machine`: The distinct VM workflows are now better defined: all cloning options are now contained within a `clone` sub-resource, with customization being a `customize` sub-resource off of that. Absence of the `clone` sub-resource means no cloning or customization will occur. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: Nearly all customization options have now +- `resource/vsphere_virtual_machine`: Nearly all customization options have now been exposed. Magic values such as hostname and DNS defaults have been removed, with some of these options now being required values depending on the OS being customized. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: Device management workflows have been +- `resource/vsphere_virtual_machine`: Device management workflows have been greatly improved, exposing more options and fixing several bugs. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: Added support for CPU and memory hot-plug. +- `resource/vsphere_virtual_machine`: Added support for CPU and memory hot-plug. Several other VM reconfiguration operations are also supported while the VM is powered on, guest type and VMware Tools permitting in some cases. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: The resource now supports both host and +- `resource/vsphere_virtual_machine`: The resource now supports both host and storage vMotion. Virtual machines can now be moved between hosts, clusters, resource pools, and datastores. Individual disks can be pinned to a single datastore with a VM located in another. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: The resource now supports import. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_virtual_machine`: Several other minor improvements, see +- `resource/vsphere_virtual_machine`: The resource now supports import. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) +- `resource/vsphere_virtual_machine`: Several other minor improvements, see documentation for more details. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) BUG Fixed: -* `resource/vsphere_virtual_machine`: Several long-standing issues have been fixed, +- `resource/vsphere_virtual_machine`: Several long-standing issues have been fixed, namely surrounding virtual disk and network device management. ([#244](https://github.com/hashicorp/terraform-provider-vsphere/issues/244)) -* `resource/vsphere_host_virtual_switch`: This resource now correctly supports a +- `resource/vsphere_host_virtual_switch`: This resource now correctly supports a configuration with no NICs. ([#256](https://github.com/hashicorp/terraform-provider-vsphere/issues/256)) -* `datasource/vsphere_network`: No longer restricted to being used on vCenter. ([#248](https://github.com/hashicorp/terraform-provider-vsphere/issues/248)) +- `datasource/vsphere_network`: No longer restricted to being used on vCenter. ([#248](https://github.com/hashicorp/terraform-provider-vsphere/issues/248)) ## 0.4.2 (October 13, 2017) FEATURES: -* **New Data Source:** `vsphere_network` ([#201](https://github.com/hashicorp/terraform-provider-vsphere/issues/201)) -* **New Data Source:** `vsphere_distributed_virtual_switch` ([#170](https://github.com/hashicorp/terraform-provider-vsphere/issues/170)) -* **New Resource:** `vsphere_distributed_port_group` ([#189](https://github.com/hashicorp/terraform-provider-vsphere/issues/189)) -* **New Resource:** `vsphere_distributed_virtual_switch` ([#188](https://github.com/hashicorp/terraform-provider-vsphere/issues/188)) +- **New Data Source:** `vsphere_network` ([#201](https://github.com/hashicorp/terraform-provider-vsphere/issues/201)) +- **New Data Source:** `vsphere_distributed_virtual_switch` ([#170](https://github.com/hashicorp/terraform-provider-vsphere/issues/170)) +- **New Resource:** `vsphere_distributed_port_group` ([#189](https://github.com/hashicorp/terraform-provider-vsphere/issues/189)) +- **New Resource:** `vsphere_distributed_virtual_switch` ([#188](https://github.com/hashicorp/terraform-provider-vsphere/issues/188)) IMPROVEMENTS: -* resource/vsphere_virtual_machine: The customization waiter is now tunable +- resource/vsphere_virtual_machine: The customization waiter is now tunable through the `wait_for_customization_timeout` argument. The timeout can be adjusted or the waiter can be disabled altogether. ([#199](https://github.com/hashicorp/terraform-provider-vsphere/issues/199)) -* resource/vsphere_virtual_machine: `domain` now acts as a default for +- resource/vsphere_virtual_machine: `domain` now acts as a default for `dns_sufFixed` if the latter is not defined, setting the value in `domain` as a search domain in the customization specification. `vsphere.local` is not used as a last resort only. ([#185](https://github.com/hashicorp/terraform-provider-vsphere/issues/185)) -* resource/vsphere_virtual_machine: Expose the `adapter_type` parameter to allow +- resource/vsphere_virtual_machine: Expose the `adapter_type` parameter to allow the control of the network interface type. This is currently restricted to `vmxnet3` and `e1000` but offers more control than what was available before, and more interface types will follow in later versions of the provider. @@ -1369,10 +1376,10 @@ IMPROVEMENTS: BUG Fixed: -* resource/vsphere_virtual_machine: Fixed a regression with network discovery +- resource/vsphere_virtual_machine: Fixed a regression with network discovery that was causing Terraform to crash while the VM was in a powered off state. ([#198](https://github.com/hashicorp/terraform-provider-vsphere/issues/198)) -* All resources that can use tags will now properly remove their tags completely +- All resources that can use tags will now properly remove their tags completely (or remove any out-of-band added tags) when the `tags` argument is not present in configuration. ([#196](https://github.com/hashicorp/terraform-provider-vsphere/issues/196)) @@ -1380,48 +1387,48 @@ BUG Fixed: BUG Fixed: -* resource/vsphere_folder: Migration of state from a version of this resource +- resource/vsphere_folder: Migration of state from a version of this resource before v0.4.0 now works correctly. ([#187](https://github.com/hashicorp/terraform-provider-vsphere/issues/187)) ## 0.4.0 (September 29, 2017) BREAKING CHANGES: -* The `vsphere_folder` resource has been re-written, and its configuration is +- The `vsphere_folder` resource has been re-written, and its configuration is significantly different. See the [resource documentation](https://www.terraform.io/docs/providers/vsphere/r/folder.html) for more details. Existing state will be migrated. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) FEATURES: -* **New Data Source:** `vsphere_tag` ([#171](https://github.com/hashicorp/terraform-provider-vsphere/issues/171)) -* **New Data Source:** `vsphere_tag_category` ([#167](https://github.com/hashicorp/terraform-provider-vsphere/issues/167)) -* **New Resource:** `vsphere_tag` ([#171](https://github.com/hashicorp/terraform-provider-vsphere/issues/171)) -* **New Resource:** `vsphere_tag_category` ([#164](https://github.com/hashicorp/terraform-provider-vsphere/issues/164)) +- **New Data Source:** `vsphere_tag` ([#171](https://github.com/hashicorp/terraform-provider-vsphere/issues/171)) +- **New Data Source:** `vsphere_tag_category` ([#167](https://github.com/hashicorp/terraform-provider-vsphere/issues/167)) +- **New Resource:** `vsphere_tag` ([#171](https://github.com/hashicorp/terraform-provider-vsphere/issues/171)) +- **New Resource:** `vsphere_tag_category` ([#164](https://github.com/hashicorp/terraform-provider-vsphere/issues/164)) IMPROVEMENTS: -* resource/vsphere_folder: You can now create any kind of folder with this +- resource/vsphere_folder: You can now create any kind of folder with this resource, not just virtual machine folders. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) -* resource/vsphere_folder: Now supports tags. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) -* resource/vsphere_folder: Now supports import. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) -* resource/vsphere_datacenter: Tags can now be applied to datacenters. ([#177](https://github.com/hashicorp/terraform-provider-vsphere/issues/177)) -* resource/vsphere_nas_datastore: Tags can now be applied to NAS datastores. +- resource/vsphere_folder: Now supports tags. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) +- resource/vsphere_folder: Now supports import. ([#179](https://github.com/hashicorp/terraform-provider-vsphere/issues/179)) +- resource/vsphere_datacenter: Tags can now be applied to datacenters. ([#177](https://github.com/hashicorp/terraform-provider-vsphere/issues/177)) +- resource/vsphere_nas_datastore: Tags can now be applied to NAS datastores. ([#176](https://github.com/hashicorp/terraform-provider-vsphere/issues/176)) -* resource/vsphere_vmfs_datastore: Tags can now be applied to VMFS datastores. +- resource/vsphere_vmfs_datastore: Tags can now be applied to VMFS datastores. ([#176](https://github.com/hashicorp/terraform-provider-vsphere/issues/176)) -* resource/vsphere_virtual_machine: Tags can now be applied to virtual machines. +- resource/vsphere_virtual_machine: Tags can now be applied to virtual machines. ([#175](https://github.com/hashicorp/terraform-provider-vsphere/issues/175)) -* resource/vsphere_virtual_machine: Adjusted the customization timeout to 10 +- resource/vsphere_virtual_machine: Adjusted the customization timeout to 10 minutes ([#168](https://github.com/hashicorp/terraform-provider-vsphere/issues/168)) BUG Fixed: -* resource/vsphere_virtual_machine: This resource can now be used with networks +- resource/vsphere_virtual_machine: This resource can now be used with networks with unescaped slashes in its network name. ([#181](https://github.com/hashicorp/terraform-provider-vsphere/issues/181)) -* resource/vsphere_virtual_machine: Fixed a crash where virtual NICs were +- resource/vsphere_virtual_machine: Fixed a crash where virtual NICs were created with networks backed by a 3rd party hardware VDS. ([#181](https://github.com/hashicorp/terraform-provider-vsphere/issues/181)) -* resource/vsphere_virtual_machine: Fixed crashes and spurious diffs that were +- resource/vsphere_virtual_machine: Fixed crashes and spurious diffs that were caused by errors in the code that associates the default gateway with its correct network device during refresh. ([#180](https://github.com/hashicorp/terraform-provider-vsphere/issues/180)) @@ -1429,7 +1436,7 @@ BUG Fixed: BREAKING CHANGES: -* `vsphere_virtual_machine` now waits on a _routable_ IP address by default, +- `vsphere_virtual_machine` now waits on a _routable_ IP address by default, and does not wait when running `terraform plan`, `terraform refresh`, or `terraform destroy`. There is also now a timeout of 5 minutes, after which `terraform apply` will fail with an error. Note that the apply may not fail @@ -1438,17 +1445,17 @@ BREAKING CHANGES: FEATURES: -* **New Resource:** `vsphere_virtual_machine_snapshot` ([#107](https://github.com/hashicorp/terraform-provider-vsphere/issues/107)) +- **New Resource:** `vsphere_virtual_machine_snapshot` ([#107](https://github.com/hashicorp/terraform-provider-vsphere/issues/107)) IMPROVEMENTS: -* resource/vsphere_virtual_machine: Virtual machine power state is now enforced. +- resource/vsphere_virtual_machine: Virtual machine power state is now enforced. Terraform will trigger a diff if the VM is powered off or suspended, and power it back on during the next apply. ([#152](https://github.com/hashicorp/terraform-provider-vsphere/issues/152)) BUG Fixed: -* resource/vsphere_virtual_machine: Fixed customization behavior to watch +- resource/vsphere_virtual_machine: Fixed customization behavior to watch customization events for success, rather than returning immediately when the `CustomizeVM` task returns. This is especially important during Windows customization where a large part of the customization task involves @@ -1458,26 +1465,26 @@ BUG Fixed: FEATURES: -* **New Resource:** `vsphere_nas_datastore` ([#149](https://github.com/hashicorp/terraform-provider-vsphere/issues/149)) -* **New Resource:** `vsphere_vmfs_datastore` ([#142](https://github.com/hashicorp/terraform-provider-vsphere/issues/142)) -* **New Data Source:** `vsphere_vmfs_disks` ([#141](https://github.com/hashicorp/terraform-provider-vsphere/issues/141)) +- **New Resource:** `vsphere_nas_datastore` ([#149](https://github.com/hashicorp/terraform-provider-vsphere/issues/149)) +- **New Resource:** `vsphere_vmfs_datastore` ([#142](https://github.com/hashicorp/terraform-provider-vsphere/issues/142)) +- **New Data Source:** `vsphere_vmfs_disks` ([#141](https://github.com/hashicorp/terraform-provider-vsphere/issues/141)) ## 0.2.1 (August 31, 2017) FEATURES: -* **New Resource:** `vsphere_host_port_group` ([#139](https://github.com/hashicorp/terraform-provider-vsphere/issues/139)) -* **New Resource:** `vsphere_host_virtual_switch` ([#138](https://github.com/hashicorp/terraform-provider-vsphere/issues/138)) -* **New Data Source:** `vsphere_datacenter` ([#144](https://github.com/hashicorp/terraform-provider-vsphere/issues/144)) -* **New Data Source:** `vsphere_host` ([#146](https://github.com/hashicorp/terraform-provider-vsphere/issues/146)) +- **New Resource:** `vsphere_host_port_group` ([#139](https://github.com/hashicorp/terraform-provider-vsphere/issues/139)) +- **New Resource:** `vsphere_host_virtual_switch` ([#138](https://github.com/hashicorp/terraform-provider-vsphere/issues/138)) +- **New Data Source:** `vsphere_datacenter` ([#144](https://github.com/hashicorp/terraform-provider-vsphere/issues/144)) +- **New Data Source:** `vsphere_host` ([#146](https://github.com/hashicorp/terraform-provider-vsphere/issues/146)) IMPROVEMENTS: -* resource/vsphere_virtual_machine: Allow customization of hostname ([#79](https://github.com/hashicorp/terraform-provider-vsphere/issues/79)) +- resource/vsphere_virtual_machine: Allow customization of hostname ([#79](https://github.com/hashicorp/terraform-provider-vsphere/issues/79)) BUG Fixed: -* resource/vsphere_virtual_machine: Fix IPv4 address mapping issues causing +- resource/vsphere_virtual_machine: Fix IPv4 address mapping issues causing spurious diffs, in addition to IPv6 normalization issues that can lead to spurious diffs as well. ([#128](https://github.com/hashicorp/terraform-provider-vsphere/issues/128)) @@ -1485,26 +1492,26 @@ BUG Fixed: BREAKING CHANGES: -* resource/vsphere_virtual_disk: Default adapter type is now `lsiLogic`, +- resource/vsphere_virtual_disk: Default adapter type is now `lsiLogic`, changed from `ide`. ([#94](https://github.com/hashicorp/terraform-provider-vsphere/issues/94)) FEATURES: -* **New Resource:** `vsphere_datacenter` ([#126](https://github.com/hashicorp/terraform-provider-vsphere/issues/126)) -* **New Resource:** `vsphere_license` ([#110](https://github.com/hashicorp/terraform-provider-vsphere/issues/110)) +- **New Resource:** `vsphere_datacenter` ([#126](https://github.com/hashicorp/terraform-provider-vsphere/issues/126)) +- **New Resource:** `vsphere_license` ([#110](https://github.com/hashicorp/terraform-provider-vsphere/issues/110)) IMPROVEMENTS: -* resource/vsphere_virtual_machine: Add annotation argument ([#111](https://github.com/hashicorp/terraform-provider-vsphere/issues/111)) +- resource/vsphere_virtual_machine: Add annotation argument ([#111](https://github.com/hashicorp/terraform-provider-vsphere/issues/111)) BUG Fixed: -* Updated [govmomi](https://github.com/vmware/govmomi) to v0.15.0 ([#114](https://github.com/hashicorp/terraform-provider-vsphere/issues/114)) -* Updated network interface discovery behavior in refresh. [[#129](https://github.com/hashicorp/terraform-provider-vsphere/issues/129)]. This Fixed +- Updated [govmomi](https://github.com/vmware/govmomi) to v0.15.0 ([#114](https://github.com/hashicorp/terraform-provider-vsphere/issues/114)) +- Updated network interface discovery behavior in refresh. [[#129](https://github.com/hashicorp/terraform-provider-vsphere/issues/129)]. This Fixed several reported bugs - see the PR for references! ## 0.1.0 (June 20, 2017) NOTES: -* Same functionality as that of Terraform 0.9.8. Repacked as part of [Provider Splitout](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/) +- Same functionality as that of Terraform 0.9.8. Repacked as part of [Provider Splitout](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/) diff --git a/vsphere/resource_vsphere_tag.go b/vsphere/resource_vsphere_tag.go index 18e470342..902f9a79b 100644 --- a/vsphere/resource_vsphere_tag.go +++ b/vsphere/resource_vsphere_tag.go @@ -51,6 +51,12 @@ func resourceVSphereTagCreate(d *schema.ResourceData, meta interface{}) error { if err != nil { return err } + + categoryID := d.Get("category_id").(string) + fmt.Printf("categoryID: %s\n", categoryID) + if !strings.HasPrefix(categoryID, "urn:vmomi") { + return fmt.Errorf("error: ‘category_id’ must start with ‘urn:vmomi’. you can use `vsphere_tag_category` data source to get the category ID") + } spec := &tags.Tag{ CategoryID: d.Get("category_id").(string), Description: d.Get("description").(string),