@pulumi/vsphere 4.0.0 → 4.2.0-alpha.1641576184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/README.md +1 -1
  2. package/computeCluster.d.ts +111 -111
  3. package/computeCluster.js +1 -0
  4. package/computeCluster.js.map +1 -1
  5. package/computeClusterHostGroup.d.ts +6 -6
  6. package/computeClusterHostGroup.js +1 -0
  7. package/computeClusterHostGroup.js.map +1 -1
  8. package/computeClusterVmAffinityRule.d.ts +10 -10
  9. package/computeClusterVmAffinityRule.js +1 -0
  10. package/computeClusterVmAffinityRule.js.map +1 -1
  11. package/computeClusterVmAntiAffinityRule.d.ts +10 -10
  12. package/computeClusterVmAntiAffinityRule.js +1 -0
  13. package/computeClusterVmAntiAffinityRule.js.map +1 -1
  14. package/computeClusterVmDependencyRule.d.ts +12 -12
  15. package/computeClusterVmDependencyRule.js +1 -0
  16. package/computeClusterVmDependencyRule.js.map +1 -1
  17. package/computeClusterVmGroup.d.ts +6 -6
  18. package/computeClusterVmGroup.js +1 -0
  19. package/computeClusterVmGroup.js.map +1 -1
  20. package/computeClusterVmHostRule.d.ts +14 -14
  21. package/computeClusterVmHostRule.js +1 -0
  22. package/computeClusterVmHostRule.js.map +1 -1
  23. package/config/index.js +11 -4
  24. package/config/index.js.map +1 -1
  25. package/config/vars.d.ts +13 -13
  26. package/config/vars.js +87 -50
  27. package/config/vars.js.map +1 -1
  28. package/contentLibrary.d.ts +10 -10
  29. package/contentLibrary.js +1 -0
  30. package/contentLibrary.js.map +1 -1
  31. package/contentLibraryItem.d.ts +12 -12
  32. package/contentLibraryItem.js +1 -0
  33. package/contentLibraryItem.js.map +1 -1
  34. package/customAttribute.d.ts +4 -4
  35. package/customAttribute.js +1 -0
  36. package/customAttribute.js.map +1 -1
  37. package/datacenter.d.ts +9 -9
  38. package/datacenter.js +1 -0
  39. package/datacenter.js.map +1 -1
  40. package/datastoreCluster.d.ts +50 -50
  41. package/datastoreCluster.js +1 -0
  42. package/datastoreCluster.js.map +1 -1
  43. package/datastoreClusterVmAntiAffinityRule.d.ts +10 -10
  44. package/datastoreClusterVmAntiAffinityRule.js +1 -0
  45. package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
  46. package/distributedPortGroup.d.ts +94 -94
  47. package/distributedPortGroup.js +1 -0
  48. package/distributedPortGroup.js.map +1 -1
  49. package/distributedVirtualSwitch.d.ts +189 -189
  50. package/distributedVirtualSwitch.js +1 -0
  51. package/distributedVirtualSwitch.js.map +1 -1
  52. package/dpmHostOverride.d.ts +8 -8
  53. package/dpmHostOverride.js +1 -0
  54. package/dpmHostOverride.js.map +1 -1
  55. package/drsVmOverride.d.ts +8 -8
  56. package/drsVmOverride.js +1 -0
  57. package/drsVmOverride.js.map +1 -1
  58. package/entityPermissions.d.ts +6 -6
  59. package/entityPermissions.js +1 -0
  60. package/entityPermissions.js.map +1 -1
  61. package/file.d.ts +14 -14
  62. package/file.js +1 -0
  63. package/file.js.map +1 -1
  64. package/folder.d.ts +10 -10
  65. package/folder.js +1 -0
  66. package/folder.js.map +1 -1
  67. package/getComputeCluster.d.ts +22 -4
  68. package/getComputeCluster.js +7 -2
  69. package/getComputeCluster.js.map +1 -1
  70. package/getContentLibrary.d.ts +12 -2
  71. package/getContentLibrary.js +6 -1
  72. package/getContentLibrary.js.map +1 -1
  73. package/getContentLibraryItem.d.ts +36 -3
  74. package/getContentLibraryItem.js +20 -0
  75. package/getContentLibraryItem.js.map +1 -1
  76. package/getCustomAttribute.d.ts +12 -2
  77. package/getCustomAttribute.js +6 -1
  78. package/getCustomAttribute.js.map +1 -1
  79. package/getDatacenter.d.ts +13 -2
  80. package/getDatacenter.js +6 -1
  81. package/getDatacenter.js.map +1 -1
  82. package/getDatastore.d.ts +22 -4
  83. package/getDatastore.js +7 -2
  84. package/getDatastore.js.map +1 -1
  85. package/getDatastoreCluster.d.ts +22 -4
  86. package/getDatastoreCluster.js +7 -2
  87. package/getDatastoreCluster.js.map +1 -1
  88. package/getDistributedVirtualSwitch.d.ts +23 -4
  89. package/getDistributedVirtualSwitch.js +7 -2
  90. package/getDistributedVirtualSwitch.js.map +1 -1
  91. package/getDynamic.d.ts +24 -3
  92. package/getDynamic.js +5 -0
  93. package/getDynamic.js.map +1 -1
  94. package/getFolder.d.ts +16 -2
  95. package/getFolder.js +6 -1
  96. package/getFolder.js.map +1 -1
  97. package/getHost.d.ts +20 -4
  98. package/getHost.js +7 -2
  99. package/getHost.js.map +1 -1
  100. package/getHostPciDevice.d.ts +28 -4
  101. package/getHostPciDevice.js +5 -0
  102. package/getHostPciDevice.js.map +1 -1
  103. package/getHostThumbprint.d.ts +24 -4
  104. package/getHostThumbprint.js +6 -1
  105. package/getHostThumbprint.js.map +1 -1
  106. package/getNetwork.d.ts +30 -5
  107. package/getNetwork.js +7 -2
  108. package/getNetwork.js.map +1 -1
  109. package/getOvfVmTemplate.d.ts +78 -14
  110. package/getOvfVmTemplate.js +5 -0
  111. package/getOvfVmTemplate.js.map +1 -1
  112. package/getPolicy.d.ts +12 -2
  113. package/getPolicy.js +6 -1
  114. package/getPolicy.js.map +1 -1
  115. package/getResourcePool.d.ts +24 -5
  116. package/getResourcePool.js +8 -3
  117. package/getResourcePool.js.map +1 -1
  118. package/getRole.d.ts +24 -5
  119. package/getRole.js +6 -1
  120. package/getRole.js.map +1 -1
  121. package/getTag.d.ts +18 -4
  122. package/getTag.js +7 -2
  123. package/getTag.js.map +1 -1
  124. package/getTagCategory.d.ts +12 -2
  125. package/getTagCategory.js +6 -1
  126. package/getTagCategory.js.map +1 -1
  127. package/getVappContainer.d.ts +20 -4
  128. package/getVappContainer.js +7 -2
  129. package/getVappContainer.js.map +1 -1
  130. package/getVirtualMachine.d.ts +150 -50
  131. package/getVirtualMachine.js +8 -2
  132. package/getVirtualMachine.js.map +1 -1
  133. package/getVmfsDisks.d.ts +28 -6
  134. package/getVmfsDisks.js +8 -3
  135. package/getVmfsDisks.js.map +1 -1
  136. package/haVmOverride.d.ts +30 -30
  137. package/haVmOverride.js +1 -0
  138. package/haVmOverride.js.map +1 -1
  139. package/host.d.ts +24 -24
  140. package/host.js +1 -0
  141. package/host.js.map +1 -1
  142. package/hostPortGroup.d.ts +41 -41
  143. package/hostPortGroup.js +5 -4
  144. package/hostPortGroup.js.map +1 -1
  145. package/hostVirtualSwitch.d.ts +42 -42
  146. package/hostVirtualSwitch.js +1 -0
  147. package/hostVirtualSwitch.js.map +1 -1
  148. package/index.js +74 -66
  149. package/index.js.map +1 -1
  150. package/license.d.ts +8 -8
  151. package/license.js +1 -0
  152. package/license.js.map +1 -1
  153. package/nasDatastore.d.ts +30 -30
  154. package/nasDatastore.js +1 -0
  155. package/nasDatastore.js.map +1 -1
  156. package/package.json +4 -3
  157. package/package.json.bak +3 -2
  158. package/package.json.dev +4 -3
  159. package/provider.d.ts +45 -13
  160. package/provider.js +9 -8
  161. package/provider.js.map +1 -1
  162. package/resourcePool.d.ts +28 -28
  163. package/resourcePool.js +1 -0
  164. package/resourcePool.js.map +1 -1
  165. package/role.d.ts +5 -5
  166. package/role.js +1 -0
  167. package/role.js.map +1 -1
  168. package/storageDrsVmOverride.d.ts +10 -10
  169. package/storageDrsVmOverride.js +1 -0
  170. package/storageDrsVmOverride.js.map +1 -1
  171. package/tag.d.ts +6 -6
  172. package/tag.js +1 -0
  173. package/tag.js.map +1 -1
  174. package/tagCategory.d.ts +8 -8
  175. package/tagCategory.js +1 -0
  176. package/tagCategory.js.map +1 -1
  177. package/types/index.js +1 -0
  178. package/types/index.js.map +1 -1
  179. package/types/input.d.ts +5 -0
  180. package/utilities.js +1 -0
  181. package/utilities.js.map +1 -1
  182. package/vappContainer.d.ts +30 -30
  183. package/vappContainer.js +1 -0
  184. package/vappContainer.js.map +1 -1
  185. package/vappEntity.d.ts +20 -20
  186. package/vappEntity.js +1 -0
  187. package/vappEntity.js.map +1 -1
  188. package/virtualDisk.d.ts +14 -14
  189. package/virtualDisk.js +1 -0
  190. package/virtualDisk.js.map +1 -1
  191. package/virtualMachine.d.ts +185 -158
  192. package/virtualMachine.js +3 -0
  193. package/virtualMachine.js.map +1 -1
  194. package/virtualMachineSnapshot.d.ts +14 -14
  195. package/virtualMachineSnapshot.js +1 -0
  196. package/virtualMachineSnapshot.js.map +1 -1
  197. package/vmStoragePolicy.d.ts +6 -6
  198. package/vmStoragePolicy.js +1 -0
  199. package/vmStoragePolicy.js.map +1 -1
  200. package/vmfsDatastore.d.ts +21 -21
  201. package/vmfsDatastore.js +1 -0
  202. package/vmfsDatastore.js.map +1 -1
  203. package/vnic.d.ts +18 -18
  204. package/vnic.js +1 -0
  205. package/vnic.js.map +1 -1
@@ -418,10 +418,19 @@ export declare class VirtualMachine extends pulumi.CustomResource {
418
418
  */
419
419
  readonly swapPlacementPolicy: pulumi.Output<string | undefined>;
420
420
  /**
421
- * Enable guest clock synchronization with
422
- * the host. Requires VMware tools to be installed. Default: `false`.
421
+ * Enable guest clock synchronization with the host.
422
+ * On vSphere 7 U1 and above, with only this setting the clock is synchronized on
423
+ * startup and resume so consider also setting `syncTimeWithHostPeriodically`.
424
+ * Requires VMware tools to be installed. Default: `false`.
423
425
  */
424
426
  readonly syncTimeWithHost: pulumi.Output<boolean | undefined>;
427
+ /**
428
+ * Enable periodic clock
429
+ * synchronization with the host. Supported only on vSphere 7 U1 and above.
430
+ * On older versions setting `syncTimeWithHost` is enough for periodic
431
+ * synchronization. Requires VMware tools to be installed. Default: `false`.
432
+ */
433
+ readonly syncTimeWithHostPeriodically: pulumi.Output<boolean | undefined>;
425
434
  /**
426
435
  * The IDs of any tags to attach to this resource.
427
436
  */
@@ -511,95 +520,95 @@ export interface VirtualMachineState {
511
520
  * The guest name for the operating system
512
521
  * when `guestId` is `other` or `other-64`.
513
522
  */
514
- readonly alternateGuestName?: pulumi.Input<string>;
523
+ alternateGuestName?: pulumi.Input<string>;
515
524
  /**
516
525
  * A user-provided description of the virtual machine.
517
526
  * The default is no annotation.
518
527
  */
519
- readonly annotation?: pulumi.Input<string>;
528
+ annotation?: pulumi.Input<string>;
520
529
  /**
521
530
  * The number of milliseconds to wait before starting
522
531
  * the boot sequence. The default is no delay.
523
532
  */
524
- readonly bootDelay?: pulumi.Input<number>;
533
+ bootDelay?: pulumi.Input<number>;
525
534
  /**
526
535
  * The number of milliseconds to wait before
527
536
  * retrying the boot sequence. This only valid if `bootRetryEnabled` is true.
528
537
  * Default: `10000` (10 seconds).
529
538
  */
530
- readonly bootRetryDelay?: pulumi.Input<number>;
539
+ bootRetryDelay?: pulumi.Input<number>;
531
540
  /**
532
541
  * If set to true, a virtual machine that
533
542
  * fails to boot will try again after the delay defined in `bootRetryDelay`.
534
543
  * Default: `false`.
535
544
  */
536
- readonly bootRetryEnabled?: pulumi.Input<boolean>;
545
+ bootRetryEnabled?: pulumi.Input<boolean>;
537
546
  /**
538
547
  * A specification for a CDROM device on this virtual
539
548
  * machine. See CDROM options below.
540
549
  */
541
- readonly cdrom?: pulumi.Input<inputs.VirtualMachineCdrom>;
550
+ cdrom?: pulumi.Input<inputs.VirtualMachineCdrom>;
542
551
  /**
543
552
  * A unique identifier for a given version of the last
544
553
  * configuration applied, such the timestamp of the last update to the
545
554
  * configuration.
546
555
  */
547
- readonly changeVersion?: pulumi.Input<string>;
556
+ changeVersion?: pulumi.Input<string>;
548
557
  /**
549
558
  * When specified, the VM will be created as a clone of a
550
559
  * specified template. Optional customization options can be submitted as well.
551
560
  * See creating a virtual machine from a
552
561
  * template for more details.
553
562
  */
554
- readonly clone?: pulumi.Input<inputs.VirtualMachineClone>;
563
+ clone?: pulumi.Input<inputs.VirtualMachineClone>;
555
564
  /**
556
565
  * Allow CPUs to be added to this virtual
557
566
  * machine while it is running.
558
567
  */
559
- readonly cpuHotAddEnabled?: pulumi.Input<boolean>;
568
+ cpuHotAddEnabled?: pulumi.Input<boolean>;
560
569
  /**
561
570
  * Allow CPUs to be removed to this
562
571
  * virtual machine while it is running.
563
572
  */
564
- readonly cpuHotRemoveEnabled?: pulumi.Input<boolean>;
573
+ cpuHotRemoveEnabled?: pulumi.Input<boolean>;
565
574
  /**
566
575
  * The maximum amount of CPU (in MHz) that this virtual
567
576
  * machine can consume, regardless of available resources. The default is no
568
577
  * limit.
569
578
  */
570
- readonly cpuLimit?: pulumi.Input<number>;
579
+ cpuLimit?: pulumi.Input<number>;
571
580
  /**
572
581
  * Enable CPU performance
573
582
  * counters on this virtual machine. Default: `false`.
574
583
  */
575
- readonly cpuPerformanceCountersEnabled?: pulumi.Input<boolean>;
584
+ cpuPerformanceCountersEnabled?: pulumi.Input<boolean>;
576
585
  /**
577
586
  * The amount of CPU (in MHz) that this virtual
578
587
  * machine is guaranteed. The default is no reservation.
579
588
  */
580
- readonly cpuReservation?: pulumi.Input<number>;
589
+ cpuReservation?: pulumi.Input<number>;
581
590
  /**
582
591
  * The number of CPU shares allocated to the
583
592
  * virtual machine when the `cpuShareLevel` is `custom`.
584
593
  */
585
- readonly cpuShareCount?: pulumi.Input<number>;
594
+ cpuShareCount?: pulumi.Input<number>;
586
595
  /**
587
596
  * The allocation level for CPU resources. Can be
588
597
  * one of `high`, `low`, `normal`, or `custom`. Default: `custom`.
589
598
  */
590
- readonly cpuShareLevel?: pulumi.Input<string>;
599
+ cpuShareLevel?: pulumi.Input<string>;
591
600
  /**
592
601
  * Map of custom attribute ids to attribute
593
602
  * value strings to set for virtual machine.
594
603
  */
595
- readonly customAttributes?: pulumi.Input<{
604
+ customAttributes?: pulumi.Input<{
596
605
  [key: string]: pulumi.Input<string>;
597
606
  }>;
598
607
  /**
599
608
  * The datacenter id. Required only when deploying
600
609
  * an ovf template.
601
610
  */
602
- readonly datacenterId?: pulumi.Input<string>;
611
+ datacenterId?: pulumi.Input<string>;
603
612
  /**
604
613
  * The managed object reference
605
614
  * ID of the datastore cluster ID to use. This setting
@@ -607,12 +616,12 @@ export interface VirtualMachineState {
607
616
  * DRS with this virtual machine. See the section on virtual machine
608
617
  * migration for details on changing this value.
609
618
  */
610
- readonly datastoreClusterId?: pulumi.Input<string>;
619
+ datastoreClusterId?: pulumi.Input<string>;
611
620
  /**
612
621
  * The datastore ID that the ISO is located in.
613
622
  * Requried for using a datastore ISO. Conflicts with `clientDevice`.
614
623
  */
615
- readonly datastoreId?: pulumi.Input<string>;
624
+ datastoreId?: pulumi.Input<string>;
616
625
  /**
617
626
  * The IP address selected by the provider to be used with
618
627
  * any provisioners configured on this resource.
@@ -622,63 +631,63 @@ export interface VirtualMachineState {
622
631
  * VMware tools is not running on the virtual machine, or if the VM is powered
623
632
  * off, this value will be blank.
624
633
  */
625
- readonly defaultIpAddress?: pulumi.Input<string>;
634
+ defaultIpAddress?: pulumi.Input<string>;
626
635
  /**
627
636
  * A specification for a virtual disk device on this virtual
628
637
  * machine. See disk options below.
629
638
  */
630
- readonly disks?: pulumi.Input<pulumi.Input<inputs.VirtualMachineDisk>[]>;
639
+ disks?: pulumi.Input<pulumi.Input<inputs.VirtualMachineDisk>[]>;
631
640
  /**
632
641
  * When the `firmware` type is set to is
633
642
  * `efi`, this enables EFI secure boot. Default: `false`.
634
643
  */
635
- readonly efiSecureBootEnabled?: pulumi.Input<boolean>;
644
+ efiSecureBootEnabled?: pulumi.Input<boolean>;
636
645
  /**
637
646
  * Expose the UUIDs of attached virtual disks to
638
647
  * the virtual machine, allowing access to them in the guest. Default: `false`.
639
648
  */
640
- readonly enableDiskUuid?: pulumi.Input<boolean>;
649
+ enableDiskUuid?: pulumi.Input<boolean>;
641
650
  /**
642
651
  * Enable logging of virtual machine events to a
643
652
  * log file stored in the virtual machine directory. Default: `false`.
644
653
  */
645
- readonly enableLogging?: pulumi.Input<boolean>;
654
+ enableLogging?: pulumi.Input<boolean>;
646
655
  /**
647
656
  * The EPT/RVI (hardware memory virtualization)
648
657
  * setting for this virtual machine. Can be one of `automatic`, `on`, or `off`.
649
658
  * Default: `automatic`.
650
659
  */
651
- readonly eptRviMode?: pulumi.Input<string>;
660
+ eptRviMode?: pulumi.Input<string>;
652
661
  /**
653
662
  * Extra configuration data for this virtual
654
663
  * machine. Can be used to supply advanced parameters not normally in
655
664
  * configuration, such as instance metadata.
656
665
  */
657
- readonly extraConfig?: pulumi.Input<{
666
+ extraConfig?: pulumi.Input<{
658
667
  [key: string]: pulumi.Input<string>;
659
668
  }>;
660
669
  /**
661
670
  * The firmware interface to use on the virtual machine.
662
671
  * Can be one of `bios` or `EFI`. Default: `bios`.
663
672
  */
664
- readonly firmware?: pulumi.Input<string>;
673
+ firmware?: pulumi.Input<string>;
665
674
  /**
666
675
  * The path to the folder to put this virtual machine in,
667
676
  * relative to the datacenter that the resource pool is in.
668
677
  */
669
- readonly folder?: pulumi.Input<string>;
678
+ folder?: pulumi.Input<string>;
670
679
  /**
671
680
  * If a guest shutdown failed or timed out while
672
681
  * updating or destroying (see
673
682
  * `shutdownWaitTimeout`), force the power-off of
674
683
  * the virtual machine. Default: `true`.
675
684
  */
676
- readonly forcePowerOff?: pulumi.Input<boolean>;
685
+ forcePowerOff?: pulumi.Input<boolean>;
677
686
  /**
678
687
  * The guest ID for the operating system type. For a
679
688
  * full list of possible values, see [here][vmware-docs-guest-ids]. Default: `other-64`.
680
689
  */
681
- readonly guestId?: pulumi.Input<string>;
690
+ guestId?: pulumi.Input<string>;
682
691
  /**
683
692
  * The current list of IP addresses on this machine,
684
693
  * including the value of `defaultIpAddress`. If VMware tools is not running
@@ -686,14 +695,14 @@ export interface VirtualMachineState {
686
695
  * * `moid`: The managed object reference ID of the created
687
696
  * virtual machine.
688
697
  */
689
- readonly guestIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
698
+ guestIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
690
699
  /**
691
700
  * The hardware version number. Valid range
692
701
  * is from 4 to 15. The hardware version cannot be downgraded. See [virtual
693
702
  * machine hardware compatibility][virtual-machine-hardware-compatibility] for
694
703
  * more details.
695
704
  */
696
- readonly hardwareVersion?: pulumi.Input<number>;
705
+ hardwareVersion?: pulumi.Input<number>;
697
706
  /**
698
707
  * An optional managed object reference
699
708
  * ID of a host to put this virtual machine on. See the
@@ -702,33 +711,33 @@ export interface VirtualMachineState {
702
711
  * vSphere will select a host in the resource pool to place the virtual machine,
703
712
  * according to any defaults or DRS policies in place.
704
713
  */
705
- readonly hostSystemId?: pulumi.Input<string>;
714
+ hostSystemId?: pulumi.Input<string>;
706
715
  /**
707
716
  * The (non-nested) hardware virtualization setting for
708
717
  * this virtual machine. Can be one of `hvAuto`, `hvOn`, or `hvOff`. Default:
709
718
  * `hvAuto`.
710
719
  */
711
- readonly hvMode?: pulumi.Input<string>;
720
+ hvMode?: pulumi.Input<string>;
712
721
  /**
713
722
  * The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks
714
723
  * you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove
715
724
  * controllers.
716
725
  */
717
- readonly ideControllerCount?: pulumi.Input<number>;
726
+ ideControllerCount?: pulumi.Input<number>;
718
727
  /**
719
728
  * List of IP addresses and CIDR networks to
720
729
  * ignore while waiting for an available IP address using either of the waiters.
721
730
  * Any IP addresses in this list will be ignored if they show up so that the
722
731
  * waiter will continue to wait for a real IP address. Default: [].
723
732
  */
724
- readonly ignoredGuestIps?: pulumi.Input<pulumi.Input<string>[]>;
733
+ ignoredGuestIps?: pulumi.Input<pulumi.Input<string>[]>;
725
734
  /**
726
735
  * This is flagged if the virtual machine has been imported, or the
727
736
  * state has been migrated from a previous version of the resource. It
728
737
  * influences the behavior of the first post-import apply operation. See the
729
738
  * section on importing below.
730
739
  */
731
- readonly imported?: pulumi.Input<boolean>;
740
+ imported?: pulumi.Input<boolean>;
732
741
  /**
733
742
  * Controls the scheduling delay of the
734
743
  * virtual machine. Use a higher sensitivity for applications that require lower
@@ -736,192 +745,201 @@ export interface VirtualMachineState {
736
745
  * require frequent access to mouse or keyboard devices. Can be one of `low`,
737
746
  * `normal`, `medium`, or `high`.
738
747
  */
739
- readonly latencySensitivity?: pulumi.Input<string>;
748
+ latencySensitivity?: pulumi.Input<string>;
740
749
  /**
741
750
  * The size of the virtual machine's memory, in MB.
742
751
  * Default: `1024` (1 GB).
743
752
  */
744
- readonly memory?: pulumi.Input<number>;
753
+ memory?: pulumi.Input<number>;
745
754
  /**
746
755
  * Allow memory to be added to this
747
756
  * virtual machine while it is running.
748
757
  */
749
- readonly memoryHotAddEnabled?: pulumi.Input<boolean>;
758
+ memoryHotAddEnabled?: pulumi.Input<boolean>;
750
759
  /**
751
760
  * The maximum amount of memory (in MB) that this
752
761
  * virtual machine can consume, regardless of available resources. The default
753
762
  * is no limit.
754
763
  */
755
- readonly memoryLimit?: pulumi.Input<number>;
764
+ memoryLimit?: pulumi.Input<number>;
756
765
  /**
757
766
  * The amount of memory (in MB) that this
758
767
  * virtual machine is guaranteed. The default is no reservation.
759
768
  */
760
- readonly memoryReservation?: pulumi.Input<number>;
769
+ memoryReservation?: pulumi.Input<number>;
761
770
  /**
762
771
  * The number of memory shares allocated to
763
772
  * the virtual machine when the `memoryShareLevel` is `custom`.
764
773
  */
765
- readonly memoryShareCount?: pulumi.Input<number>;
774
+ memoryShareCount?: pulumi.Input<number>;
766
775
  /**
767
776
  * The allocation level for memory resources.
768
777
  * Can be one of `high`, `low`, `normal`, or `custom`. Default: `custom`.
769
778
  */
770
- readonly memoryShareLevel?: pulumi.Input<string>;
779
+ memoryShareLevel?: pulumi.Input<string>;
771
780
  /**
772
781
  * The amount of time, in minutes, to wait
773
782
  * for a virtual machine migration to complete before failing. Default: 10
774
783
  * minutes. Also see the section on virtual machine
775
784
  * migration.
776
785
  */
777
- readonly migrateWaitTimeout?: pulumi.Input<number>;
786
+ migrateWaitTimeout?: pulumi.Input<number>;
778
787
  /**
779
788
  * The machine object ID from VMWare
780
789
  */
781
- readonly moid?: pulumi.Input<string>;
790
+ moid?: pulumi.Input<string>;
782
791
  /**
783
792
  * The name of the virtual machine.
784
793
  */
785
- readonly name?: pulumi.Input<string>;
794
+ name?: pulumi.Input<string>;
786
795
  /**
787
796
  * Enable nested hardware virtualization on
788
797
  * this virtual machine, facilitating nested virtualization in the guest.
789
798
  * Default: `false`.
790
799
  */
791
- readonly nestedHvEnabled?: pulumi.Input<boolean>;
800
+ nestedHvEnabled?: pulumi.Input<boolean>;
792
801
  /**
793
802
  * A specification for a virtual NIC on this
794
803
  * virtual machine. See network interface options
795
804
  * below.
796
805
  */
797
- readonly networkInterfaces?: pulumi.Input<pulumi.Input<inputs.VirtualMachineNetworkInterface>[]>;
806
+ networkInterfaces?: pulumi.Input<pulumi.Input<inputs.VirtualMachineNetworkInterface>[]>;
798
807
  /**
799
808
  * The number of cores per socket in this
800
809
  * virtual machine. The number of vCPUs on the virtual machine will be
801
810
  * `numCpus` divided by `numCoresPerSocket`. If specified, the value
802
811
  * supplied to `numCpus` must be evenly divisible by this value. Default: `1`.
803
812
  */
804
- readonly numCoresPerSocket?: pulumi.Input<number>;
813
+ numCoresPerSocket?: pulumi.Input<number>;
805
814
  /**
806
815
  * The total number of virtual processor cores to assign
807
816
  * to this virtual machine. Default: `1`.
808
817
  */
809
- readonly numCpus?: pulumi.Input<number>;
818
+ numCpus?: pulumi.Input<number>;
810
819
  /**
811
820
  * When specified, the VM will be deployed from the
812
821
  * provided ovf/ova template. See creating a virtual machine from a
813
822
  * ovf/ova template for more details.
814
823
  */
815
- readonly ovfDeploy?: pulumi.Input<inputs.VirtualMachineOvfDeploy>;
824
+ ovfDeploy?: pulumi.Input<inputs.VirtualMachineOvfDeploy>;
816
825
  /**
817
826
  * List of host PCI device IDs to create PCI
818
827
  * passthroughs for.
819
828
  */
820
- readonly pciDeviceIds?: pulumi.Input<pulumi.Input<string>[]>;
829
+ pciDeviceIds?: pulumi.Input<pulumi.Input<string>[]>;
821
830
  /**
822
831
  * The amount of time, in seconds, that we will be trying to power on a VM
823
832
  */
824
- readonly poweronTimeout?: pulumi.Input<number>;
833
+ poweronTimeout?: pulumi.Input<number>;
825
834
  /**
826
835
  * Value internal to the provider used to determine if a
827
836
  * configuration set change requires a reboot. This value is only useful during
828
837
  * an update process and gets reset on refresh.
829
838
  */
830
- readonly rebootRequired?: pulumi.Input<boolean>;
839
+ rebootRequired?: pulumi.Input<boolean>;
831
840
  /**
832
841
  * Triggers replacement of resource whenever it changes.
833
842
  * `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))`
834
843
  * will fingerprint the changes in cloudInit metadata and userdata templates. This will enable a replacement
835
844
  * of the resource whenever the dependant template renders a new configuration. (Forces a replacement)
836
845
  */
837
- readonly replaceTrigger?: pulumi.Input<string>;
846
+ replaceTrigger?: pulumi.Input<string>;
838
847
  /**
839
848
  * The managed object reference
840
849
  * ID of the resource pool to put this virtual machine in.
841
850
  * See the section on virtual machine migration
842
851
  * for details on changing this value.
843
852
  */
844
- readonly resourcePoolId?: pulumi.Input<string>;
853
+ resourcePoolId?: pulumi.Input<string>;
845
854
  /**
846
855
  * Enable the execution of
847
856
  * post-power-on scripts when VMware tools is installed. Default: `true`.
848
857
  */
849
- readonly runToolsScriptsAfterPowerOn?: pulumi.Input<boolean>;
858
+ runToolsScriptsAfterPowerOn?: pulumi.Input<boolean>;
850
859
  /**
851
860
  * Enable the execution of
852
861
  * post-resume scripts when VMware tools is installed. Default: `true`.
853
862
  */
854
- readonly runToolsScriptsAfterResume?: pulumi.Input<boolean>;
863
+ runToolsScriptsAfterResume?: pulumi.Input<boolean>;
855
864
  /**
856
865
  * Enable the execution of
857
866
  * pre-reboot scripts when VMware tools is installed. Default: `false`.
858
867
  */
859
- readonly runToolsScriptsBeforeGuestReboot?: pulumi.Input<boolean>;
868
+ runToolsScriptsBeforeGuestReboot?: pulumi.Input<boolean>;
860
869
  /**
861
870
  * Enable the execution
862
871
  * of pre-shutdown scripts when VMware tools is installed. Default: `true`.
863
872
  */
864
- readonly runToolsScriptsBeforeGuestShutdown?: pulumi.Input<boolean>;
873
+ runToolsScriptsBeforeGuestShutdown?: pulumi.Input<boolean>;
865
874
  /**
866
875
  * Enable the execution of
867
876
  * pre-standby scripts when VMware tools is installed. Default: `true`.
868
877
  */
869
- readonly runToolsScriptsBeforeGuestStandby?: pulumi.Input<boolean>;
878
+ runToolsScriptsBeforeGuestStandby?: pulumi.Input<boolean>;
870
879
  /**
871
880
  * The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks
872
881
  * you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove
873
882
  * controllers.
874
883
  */
875
- readonly sataControllerCount?: pulumi.Input<number>;
884
+ sataControllerCount?: pulumi.Input<number>;
876
885
  /**
877
886
  * Mode for sharing the SCSI bus. The modes are
878
887
  * physicalSharing, virtualSharing, and noSharing. Default: `noSharing`.
879
888
  */
880
- readonly scsiBusSharing?: pulumi.Input<string>;
889
+ scsiBusSharing?: pulumi.Input<string>;
881
890
  /**
882
891
  * The number of SCSI controllers that
883
892
  * this provider manages on this virtual machine. This directly affects the amount
884
893
  * of disks you can add to the virtual machine and the maximum disk unit number.
885
894
  * Note that lowering this value does not remove controllers. Default: `1`.
886
895
  */
887
- readonly scsiControllerCount?: pulumi.Input<number>;
896
+ scsiControllerCount?: pulumi.Input<number>;
888
897
  /**
889
898
  * The type of SCSI bus this virtual machine will have.
890
899
  * Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or
891
900
  * pvscsi (VMware Paravirtual). Defualt: `pvscsi`.
892
901
  */
893
- readonly scsiType?: pulumi.Input<string>;
902
+ scsiType?: pulumi.Input<string>;
894
903
  /**
895
904
  * The amount of time, in minutes, to wait
896
905
  * for a graceful guest shutdown when making necessary updates to the virtual
897
906
  * machine. If `forcePowerOff` is set to true, the VM will be force powered-off
898
907
  * after this timeout, otherwise an error is returned. Default: 3 minutes.
899
908
  */
900
- readonly shutdownWaitTimeout?: pulumi.Input<number>;
909
+ shutdownWaitTimeout?: pulumi.Input<number>;
901
910
  /**
902
911
  * The UUID of the storage policy to assign to this disk.
903
912
  */
904
- readonly storagePolicyId?: pulumi.Input<string>;
913
+ storagePolicyId?: pulumi.Input<string>;
905
914
  /**
906
915
  * The swap file placement policy for this
907
916
  * virtual machine. Can be one of `inherit`, `hostLocal`, or `vmDirectory`.
908
917
  * Default: `inherit`.
909
918
  */
910
- readonly swapPlacementPolicy?: pulumi.Input<string>;
919
+ swapPlacementPolicy?: pulumi.Input<string>;
920
+ /**
921
+ * Enable guest clock synchronization with the host.
922
+ * On vSphere 7 U1 and above, with only this setting the clock is synchronized on
923
+ * startup and resume so consider also setting `syncTimeWithHostPeriodically`.
924
+ * Requires VMware tools to be installed. Default: `false`.
925
+ */
926
+ syncTimeWithHost?: pulumi.Input<boolean>;
911
927
  /**
912
- * Enable guest clock synchronization with
913
- * the host. Requires VMware tools to be installed. Default: `false`.
928
+ * Enable periodic clock
929
+ * synchronization with the host. Supported only on vSphere 7 U1 and above.
930
+ * On older versions setting `syncTimeWithHost` is enough for periodic
931
+ * synchronization. Requires VMware tools to be installed. Default: `false`.
914
932
  */
915
- readonly syncTimeWithHost?: pulumi.Input<boolean>;
933
+ syncTimeWithHostPeriodically?: pulumi.Input<boolean>;
916
934
  /**
917
935
  * The IDs of any tags to attach to this resource.
918
936
  */
919
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
937
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
920
938
  /**
921
939
  * The UUID of the virtual disk's VMDK file. This is used to track the
922
940
  * virtual disk on the virtual machine.
923
941
  */
924
- readonly uuid?: pulumi.Input<string>;
942
+ uuid?: pulumi.Input<string>;
925
943
  /**
926
944
  * Optional vApp configuration. The only sub-key available
927
945
  * is `properties`, which is a key/value map of properties for virtual machines
@@ -929,36 +947,36 @@ export interface VirtualMachineState {
929
947
  * configuration for
930
948
  * more details.
931
949
  */
932
- readonly vapp?: pulumi.Input<inputs.VirtualMachineVapp>;
950
+ vapp?: pulumi.Input<inputs.VirtualMachineVapp>;
933
951
  /**
934
952
  * Computed value which is only valid for cloned virtual
935
953
  * machines. A list of vApp transport methods supported by the source virtual
936
954
  * machine or template.
937
955
  */
938
- readonly vappTransports?: pulumi.Input<pulumi.Input<string>[]>;
956
+ vappTransports?: pulumi.Input<pulumi.Input<string>[]>;
939
957
  /**
940
958
  * Enable Virtualization Based Security. Requires
941
959
  * `firmware` to be `efi`, and `vvtdEnabled`, `nestedHvEnabled` and
942
960
  * `efiSecureBootEnabled` must all have a value of `true`. Supported on
943
961
  * vSphere 6.7 and higher. Default: `false`.
944
962
  */
945
- readonly vbsEnabled?: pulumi.Input<boolean>;
963
+ vbsEnabled?: pulumi.Input<boolean>;
946
964
  /**
947
965
  * The state of VMware tools in the guest. This will
948
966
  * determine the proper course of action for some device operations.
949
967
  */
950
- readonly vmwareToolsStatus?: pulumi.Input<string>;
968
+ vmwareToolsStatus?: pulumi.Input<string>;
951
969
  /**
952
970
  * The path of the virtual machine's configuration file in the VM's
953
971
  * datastore.
954
972
  */
955
- readonly vmxPath?: pulumi.Input<string>;
973
+ vmxPath?: pulumi.Input<string>;
956
974
  /**
957
975
  * Flag to specify if Intel Virtualization Technology
958
976
  * for Directed I/O is enabled for this virtual machine (_I/O MMU_ in the
959
977
  * vSphere Client). Supported on vSphere 6.7 and higher. Default: `false`.
960
978
  */
961
- readonly vvtdEnabled?: pulumi.Input<boolean>;
979
+ vvtdEnabled?: pulumi.Input<boolean>;
962
980
  /**
963
981
  * The amount of time, in minutes, to
964
982
  * wait for an available guest IP address on this virtual machine. This should
@@ -966,7 +984,7 @@ export interface VirtualMachineState {
966
984
  * `waitForGuestNetTimeout` waiter to be
967
985
  * used. A value less than 1 disables the waiter. Default: 0.
968
986
  */
969
- readonly waitForGuestIpTimeout?: pulumi.Input<number>;
987
+ waitForGuestIpTimeout?: pulumi.Input<number>;
970
988
  /**
971
989
  * Controls whether or not the guest
972
990
  * network waiter waits for a routable address. When `false`, the waiter does
@@ -975,7 +993,7 @@ export interface VirtualMachineState {
975
993
  * ignored if the `waitForGuestIpTimeout`
976
994
  * waiter is used. Default: `true`.
977
995
  */
978
- readonly waitForGuestNetRoutable?: pulumi.Input<boolean>;
996
+ waitForGuestNetRoutable?: pulumi.Input<boolean>;
979
997
  /**
980
998
  * The amount of time, in minutes, to
981
999
  * wait for an available IP address on this virtual machine's NICs. Older
@@ -984,7 +1002,7 @@ export interface VirtualMachineState {
984
1002
  * `waitForGuestIpTimeout` waiter can be used
985
1003
  * instead. A value less than 1 disables the waiter. Default: 5 minutes.
986
1004
  */
987
- readonly waitForGuestNetTimeout?: pulumi.Input<number>;
1005
+ waitForGuestNetTimeout?: pulumi.Input<number>;
988
1006
  }
989
1007
  /**
990
1008
  * The set of arguments for constructing a VirtualMachine resource.
@@ -994,89 +1012,89 @@ export interface VirtualMachineArgs {
994
1012
  * The guest name for the operating system
995
1013
  * when `guestId` is `other` or `other-64`.
996
1014
  */
997
- readonly alternateGuestName?: pulumi.Input<string>;
1015
+ alternateGuestName?: pulumi.Input<string>;
998
1016
  /**
999
1017
  * A user-provided description of the virtual machine.
1000
1018
  * The default is no annotation.
1001
1019
  */
1002
- readonly annotation?: pulumi.Input<string>;
1020
+ annotation?: pulumi.Input<string>;
1003
1021
  /**
1004
1022
  * The number of milliseconds to wait before starting
1005
1023
  * the boot sequence. The default is no delay.
1006
1024
  */
1007
- readonly bootDelay?: pulumi.Input<number>;
1025
+ bootDelay?: pulumi.Input<number>;
1008
1026
  /**
1009
1027
  * The number of milliseconds to wait before
1010
1028
  * retrying the boot sequence. This only valid if `bootRetryEnabled` is true.
1011
1029
  * Default: `10000` (10 seconds).
1012
1030
  */
1013
- readonly bootRetryDelay?: pulumi.Input<number>;
1031
+ bootRetryDelay?: pulumi.Input<number>;
1014
1032
  /**
1015
1033
  * If set to true, a virtual machine that
1016
1034
  * fails to boot will try again after the delay defined in `bootRetryDelay`.
1017
1035
  * Default: `false`.
1018
1036
  */
1019
- readonly bootRetryEnabled?: pulumi.Input<boolean>;
1037
+ bootRetryEnabled?: pulumi.Input<boolean>;
1020
1038
  /**
1021
1039
  * A specification for a CDROM device on this virtual
1022
1040
  * machine. See CDROM options below.
1023
1041
  */
1024
- readonly cdrom?: pulumi.Input<inputs.VirtualMachineCdrom>;
1042
+ cdrom?: pulumi.Input<inputs.VirtualMachineCdrom>;
1025
1043
  /**
1026
1044
  * When specified, the VM will be created as a clone of a
1027
1045
  * specified template. Optional customization options can be submitted as well.
1028
1046
  * See creating a virtual machine from a
1029
1047
  * template for more details.
1030
1048
  */
1031
- readonly clone?: pulumi.Input<inputs.VirtualMachineClone>;
1049
+ clone?: pulumi.Input<inputs.VirtualMachineClone>;
1032
1050
  /**
1033
1051
  * Allow CPUs to be added to this virtual
1034
1052
  * machine while it is running.
1035
1053
  */
1036
- readonly cpuHotAddEnabled?: pulumi.Input<boolean>;
1054
+ cpuHotAddEnabled?: pulumi.Input<boolean>;
1037
1055
  /**
1038
1056
  * Allow CPUs to be removed to this
1039
1057
  * virtual machine while it is running.
1040
1058
  */
1041
- readonly cpuHotRemoveEnabled?: pulumi.Input<boolean>;
1059
+ cpuHotRemoveEnabled?: pulumi.Input<boolean>;
1042
1060
  /**
1043
1061
  * The maximum amount of CPU (in MHz) that this virtual
1044
1062
  * machine can consume, regardless of available resources. The default is no
1045
1063
  * limit.
1046
1064
  */
1047
- readonly cpuLimit?: pulumi.Input<number>;
1065
+ cpuLimit?: pulumi.Input<number>;
1048
1066
  /**
1049
1067
  * Enable CPU performance
1050
1068
  * counters on this virtual machine. Default: `false`.
1051
1069
  */
1052
- readonly cpuPerformanceCountersEnabled?: pulumi.Input<boolean>;
1070
+ cpuPerformanceCountersEnabled?: pulumi.Input<boolean>;
1053
1071
  /**
1054
1072
  * The amount of CPU (in MHz) that this virtual
1055
1073
  * machine is guaranteed. The default is no reservation.
1056
1074
  */
1057
- readonly cpuReservation?: pulumi.Input<number>;
1075
+ cpuReservation?: pulumi.Input<number>;
1058
1076
  /**
1059
1077
  * The number of CPU shares allocated to the
1060
1078
  * virtual machine when the `cpuShareLevel` is `custom`.
1061
1079
  */
1062
- readonly cpuShareCount?: pulumi.Input<number>;
1080
+ cpuShareCount?: pulumi.Input<number>;
1063
1081
  /**
1064
1082
  * The allocation level for CPU resources. Can be
1065
1083
  * one of `high`, `low`, `normal`, or `custom`. Default: `custom`.
1066
1084
  */
1067
- readonly cpuShareLevel?: pulumi.Input<string>;
1085
+ cpuShareLevel?: pulumi.Input<string>;
1068
1086
  /**
1069
1087
  * Map of custom attribute ids to attribute
1070
1088
  * value strings to set for virtual machine.
1071
1089
  */
1072
- readonly customAttributes?: pulumi.Input<{
1090
+ customAttributes?: pulumi.Input<{
1073
1091
  [key: string]: pulumi.Input<string>;
1074
1092
  }>;
1075
1093
  /**
1076
1094
  * The datacenter id. Required only when deploying
1077
1095
  * an ovf template.
1078
1096
  */
1079
- readonly datacenterId?: pulumi.Input<string>;
1097
+ datacenterId?: pulumi.Input<string>;
1080
1098
  /**
1081
1099
  * The managed object reference
1082
1100
  * ID of the datastore cluster ID to use. This setting
@@ -1084,75 +1102,75 @@ export interface VirtualMachineArgs {
1084
1102
  * DRS with this virtual machine. See the section on virtual machine
1085
1103
  * migration for details on changing this value.
1086
1104
  */
1087
- readonly datastoreClusterId?: pulumi.Input<string>;
1105
+ datastoreClusterId?: pulumi.Input<string>;
1088
1106
  /**
1089
1107
  * The datastore ID that the ISO is located in.
1090
1108
  * Requried for using a datastore ISO. Conflicts with `clientDevice`.
1091
1109
  */
1092
- readonly datastoreId?: pulumi.Input<string>;
1110
+ datastoreId?: pulumi.Input<string>;
1093
1111
  /**
1094
1112
  * A specification for a virtual disk device on this virtual
1095
1113
  * machine. See disk options below.
1096
1114
  */
1097
- readonly disks?: pulumi.Input<pulumi.Input<inputs.VirtualMachineDisk>[]>;
1115
+ disks?: pulumi.Input<pulumi.Input<inputs.VirtualMachineDisk>[]>;
1098
1116
  /**
1099
1117
  * When the `firmware` type is set to is
1100
1118
  * `efi`, this enables EFI secure boot. Default: `false`.
1101
1119
  */
1102
- readonly efiSecureBootEnabled?: pulumi.Input<boolean>;
1120
+ efiSecureBootEnabled?: pulumi.Input<boolean>;
1103
1121
  /**
1104
1122
  * Expose the UUIDs of attached virtual disks to
1105
1123
  * the virtual machine, allowing access to them in the guest. Default: `false`.
1106
1124
  */
1107
- readonly enableDiskUuid?: pulumi.Input<boolean>;
1125
+ enableDiskUuid?: pulumi.Input<boolean>;
1108
1126
  /**
1109
1127
  * Enable logging of virtual machine events to a
1110
1128
  * log file stored in the virtual machine directory. Default: `false`.
1111
1129
  */
1112
- readonly enableLogging?: pulumi.Input<boolean>;
1130
+ enableLogging?: pulumi.Input<boolean>;
1113
1131
  /**
1114
1132
  * The EPT/RVI (hardware memory virtualization)
1115
1133
  * setting for this virtual machine. Can be one of `automatic`, `on`, or `off`.
1116
1134
  * Default: `automatic`.
1117
1135
  */
1118
- readonly eptRviMode?: pulumi.Input<string>;
1136
+ eptRviMode?: pulumi.Input<string>;
1119
1137
  /**
1120
1138
  * Extra configuration data for this virtual
1121
1139
  * machine. Can be used to supply advanced parameters not normally in
1122
1140
  * configuration, such as instance metadata.
1123
1141
  */
1124
- readonly extraConfig?: pulumi.Input<{
1142
+ extraConfig?: pulumi.Input<{
1125
1143
  [key: string]: pulumi.Input<string>;
1126
1144
  }>;
1127
1145
  /**
1128
1146
  * The firmware interface to use on the virtual machine.
1129
1147
  * Can be one of `bios` or `EFI`. Default: `bios`.
1130
1148
  */
1131
- readonly firmware?: pulumi.Input<string>;
1149
+ firmware?: pulumi.Input<string>;
1132
1150
  /**
1133
1151
  * The path to the folder to put this virtual machine in,
1134
1152
  * relative to the datacenter that the resource pool is in.
1135
1153
  */
1136
- readonly folder?: pulumi.Input<string>;
1154
+ folder?: pulumi.Input<string>;
1137
1155
  /**
1138
1156
  * If a guest shutdown failed or timed out while
1139
1157
  * updating or destroying (see
1140
1158
  * `shutdownWaitTimeout`), force the power-off of
1141
1159
  * the virtual machine. Default: `true`.
1142
1160
  */
1143
- readonly forcePowerOff?: pulumi.Input<boolean>;
1161
+ forcePowerOff?: pulumi.Input<boolean>;
1144
1162
  /**
1145
1163
  * The guest ID for the operating system type. For a
1146
1164
  * full list of possible values, see [here][vmware-docs-guest-ids]. Default: `other-64`.
1147
1165
  */
1148
- readonly guestId?: pulumi.Input<string>;
1166
+ guestId?: pulumi.Input<string>;
1149
1167
  /**
1150
1168
  * The hardware version number. Valid range
1151
1169
  * is from 4 to 15. The hardware version cannot be downgraded. See [virtual
1152
1170
  * machine hardware compatibility][virtual-machine-hardware-compatibility] for
1153
1171
  * more details.
1154
1172
  */
1155
- readonly hardwareVersion?: pulumi.Input<number>;
1173
+ hardwareVersion?: pulumi.Input<number>;
1156
1174
  /**
1157
1175
  * An optional managed object reference
1158
1176
  * ID of a host to put this virtual machine on. See the
@@ -1161,26 +1179,26 @@ export interface VirtualMachineArgs {
1161
1179
  * vSphere will select a host in the resource pool to place the virtual machine,
1162
1180
  * according to any defaults or DRS policies in place.
1163
1181
  */
1164
- readonly hostSystemId?: pulumi.Input<string>;
1182
+ hostSystemId?: pulumi.Input<string>;
1165
1183
  /**
1166
1184
  * The (non-nested) hardware virtualization setting for
1167
1185
  * this virtual machine. Can be one of `hvAuto`, `hvOn`, or `hvOff`. Default:
1168
1186
  * `hvAuto`.
1169
1187
  */
1170
- readonly hvMode?: pulumi.Input<string>;
1188
+ hvMode?: pulumi.Input<string>;
1171
1189
  /**
1172
1190
  * The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks
1173
1191
  * you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove
1174
1192
  * controllers.
1175
1193
  */
1176
- readonly ideControllerCount?: pulumi.Input<number>;
1194
+ ideControllerCount?: pulumi.Input<number>;
1177
1195
  /**
1178
1196
  * List of IP addresses and CIDR networks to
1179
1197
  * ignore while waiting for an available IP address using either of the waiters.
1180
1198
  * Any IP addresses in this list will be ignored if they show up so that the
1181
1199
  * waiter will continue to wait for a real IP address. Default: [].
1182
1200
  */
1183
- readonly ignoredGuestIps?: pulumi.Input<pulumi.Input<string>[]>;
1201
+ ignoredGuestIps?: pulumi.Input<pulumi.Input<string>[]>;
1184
1202
  /**
1185
1203
  * Controls the scheduling delay of the
1186
1204
  * virtual machine. Use a higher sensitivity for applications that require lower
@@ -1188,177 +1206,186 @@ export interface VirtualMachineArgs {
1188
1206
  * require frequent access to mouse or keyboard devices. Can be one of `low`,
1189
1207
  * `normal`, `medium`, or `high`.
1190
1208
  */
1191
- readonly latencySensitivity?: pulumi.Input<string>;
1209
+ latencySensitivity?: pulumi.Input<string>;
1192
1210
  /**
1193
1211
  * The size of the virtual machine's memory, in MB.
1194
1212
  * Default: `1024` (1 GB).
1195
1213
  */
1196
- readonly memory?: pulumi.Input<number>;
1214
+ memory?: pulumi.Input<number>;
1197
1215
  /**
1198
1216
  * Allow memory to be added to this
1199
1217
  * virtual machine while it is running.
1200
1218
  */
1201
- readonly memoryHotAddEnabled?: pulumi.Input<boolean>;
1219
+ memoryHotAddEnabled?: pulumi.Input<boolean>;
1202
1220
  /**
1203
1221
  * The maximum amount of memory (in MB) that this
1204
1222
  * virtual machine can consume, regardless of available resources. The default
1205
1223
  * is no limit.
1206
1224
  */
1207
- readonly memoryLimit?: pulumi.Input<number>;
1225
+ memoryLimit?: pulumi.Input<number>;
1208
1226
  /**
1209
1227
  * The amount of memory (in MB) that this
1210
1228
  * virtual machine is guaranteed. The default is no reservation.
1211
1229
  */
1212
- readonly memoryReservation?: pulumi.Input<number>;
1230
+ memoryReservation?: pulumi.Input<number>;
1213
1231
  /**
1214
1232
  * The number of memory shares allocated to
1215
1233
  * the virtual machine when the `memoryShareLevel` is `custom`.
1216
1234
  */
1217
- readonly memoryShareCount?: pulumi.Input<number>;
1235
+ memoryShareCount?: pulumi.Input<number>;
1218
1236
  /**
1219
1237
  * The allocation level for memory resources.
1220
1238
  * Can be one of `high`, `low`, `normal`, or `custom`. Default: `custom`.
1221
1239
  */
1222
- readonly memoryShareLevel?: pulumi.Input<string>;
1240
+ memoryShareLevel?: pulumi.Input<string>;
1223
1241
  /**
1224
1242
  * The amount of time, in minutes, to wait
1225
1243
  * for a virtual machine migration to complete before failing. Default: 10
1226
1244
  * minutes. Also see the section on virtual machine
1227
1245
  * migration.
1228
1246
  */
1229
- readonly migrateWaitTimeout?: pulumi.Input<number>;
1247
+ migrateWaitTimeout?: pulumi.Input<number>;
1230
1248
  /**
1231
1249
  * The name of the virtual machine.
1232
1250
  */
1233
- readonly name?: pulumi.Input<string>;
1251
+ name?: pulumi.Input<string>;
1234
1252
  /**
1235
1253
  * Enable nested hardware virtualization on
1236
1254
  * this virtual machine, facilitating nested virtualization in the guest.
1237
1255
  * Default: `false`.
1238
1256
  */
1239
- readonly nestedHvEnabled?: pulumi.Input<boolean>;
1257
+ nestedHvEnabled?: pulumi.Input<boolean>;
1240
1258
  /**
1241
1259
  * A specification for a virtual NIC on this
1242
1260
  * virtual machine. See network interface options
1243
1261
  * below.
1244
1262
  */
1245
- readonly networkInterfaces?: pulumi.Input<pulumi.Input<inputs.VirtualMachineNetworkInterface>[]>;
1263
+ networkInterfaces?: pulumi.Input<pulumi.Input<inputs.VirtualMachineNetworkInterface>[]>;
1246
1264
  /**
1247
1265
  * The number of cores per socket in this
1248
1266
  * virtual machine. The number of vCPUs on the virtual machine will be
1249
1267
  * `numCpus` divided by `numCoresPerSocket`. If specified, the value
1250
1268
  * supplied to `numCpus` must be evenly divisible by this value. Default: `1`.
1251
1269
  */
1252
- readonly numCoresPerSocket?: pulumi.Input<number>;
1270
+ numCoresPerSocket?: pulumi.Input<number>;
1253
1271
  /**
1254
1272
  * The total number of virtual processor cores to assign
1255
1273
  * to this virtual machine. Default: `1`.
1256
1274
  */
1257
- readonly numCpus?: pulumi.Input<number>;
1275
+ numCpus?: pulumi.Input<number>;
1258
1276
  /**
1259
1277
  * When specified, the VM will be deployed from the
1260
1278
  * provided ovf/ova template. See creating a virtual machine from a
1261
1279
  * ovf/ova template for more details.
1262
1280
  */
1263
- readonly ovfDeploy?: pulumi.Input<inputs.VirtualMachineOvfDeploy>;
1281
+ ovfDeploy?: pulumi.Input<inputs.VirtualMachineOvfDeploy>;
1264
1282
  /**
1265
1283
  * List of host PCI device IDs to create PCI
1266
1284
  * passthroughs for.
1267
1285
  */
1268
- readonly pciDeviceIds?: pulumi.Input<pulumi.Input<string>[]>;
1286
+ pciDeviceIds?: pulumi.Input<pulumi.Input<string>[]>;
1269
1287
  /**
1270
1288
  * The amount of time, in seconds, that we will be trying to power on a VM
1271
1289
  */
1272
- readonly poweronTimeout?: pulumi.Input<number>;
1290
+ poweronTimeout?: pulumi.Input<number>;
1273
1291
  /**
1274
1292
  * Triggers replacement of resource whenever it changes.
1275
1293
  * `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))`
1276
1294
  * will fingerprint the changes in cloudInit metadata and userdata templates. This will enable a replacement
1277
1295
  * of the resource whenever the dependant template renders a new configuration. (Forces a replacement)
1278
1296
  */
1279
- readonly replaceTrigger?: pulumi.Input<string>;
1297
+ replaceTrigger?: pulumi.Input<string>;
1280
1298
  /**
1281
1299
  * The managed object reference
1282
1300
  * ID of the resource pool to put this virtual machine in.
1283
1301
  * See the section on virtual machine migration
1284
1302
  * for details on changing this value.
1285
1303
  */
1286
- readonly resourcePoolId: pulumi.Input<string>;
1304
+ resourcePoolId: pulumi.Input<string>;
1287
1305
  /**
1288
1306
  * Enable the execution of
1289
1307
  * post-power-on scripts when VMware tools is installed. Default: `true`.
1290
1308
  */
1291
- readonly runToolsScriptsAfterPowerOn?: pulumi.Input<boolean>;
1309
+ runToolsScriptsAfterPowerOn?: pulumi.Input<boolean>;
1292
1310
  /**
1293
1311
  * Enable the execution of
1294
1312
  * post-resume scripts when VMware tools is installed. Default: `true`.
1295
1313
  */
1296
- readonly runToolsScriptsAfterResume?: pulumi.Input<boolean>;
1314
+ runToolsScriptsAfterResume?: pulumi.Input<boolean>;
1297
1315
  /**
1298
1316
  * Enable the execution of
1299
1317
  * pre-reboot scripts when VMware tools is installed. Default: `false`.
1300
1318
  */
1301
- readonly runToolsScriptsBeforeGuestReboot?: pulumi.Input<boolean>;
1319
+ runToolsScriptsBeforeGuestReboot?: pulumi.Input<boolean>;
1302
1320
  /**
1303
1321
  * Enable the execution
1304
1322
  * of pre-shutdown scripts when VMware tools is installed. Default: `true`.
1305
1323
  */
1306
- readonly runToolsScriptsBeforeGuestShutdown?: pulumi.Input<boolean>;
1324
+ runToolsScriptsBeforeGuestShutdown?: pulumi.Input<boolean>;
1307
1325
  /**
1308
1326
  * Enable the execution of
1309
1327
  * pre-standby scripts when VMware tools is installed. Default: `true`.
1310
1328
  */
1311
- readonly runToolsScriptsBeforeGuestStandby?: pulumi.Input<boolean>;
1329
+ runToolsScriptsBeforeGuestStandby?: pulumi.Input<boolean>;
1312
1330
  /**
1313
1331
  * The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks
1314
1332
  * you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove
1315
1333
  * controllers.
1316
1334
  */
1317
- readonly sataControllerCount?: pulumi.Input<number>;
1335
+ sataControllerCount?: pulumi.Input<number>;
1318
1336
  /**
1319
1337
  * Mode for sharing the SCSI bus. The modes are
1320
1338
  * physicalSharing, virtualSharing, and noSharing. Default: `noSharing`.
1321
1339
  */
1322
- readonly scsiBusSharing?: pulumi.Input<string>;
1340
+ scsiBusSharing?: pulumi.Input<string>;
1323
1341
  /**
1324
1342
  * The number of SCSI controllers that
1325
1343
  * this provider manages on this virtual machine. This directly affects the amount
1326
1344
  * of disks you can add to the virtual machine and the maximum disk unit number.
1327
1345
  * Note that lowering this value does not remove controllers. Default: `1`.
1328
1346
  */
1329
- readonly scsiControllerCount?: pulumi.Input<number>;
1347
+ scsiControllerCount?: pulumi.Input<number>;
1330
1348
  /**
1331
1349
  * The type of SCSI bus this virtual machine will have.
1332
1350
  * Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or
1333
1351
  * pvscsi (VMware Paravirtual). Defualt: `pvscsi`.
1334
1352
  */
1335
- readonly scsiType?: pulumi.Input<string>;
1353
+ scsiType?: pulumi.Input<string>;
1336
1354
  /**
1337
1355
  * The amount of time, in minutes, to wait
1338
1356
  * for a graceful guest shutdown when making necessary updates to the virtual
1339
1357
  * machine. If `forcePowerOff` is set to true, the VM will be force powered-off
1340
1358
  * after this timeout, otherwise an error is returned. Default: 3 minutes.
1341
1359
  */
1342
- readonly shutdownWaitTimeout?: pulumi.Input<number>;
1360
+ shutdownWaitTimeout?: pulumi.Input<number>;
1343
1361
  /**
1344
1362
  * The UUID of the storage policy to assign to this disk.
1345
1363
  */
1346
- readonly storagePolicyId?: pulumi.Input<string>;
1364
+ storagePolicyId?: pulumi.Input<string>;
1347
1365
  /**
1348
1366
  * The swap file placement policy for this
1349
1367
  * virtual machine. Can be one of `inherit`, `hostLocal`, or `vmDirectory`.
1350
1368
  * Default: `inherit`.
1351
1369
  */
1352
- readonly swapPlacementPolicy?: pulumi.Input<string>;
1370
+ swapPlacementPolicy?: pulumi.Input<string>;
1371
+ /**
1372
+ * Enable guest clock synchronization with the host.
1373
+ * On vSphere 7 U1 and above, with only this setting the clock is synchronized on
1374
+ * startup and resume so consider also setting `syncTimeWithHostPeriodically`.
1375
+ * Requires VMware tools to be installed. Default: `false`.
1376
+ */
1377
+ syncTimeWithHost?: pulumi.Input<boolean>;
1353
1378
  /**
1354
- * Enable guest clock synchronization with
1355
- * the host. Requires VMware tools to be installed. Default: `false`.
1379
+ * Enable periodic clock
1380
+ * synchronization with the host. Supported only on vSphere 7 U1 and above.
1381
+ * On older versions setting `syncTimeWithHost` is enough for periodic
1382
+ * synchronization. Requires VMware tools to be installed. Default: `false`.
1356
1383
  */
1357
- readonly syncTimeWithHost?: pulumi.Input<boolean>;
1384
+ syncTimeWithHostPeriodically?: pulumi.Input<boolean>;
1358
1385
  /**
1359
1386
  * The IDs of any tags to attach to this resource.
1360
1387
  */
1361
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
1388
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
1362
1389
  /**
1363
1390
  * Optional vApp configuration. The only sub-key available
1364
1391
  * is `properties`, which is a key/value map of properties for virtual machines
@@ -1366,20 +1393,20 @@ export interface VirtualMachineArgs {
1366
1393
  * configuration for
1367
1394
  * more details.
1368
1395
  */
1369
- readonly vapp?: pulumi.Input<inputs.VirtualMachineVapp>;
1396
+ vapp?: pulumi.Input<inputs.VirtualMachineVapp>;
1370
1397
  /**
1371
1398
  * Enable Virtualization Based Security. Requires
1372
1399
  * `firmware` to be `efi`, and `vvtdEnabled`, `nestedHvEnabled` and
1373
1400
  * `efiSecureBootEnabled` must all have a value of `true`. Supported on
1374
1401
  * vSphere 6.7 and higher. Default: `false`.
1375
1402
  */
1376
- readonly vbsEnabled?: pulumi.Input<boolean>;
1403
+ vbsEnabled?: pulumi.Input<boolean>;
1377
1404
  /**
1378
1405
  * Flag to specify if Intel Virtualization Technology
1379
1406
  * for Directed I/O is enabled for this virtual machine (_I/O MMU_ in the
1380
1407
  * vSphere Client). Supported on vSphere 6.7 and higher. Default: `false`.
1381
1408
  */
1382
- readonly vvtdEnabled?: pulumi.Input<boolean>;
1409
+ vvtdEnabled?: pulumi.Input<boolean>;
1383
1410
  /**
1384
1411
  * The amount of time, in minutes, to
1385
1412
  * wait for an available guest IP address on this virtual machine. This should
@@ -1387,7 +1414,7 @@ export interface VirtualMachineArgs {
1387
1414
  * `waitForGuestNetTimeout` waiter to be
1388
1415
  * used. A value less than 1 disables the waiter. Default: 0.
1389
1416
  */
1390
- readonly waitForGuestIpTimeout?: pulumi.Input<number>;
1417
+ waitForGuestIpTimeout?: pulumi.Input<number>;
1391
1418
  /**
1392
1419
  * Controls whether or not the guest
1393
1420
  * network waiter waits for a routable address. When `false`, the waiter does
@@ -1396,7 +1423,7 @@ export interface VirtualMachineArgs {
1396
1423
  * ignored if the `waitForGuestIpTimeout`
1397
1424
  * waiter is used. Default: `true`.
1398
1425
  */
1399
- readonly waitForGuestNetRoutable?: pulumi.Input<boolean>;
1426
+ waitForGuestNetRoutable?: pulumi.Input<boolean>;
1400
1427
  /**
1401
1428
  * The amount of time, in minutes, to
1402
1429
  * wait for an available IP address on this virtual machine's NICs. Older
@@ -1405,5 +1432,5 @@ export interface VirtualMachineArgs {
1405
1432
  * `waitForGuestIpTimeout` waiter can be used
1406
1433
  * instead. A value less than 1 disables the waiter. Default: 5 minutes.
1407
1434
  */
1408
- readonly waitForGuestNetTimeout?: pulumi.Input<number>;
1435
+ waitForGuestNetTimeout?: pulumi.Input<number>;
1409
1436
  }