pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.1__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (52) hide show
  1. pulumi_vsphere/_inputs.py +96 -230
  2. pulumi_vsphere/compute_cluster.py +700 -1477
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -16
  4. pulumi_vsphere/datacenter.py +26 -12
  5. pulumi_vsphere/datastore_cluster.py +154 -350
  6. pulumi_vsphere/distributed_port_group.py +70 -175
  7. pulumi_vsphere/distributed_virtual_switch.py +308 -805
  8. pulumi_vsphere/file.py +16 -24
  9. pulumi_vsphere/get_compute_cluster.py +0 -4
  10. pulumi_vsphere/get_compute_cluster_host_group.py +8 -10
  11. pulumi_vsphere/get_content_library.py +0 -4
  12. pulumi_vsphere/get_custom_attribute.py +0 -4
  13. pulumi_vsphere/get_datacenter.py +0 -4
  14. pulumi_vsphere/get_datastore.py +0 -4
  15. pulumi_vsphere/get_datastore_cluster.py +0 -4
  16. pulumi_vsphere/get_datastore_stats.py +4 -12
  17. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  18. pulumi_vsphere/get_dynamic.py +4 -8
  19. pulumi_vsphere/get_folder.py +0 -4
  20. pulumi_vsphere/get_guest_os_customization.py +0 -4
  21. pulumi_vsphere/get_host.py +0 -4
  22. pulumi_vsphere/get_host_pci_device.py +4 -12
  23. pulumi_vsphere/get_host_thumbprint.py +0 -4
  24. pulumi_vsphere/get_host_vgpu_profile.py +0 -8
  25. pulumi_vsphere/get_license.py +0 -4
  26. pulumi_vsphere/get_network.py +0 -4
  27. pulumi_vsphere/get_policy.py +0 -4
  28. pulumi_vsphere/get_resource_pool.py +2 -10
  29. pulumi_vsphere/get_role.py +0 -4
  30. pulumi_vsphere/get_tag.py +0 -4
  31. pulumi_vsphere/get_tag_category.py +0 -4
  32. pulumi_vsphere/get_vapp_container.py +0 -4
  33. pulumi_vsphere/get_virtual_machine.py +0 -8
  34. pulumi_vsphere/get_vmfs_disks.py +0 -4
  35. pulumi_vsphere/guest_os_customization.py +50 -0
  36. pulumi_vsphere/ha_vm_override.py +189 -378
  37. pulumi_vsphere/host.py +0 -20
  38. pulumi_vsphere/host_port_group.py +12 -24
  39. pulumi_vsphere/host_virtual_switch.py +140 -287
  40. pulumi_vsphere/license.py +0 -32
  41. pulumi_vsphere/outputs.py +96 -230
  42. pulumi_vsphere/resource_pool.py +48 -22
  43. pulumi_vsphere/virtual_disk.py +10 -10
  44. pulumi_vsphere/virtual_machine.py +578 -807
  45. pulumi_vsphere/virtual_machine_snapshot.py +6 -10
  46. pulumi_vsphere/vm_storage_policy.py +72 -84
  47. pulumi_vsphere/vnic.py +8 -20
  48. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/METADATA +1 -1
  49. pulumi_vsphere-4.10.1.dist-info/RECORD +82 -0
  50. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  51. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/WHEEL +0 -0
  52. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/top_level.txt +0 -0
@@ -94,7 +94,6 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
94
94
 
95
95
  ### To Return All VGPU Profiles
96
96
 
97
- <!--Start PulumiCodeChooser -->
98
97
  ```python
99
98
  import pulumi
100
99
  import pulumi_vsphere as vsphere
@@ -104,11 +103,9 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
104
103
  datacenter_id=datacenter.id)
105
104
  vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
106
105
  ```
107
- <!--End PulumiCodeChooser -->
108
106
 
109
107
  ### With VGPU Profile Name_regex
110
108
 
111
- <!--Start PulumiCodeChooser -->
112
109
  ```python
113
110
  import pulumi
114
111
  import pulumi_vsphere as vsphere
@@ -119,7 +116,6 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
119
116
  vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
120
117
  name_regex="a100")
121
118
  ```
122
- <!--End PulumiCodeChooser -->
123
119
 
124
120
 
125
121
  :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
@@ -153,7 +149,6 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
153
149
 
154
150
  ### To Return All VGPU Profiles
155
151
 
156
- <!--Start PulumiCodeChooser -->
157
152
  ```python
158
153
  import pulumi
159
154
  import pulumi_vsphere as vsphere
@@ -163,11 +158,9 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
163
158
  datacenter_id=datacenter.id)
164
159
  vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
165
160
  ```
166
- <!--End PulumiCodeChooser -->
167
161
 
168
162
  ### With VGPU Profile Name_regex
169
163
 
170
- <!--Start PulumiCodeChooser -->
171
164
  ```python
172
165
  import pulumi
173
166
  import pulumi_vsphere as vsphere
@@ -178,7 +171,6 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
178
171
  vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
179
172
  name_regex="a100")
180
173
  ```
181
- <!--End PulumiCodeChooser -->
182
174
 
183
175
 
184
176
  :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
@@ -118,14 +118,12 @@ def get_license(license_key: Optional[str] = None,
118
118
 
119
119
  ## Example Usage
120
120
 
121
- <!--Start PulumiCodeChooser -->
122
121
  ```python
123
122
  import pulumi
124
123
  import pulumi_vsphere as vsphere
125
124
 
126
125
  license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
127
126
  ```
128
- <!--End PulumiCodeChooser -->
129
127
 
130
128
 
131
129
  :param str license_key: The license key.
@@ -154,14 +152,12 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
154
152
 
155
153
  ## Example Usage
156
154
 
157
- <!--Start PulumiCodeChooser -->
158
155
  ```python
159
156
  import pulumi
160
157
  import pulumi_vsphere as vsphere
161
158
 
162
159
  license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
163
160
  ```
164
- <!--End PulumiCodeChooser -->
165
161
 
166
162
 
167
163
  :param str license_key: The license key.
@@ -99,7 +99,6 @@ def get_network(datacenter_id: Optional[str] = None,
99
99
 
100
100
  ## Example Usage
101
101
 
102
- <!--Start PulumiCodeChooser -->
103
102
  ```python
104
103
  import pulumi
105
104
  import pulumi_vsphere as vsphere
@@ -108,7 +107,6 @@ def get_network(datacenter_id: Optional[str] = None,
108
107
  network = vsphere.get_network(name="VM Network",
109
108
  datacenter_id=datacenter.id)
110
109
  ```
111
- <!--End PulumiCodeChooser -->
112
110
 
113
111
 
114
112
  :param str datacenter_id: The managed object reference ID
@@ -150,7 +148,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
150
148
 
151
149
  ## Example Usage
152
150
 
153
- <!--Start PulumiCodeChooser -->
154
151
  ```python
155
152
  import pulumi
156
153
  import pulumi_vsphere as vsphere
@@ -159,7 +156,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
159
156
  network = vsphere.get_network(name="VM Network",
160
157
  datacenter_id=datacenter.id)
161
158
  ```
162
- <!--End PulumiCodeChooser -->
163
159
 
164
160
 
165
161
  :param str datacenter_id: The managed object reference ID
@@ -65,7 +65,6 @@ def get_policy(name: Optional[str] = None,
65
65
 
66
66
  ## Example Usage
67
67
 
68
- <!--Start PulumiCodeChooser -->
69
68
  ```python
70
69
  import pulumi
71
70
  import pulumi_vsphere as vsphere
@@ -73,7 +72,6 @@ def get_policy(name: Optional[str] = None,
73
72
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
74
73
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
75
74
  ```
76
- <!--End PulumiCodeChooser -->
77
75
 
78
76
 
79
77
  :param str name: The name of the storage policy.
@@ -101,7 +99,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
101
99
 
102
100
  ## Example Usage
103
101
 
104
- <!--Start PulumiCodeChooser -->
105
102
  ```python
106
103
  import pulumi
107
104
  import pulumi_vsphere as vsphere
@@ -109,7 +106,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
109
106
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
110
107
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
111
108
  ```
112
- <!--End PulumiCodeChooser -->
113
109
 
114
110
 
115
111
  :param str name: The name of the storage policy.
@@ -73,7 +73,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
- <!--Start PulumiCodeChooser -->
77
76
  ```python
78
77
  import pulumi
79
78
  import pulumi_vsphere as vsphere
@@ -82,7 +81,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
82
81
  pool = vsphere.get_resource_pool(name="resource-pool-01",
83
82
  datacenter_id=datacenter.id)
84
83
  ```
85
- <!--End PulumiCodeChooser -->
86
84
 
87
85
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
88
86
 
@@ -94,15 +92,13 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
94
92
  explicitly created. This resource pool is referred to as the
95
93
  _root resource pool_ and can be looked up by specifying the path.
96
94
 
97
- <!--Start PulumiCodeChooser -->
98
95
  ```python
99
96
  import pulumi
100
97
  import pulumi_vsphere as vsphere
101
98
 
102
99
  pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
103
- datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
100
+ datacenter_id=datacenter["id"])
104
101
  ```
105
- <!--End PulumiCodeChooser -->
106
102
 
107
103
  For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
108
104
 
@@ -145,7 +141,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
145
141
 
146
142
  ## Example Usage
147
143
 
148
- <!--Start PulumiCodeChooser -->
149
144
  ```python
150
145
  import pulumi
151
146
  import pulumi_vsphere as vsphere
@@ -154,7 +149,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
154
149
  pool = vsphere.get_resource_pool(name="resource-pool-01",
155
150
  datacenter_id=datacenter.id)
156
151
  ```
157
- <!--End PulumiCodeChooser -->
158
152
 
159
153
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
160
154
 
@@ -166,15 +160,13 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
166
160
  explicitly created. This resource pool is referred to as the
167
161
  _root resource pool_ and can be looked up by specifying the path.
168
162
 
169
- <!--Start PulumiCodeChooser -->
170
163
  ```python
171
164
  import pulumi
172
165
  import pulumi_vsphere as vsphere
173
166
 
174
167
  pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
175
- datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
168
+ datacenter_id=datacenter["id"])
176
169
  ```
177
- <!--End PulumiCodeChooser -->
178
170
 
179
171
  For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
180
172
 
@@ -100,14 +100,12 @@ def get_role(description: Optional[str] = None,
100
100
 
101
101
  ## Example Usage
102
102
 
103
- <!--Start PulumiCodeChooser -->
104
103
  ```python
105
104
  import pulumi
106
105
  import pulumi_vsphere as vsphere
107
106
 
108
107
  terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
109
108
  ```
110
- <!--End PulumiCodeChooser -->
111
109
 
112
110
 
113
111
  :param str description: The description of the role.
@@ -142,14 +140,12 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
142
140
 
143
141
  ## Example Usage
144
142
 
145
- <!--Start PulumiCodeChooser -->
146
143
  ```python
147
144
  import pulumi
148
145
  import pulumi_vsphere as vsphere
149
146
 
150
147
  terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
151
148
  ```
152
- <!--End PulumiCodeChooser -->
153
149
 
154
150
 
155
151
  :param str description: The description of the role.
pulumi_vsphere/get_tag.py CHANGED
@@ -86,7 +86,6 @@ def get_tag(category_id: Optional[str] = None,
86
86
 
87
87
  ## Example Usage
88
88
 
89
- <!--Start PulumiCodeChooser -->
90
89
  ```python
91
90
  import pulumi
92
91
  import pulumi_vsphere as vsphere
@@ -95,7 +94,6 @@ def get_tag(category_id: Optional[str] = None,
95
94
  tag = vsphere.get_tag(name="example-tag",
96
95
  category_id=category.id)
97
96
  ```
98
- <!--End PulumiCodeChooser -->
99
97
 
100
98
 
101
99
  :param str category_id: The ID of the tag category in which the tag is
@@ -131,7 +129,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
131
129
 
132
130
  ## Example Usage
133
131
 
134
- <!--Start PulumiCodeChooser -->
135
132
  ```python
136
133
  import pulumi
137
134
  import pulumi_vsphere as vsphere
@@ -140,7 +137,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
140
137
  tag = vsphere.get_tag(name="example-tag",
141
138
  category_id=category.id)
142
139
  ```
143
- <!--End PulumiCodeChooser -->
144
140
 
145
141
 
146
142
  :param str category_id: The ID of the tag category in which the tag is
@@ -94,14 +94,12 @@ def get_tag_category(name: Optional[str] = None,
94
94
 
95
95
  ## Example Usage
96
96
 
97
- <!--Start PulumiCodeChooser -->
98
97
  ```python
99
98
  import pulumi
100
99
  import pulumi_vsphere as vsphere
101
100
 
102
101
  category = vsphere.get_tag_category(name="example-category")
103
102
  ```
104
- <!--End PulumiCodeChooser -->
105
103
 
106
104
 
107
105
  :param str name: The name of the tag category.
@@ -134,14 +132,12 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
134
132
 
135
133
  ## Example Usage
136
134
 
137
- <!--Start PulumiCodeChooser -->
138
135
  ```python
139
136
  import pulumi
140
137
  import pulumi_vsphere as vsphere
141
138
 
142
139
  category = vsphere.get_tag_category(name="example-category")
143
140
  ```
144
- <!--End PulumiCodeChooser -->
145
141
 
146
142
 
147
143
  :param str name: The name of the tag category.
@@ -73,7 +73,6 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
- <!--Start PulumiCodeChooser -->
77
76
  ```python
78
77
  import pulumi
79
78
  import pulumi_vsphere as vsphere
@@ -82,7 +81,6 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
82
81
  pool = vsphere.get_vapp_container(name="vapp-container-01",
83
82
  datacenter_id=datacenter.id)
84
83
  ```
85
- <!--End PulumiCodeChooser -->
86
84
 
87
85
 
88
86
  :param str datacenter_id: The managed object reference ID
@@ -114,7 +112,6 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
114
112
 
115
113
  ## Example Usage
116
114
 
117
- <!--Start PulumiCodeChooser -->
118
115
  ```python
119
116
  import pulumi
120
117
  import pulumi_vsphere as vsphere
@@ -123,7 +120,6 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
123
120
  pool = vsphere.get_vapp_container(name="vapp-container-01",
124
121
  datacenter_id=datacenter.id)
125
122
  ```
126
- <!--End PulumiCodeChooser -->
127
123
 
128
124
 
129
125
  :param str datacenter_id: The managed object reference ID
@@ -762,7 +762,6 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
762
762
  In the following example, a virtual machine template is returned by its
763
763
  unique name within the `Datacenter`.
764
764
 
765
- <!--Start PulumiCodeChooser -->
766
765
  ```python
767
766
  import pulumi
768
767
  import pulumi_vsphere as vsphere
@@ -771,11 +770,9 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
771
770
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
772
771
  datacenter_id=datacenter.id)
773
772
  ```
774
- <!--End PulumiCodeChooser -->
775
773
  In the following example, each virtual machine template is returned by its
776
774
  unique full path within the `Datacenter`.
777
775
 
778
- <!--Start PulumiCodeChooser -->
779
776
  ```python
780
777
  import pulumi
781
778
  import pulumi_vsphere as vsphere
@@ -786,7 +783,6 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
786
783
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
787
784
  datacenter_id=datacenter.id)
788
785
  ```
789
- <!--End PulumiCodeChooser -->
790
786
 
791
787
 
792
788
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
@@ -1015,7 +1011,6 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1015
1011
  In the following example, a virtual machine template is returned by its
1016
1012
  unique name within the `Datacenter`.
1017
1013
 
1018
- <!--Start PulumiCodeChooser -->
1019
1014
  ```python
1020
1015
  import pulumi
1021
1016
  import pulumi_vsphere as vsphere
@@ -1024,11 +1019,9 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1024
1019
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
1025
1020
  datacenter_id=datacenter.id)
1026
1021
  ```
1027
- <!--End PulumiCodeChooser -->
1028
1022
  In the following example, each virtual machine template is returned by its
1029
1023
  unique full path within the `Datacenter`.
1030
1024
 
1031
- <!--Start PulumiCodeChooser -->
1032
1025
  ```python
1033
1026
  import pulumi
1034
1027
  import pulumi_vsphere as vsphere
@@ -1039,7 +1032,6 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1039
1032
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
1040
1033
  datacenter_id=datacenter.id)
1041
1034
  ```
1042
- <!--End PulumiCodeChooser -->
1043
1035
 
1044
1036
 
1045
1037
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
@@ -96,7 +96,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
96
96
 
97
97
  ## Example Usage
98
98
 
99
- <!--Start PulumiCodeChooser -->
100
99
  ```python
101
100
  import pulumi
102
101
  import pulumi_vsphere as vsphere
@@ -108,7 +107,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
108
107
  rescan=True,
109
108
  filter="mpx.vmhba1:C0:T[12]:L0")
110
109
  ```
111
- <!--End PulumiCodeChooser -->
112
110
 
113
111
 
114
112
  :param str filter: A regular expression to filter the disks against. Only
@@ -151,7 +149,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
151
149
 
152
150
  ## Example Usage
153
151
 
154
- <!--Start PulumiCodeChooser -->
155
152
  ```python
156
153
  import pulumi
157
154
  import pulumi_vsphere as vsphere
@@ -163,7 +160,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
163
160
  rescan=True,
164
161
  filter="mpx.vmhba1:C0:T[12]:L0")
165
162
  ```
166
- <!--End PulumiCodeChooser -->
167
163
 
168
164
 
169
165
  :param str filter: A regular expression to filter the disks against. Only
@@ -202,6 +202,31 @@ class GuestOsCustomization(pulumi.CustomResource):
202
202
 
203
203
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
204
204
 
205
+ ## Example Usage
206
+
207
+ ```python
208
+ import pulumi
209
+ import pulumi_vsphere as vsphere
210
+
211
+ windows_customization = vsphere.GuestOsCustomization("windows_customization",
212
+ name="windows-spec",
213
+ type="Windows",
214
+ spec=vsphere.GuestOsCustomizationSpecArgs(
215
+ windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
216
+ run_once_command_lists=[
217
+ "command-1",
218
+ "command-2",
219
+ ],
220
+ computer_name="windows",
221
+ auto_logon=False,
222
+ auto_logon_count=0,
223
+ admin_password="VMware1!",
224
+ time_zone=4,
225
+ workgroup="workgroup",
226
+ ),
227
+ ))
228
+ ```
229
+
205
230
  :param str resource_name: The name of the resource.
206
231
  :param pulumi.ResourceOptions opts: Options for the resource.
207
232
  :param pulumi.Input[str] description: The description for the customization specification.
@@ -220,6 +245,31 @@ class GuestOsCustomization(pulumi.CustomResource):
220
245
 
221
246
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
222
247
 
248
+ ## Example Usage
249
+
250
+ ```python
251
+ import pulumi
252
+ import pulumi_vsphere as vsphere
253
+
254
+ windows_customization = vsphere.GuestOsCustomization("windows_customization",
255
+ name="windows-spec",
256
+ type="Windows",
257
+ spec=vsphere.GuestOsCustomizationSpecArgs(
258
+ windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
259
+ run_once_command_lists=[
260
+ "command-1",
261
+ "command-2",
262
+ ],
263
+ computer_name="windows",
264
+ auto_logon=False,
265
+ auto_logon_count=0,
266
+ admin_password="VMware1!",
267
+ time_zone=4,
268
+ workgroup="workgroup",
269
+ ),
270
+ ))
271
+ ```
272
+
223
273
  :param str resource_name: The name of the resource.
224
274
  :param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
225
275
  :param pulumi.ResourceOptions opts: Options for the resource.