vsphere.GuestOsCustomization
Explore with Pulumi AI
The vsphere.GuestOsCustomization
resource can be used to a customization specification for a guest operating system.
NOTE: The name attribute is unique identifier for the guest OS spec per VC.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const windows = new vsphere.GuestOsCustomization("windows", {
name: "windows",
type: "Windows",
spec: {
windowsOptions: {
runOnceCommandLists: [
"command-1",
"command-2",
],
computerName: "windows",
autoLogon: false,
autoLogonCount: 0,
adminPassword: "VMware1!",
timeZone: 4,
workgroup: "workgroup",
},
},
});
import pulumi
import pulumi_vsphere as vsphere
windows = vsphere.GuestOsCustomization("windows",
name="windows",
type="Windows",
spec={
"windows_options": {
"run_once_command_lists": [
"command-1",
"command-2",
],
"computer_name": "windows",
"auto_logon": False,
"auto_logon_count": 0,
"admin_password": "VMware1!",
"time_zone": 4,
"workgroup": "workgroup",
},
})
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vsphere.NewGuestOsCustomization(ctx, "windows", &vsphere.GuestOsCustomizationArgs{
Name: pulumi.String("windows"),
Type: pulumi.String("Windows"),
Spec: &vsphere.GuestOsCustomizationSpecArgs{
WindowsOptions: &vsphere.GuestOsCustomizationSpecWindowsOptionsArgs{
RunOnceCommandLists: pulumi.StringArray{
pulumi.String("command-1"),
pulumi.String("command-2"),
},
ComputerName: pulumi.String("windows"),
AutoLogon: pulumi.Bool(false),
AutoLogonCount: pulumi.Int(0),
AdminPassword: pulumi.String("VMware1!"),
TimeZone: pulumi.Int(4),
Workgroup: pulumi.String("workgroup"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var windows = new VSphere.GuestOsCustomization("windows", new()
{
Name = "windows",
Type = "Windows",
Spec = new VSphere.Inputs.GuestOsCustomizationSpecArgs
{
WindowsOptions = new VSphere.Inputs.GuestOsCustomizationSpecWindowsOptionsArgs
{
RunOnceCommandLists = new[]
{
"command-1",
"command-2",
},
ComputerName = "windows",
AutoLogon = false,
AutoLogonCount = 0,
AdminPassword = "VMware1!",
TimeZone = 4,
Workgroup = "workgroup",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.GuestOsCustomization;
import com.pulumi.vsphere.GuestOsCustomizationArgs;
import com.pulumi.vsphere.inputs.GuestOsCustomizationSpecArgs;
import com.pulumi.vsphere.inputs.GuestOsCustomizationSpecWindowsOptionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var windows = new GuestOsCustomization("windows", GuestOsCustomizationArgs.builder()
.name("windows")
.type("Windows")
.spec(GuestOsCustomizationSpecArgs.builder()
.windowsOptions(GuestOsCustomizationSpecWindowsOptionsArgs.builder()
.runOnceCommandLists(
"command-1",
"command-2")
.computerName("windows")
.autoLogon(false)
.autoLogonCount(0)
.adminPassword("VMware1!")
.timeZone(4)
.workgroup("workgroup")
.build())
.build())
.build());
}
}
resources:
windows:
type: vsphere:GuestOsCustomization
properties:
name: windows
type: Windows
spec:
windowsOptions:
runOnceCommandLists:
- command-1
- command-2
computerName: windows
autoLogon: false
autoLogonCount: 0
adminPassword: VMware1!
timeZone: 4
workgroup: workgroup
Create GuestOsCustomization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GuestOsCustomization(name: string, args: GuestOsCustomizationArgs, opts?: CustomResourceOptions);
@overload
def GuestOsCustomization(resource_name: str,
args: GuestOsCustomizationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GuestOsCustomization(resource_name: str,
opts: Optional[ResourceOptions] = None,
spec: Optional[GuestOsCustomizationSpecArgs] = None,
type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewGuestOsCustomization(ctx *Context, name string, args GuestOsCustomizationArgs, opts ...ResourceOption) (*GuestOsCustomization, error)
public GuestOsCustomization(string name, GuestOsCustomizationArgs args, CustomResourceOptions? opts = null)
public GuestOsCustomization(String name, GuestOsCustomizationArgs args)
public GuestOsCustomization(String name, GuestOsCustomizationArgs args, CustomResourceOptions options)
type: vsphere:GuestOsCustomization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GuestOsCustomizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GuestOsCustomizationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GuestOsCustomizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GuestOsCustomizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GuestOsCustomizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var guestOsCustomizationResource = new VSphere.GuestOsCustomization("guestOsCustomizationResource", new()
{
Spec = new VSphere.Inputs.GuestOsCustomizationSpecArgs
{
DnsServerLists = new[]
{
"string",
},
DnsSuffixLists = new[]
{
"string",
},
Ipv4Gateway = "string",
Ipv6Gateway = "string",
LinuxOptions = new VSphere.Inputs.GuestOsCustomizationSpecLinuxOptionsArgs
{
Domain = "string",
HostName = "string",
HwClockUtc = false,
ScriptText = "string",
TimeZone = "string",
},
NetworkInterfaces = new[]
{
new VSphere.Inputs.GuestOsCustomizationSpecNetworkInterfaceArgs
{
DnsDomain = "string",
DnsServerLists = new[]
{
"string",
},
Ipv4Address = "string",
Ipv4Netmask = 0,
Ipv6Address = "string",
Ipv6Netmask = 0,
},
},
WindowsOptions = new VSphere.Inputs.GuestOsCustomizationSpecWindowsOptionsArgs
{
ComputerName = "string",
DomainOu = "string",
AutoLogonCount = 0,
AutoLogon = false,
DomainAdminPassword = "string",
DomainAdminUser = "string",
AdminPassword = "string",
FullName = "string",
JoinDomain = "string",
OrganizationName = "string",
ProductKey = "string",
RunOnceCommandLists = new[]
{
"string",
},
TimeZone = 0,
Workgroup = "string",
},
WindowsSysprepText = "string",
},
Type = "string",
Description = "string",
Name = "string",
});
example, err := vsphere.NewGuestOsCustomization(ctx, "guestOsCustomizationResource", &vsphere.GuestOsCustomizationArgs{
Spec: &vsphere.GuestOsCustomizationSpecArgs{
DnsServerLists: pulumi.StringArray{
pulumi.String("string"),
},
DnsSuffixLists: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4Gateway: pulumi.String("string"),
Ipv6Gateway: pulumi.String("string"),
LinuxOptions: &vsphere.GuestOsCustomizationSpecLinuxOptionsArgs{
Domain: pulumi.String("string"),
HostName: pulumi.String("string"),
HwClockUtc: pulumi.Bool(false),
ScriptText: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
NetworkInterfaces: vsphere.GuestOsCustomizationSpecNetworkInterfaceArray{
&vsphere.GuestOsCustomizationSpecNetworkInterfaceArgs{
DnsDomain: pulumi.String("string"),
DnsServerLists: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4Address: pulumi.String("string"),
Ipv4Netmask: pulumi.Int(0),
Ipv6Address: pulumi.String("string"),
Ipv6Netmask: pulumi.Int(0),
},
},
WindowsOptions: &vsphere.GuestOsCustomizationSpecWindowsOptionsArgs{
ComputerName: pulumi.String("string"),
DomainOu: pulumi.String("string"),
AutoLogonCount: pulumi.Int(0),
AutoLogon: pulumi.Bool(false),
DomainAdminPassword: pulumi.String("string"),
DomainAdminUser: pulumi.String("string"),
AdminPassword: pulumi.String("string"),
FullName: pulumi.String("string"),
JoinDomain: pulumi.String("string"),
OrganizationName: pulumi.String("string"),
ProductKey: pulumi.String("string"),
RunOnceCommandLists: pulumi.StringArray{
pulumi.String("string"),
},
TimeZone: pulumi.Int(0),
Workgroup: pulumi.String("string"),
},
WindowsSysprepText: pulumi.String("string"),
},
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var guestOsCustomizationResource = new GuestOsCustomization("guestOsCustomizationResource", GuestOsCustomizationArgs.builder()
.spec(GuestOsCustomizationSpecArgs.builder()
.dnsServerLists("string")
.dnsSuffixLists("string")
.ipv4Gateway("string")
.ipv6Gateway("string")
.linuxOptions(GuestOsCustomizationSpecLinuxOptionsArgs.builder()
.domain("string")
.hostName("string")
.hwClockUtc(false)
.scriptText("string")
.timeZone("string")
.build())
.networkInterfaces(GuestOsCustomizationSpecNetworkInterfaceArgs.builder()
.dnsDomain("string")
.dnsServerLists("string")
.ipv4Address("string")
.ipv4Netmask(0)
.ipv6Address("string")
.ipv6Netmask(0)
.build())
.windowsOptions(GuestOsCustomizationSpecWindowsOptionsArgs.builder()
.computerName("string")
.domainOu("string")
.autoLogonCount(0)
.autoLogon(false)
.domainAdminPassword("string")
.domainAdminUser("string")
.adminPassword("string")
.fullName("string")
.joinDomain("string")
.organizationName("string")
.productKey("string")
.runOnceCommandLists("string")
.timeZone(0)
.workgroup("string")
.build())
.windowsSysprepText("string")
.build())
.type("string")
.description("string")
.name("string")
.build());
guest_os_customization_resource = vsphere.GuestOsCustomization("guestOsCustomizationResource",
spec=vsphere.GuestOsCustomizationSpecArgs(
dns_server_lists=["string"],
dns_suffix_lists=["string"],
ipv4_gateway="string",
ipv6_gateway="string",
linux_options=vsphere.GuestOsCustomizationSpecLinuxOptionsArgs(
domain="string",
host_name="string",
hw_clock_utc=False,
script_text="string",
time_zone="string",
),
network_interfaces=[vsphere.GuestOsCustomizationSpecNetworkInterfaceArgs(
dns_domain="string",
dns_server_lists=["string"],
ipv4_address="string",
ipv4_netmask=0,
ipv6_address="string",
ipv6_netmask=0,
)],
windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
computer_name="string",
domain_ou="string",
auto_logon_count=0,
auto_logon=False,
domain_admin_password="string",
domain_admin_user="string",
admin_password="string",
full_name="string",
join_domain="string",
organization_name="string",
product_key="string",
run_once_command_lists=["string"],
time_zone=0,
workgroup="string",
),
windows_sysprep_text="string",
),
type="string",
description="string",
name="string")
const guestOsCustomizationResource = new vsphere.GuestOsCustomization("guestOsCustomizationResource", {
spec: {
dnsServerLists: ["string"],
dnsSuffixLists: ["string"],
ipv4Gateway: "string",
ipv6Gateway: "string",
linuxOptions: {
domain: "string",
hostName: "string",
hwClockUtc: false,
scriptText: "string",
timeZone: "string",
},
networkInterfaces: [{
dnsDomain: "string",
dnsServerLists: ["string"],
ipv4Address: "string",
ipv4Netmask: 0,
ipv6Address: "string",
ipv6Netmask: 0,
}],
windowsOptions: {
computerName: "string",
domainOu: "string",
autoLogonCount: 0,
autoLogon: false,
domainAdminPassword: "string",
domainAdminUser: "string",
adminPassword: "string",
fullName: "string",
joinDomain: "string",
organizationName: "string",
productKey: "string",
runOnceCommandLists: ["string"],
timeZone: 0,
workgroup: "string",
},
windowsSysprepText: "string",
},
type: "string",
description: "string",
name: "string",
});
type: vsphere:GuestOsCustomization
properties:
description: string
name: string
spec:
dnsServerLists:
- string
dnsSuffixLists:
- string
ipv4Gateway: string
ipv6Gateway: string
linuxOptions:
domain: string
hostName: string
hwClockUtc: false
scriptText: string
timeZone: string
networkInterfaces:
- dnsDomain: string
dnsServerLists:
- string
ipv4Address: string
ipv4Netmask: 0
ipv6Address: string
ipv6Netmask: 0
windowsOptions:
adminPassword: string
autoLogon: false
autoLogonCount: 0
computerName: string
domainAdminPassword: string
domainAdminUser: string
domainOu: string
fullName: string
joinDomain: string
organizationName: string
productKey: string
runOnceCommandLists:
- string
timeZone: 0
workgroup: string
windowsSysprepText: string
type: string
GuestOsCustomization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GuestOsCustomization resource accepts the following input properties:
- Spec
Pulumi.
VSphere. Inputs. Guest Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- Type string
- The type of customization specification: One among: Windows, Linux.
- Description string
- The description for the customization specification.
- Name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- Spec
Guest
Os Customization Spec Args - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- Type string
- The type of customization specification: One among: Windows, Linux.
- Description string
- The description for the customization specification.
- Name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type String
- The type of customization specification: One among: Windows, Linux.
- description String
- The description for the customization specification.
- name String
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type string
- The type of customization specification: One among: Windows, Linux.
- description string
- The description for the customization specification.
- name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec Args - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type str
- The type of customization specification: One among: Windows, Linux.
- description str
- The description for the customization specification.
- name str
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec Property Map
- Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type String
- The type of customization specification: One among: Windows, Linux.
- description String
- The description for the customization specification.
- name String
- The name of the customization specification is the unique identifier per vCenter Server instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the GuestOsCustomization resource produces the following output properties:
- Change
Version string - The number of last changed version to the customization specification.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The time of last modification to the customization specification.
- Change
Version string - The number of last changed version to the customization specification.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The time of last modification to the customization specification.
- change
Version String - The number of last changed version to the customization specification.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The time of last modification to the customization specification.
- change
Version string - The number of last changed version to the customization specification.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update stringTime - The time of last modification to the customization specification.
- change_
version str - The number of last changed version to the customization specification.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
update_ strtime - The time of last modification to the customization specification.
- change
Version String - The number of last changed version to the customization specification.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The time of last modification to the customization specification.
Look up Existing GuestOsCustomization Resource
Get an existing GuestOsCustomization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GuestOsCustomizationState, opts?: CustomResourceOptions): GuestOsCustomization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
change_version: Optional[str] = None,
description: Optional[str] = None,
last_update_time: Optional[str] = None,
name: Optional[str] = None,
spec: Optional[GuestOsCustomizationSpecArgs] = None,
type: Optional[str] = None) -> GuestOsCustomization
func GetGuestOsCustomization(ctx *Context, name string, id IDInput, state *GuestOsCustomizationState, opts ...ResourceOption) (*GuestOsCustomization, error)
public static GuestOsCustomization Get(string name, Input<string> id, GuestOsCustomizationState? state, CustomResourceOptions? opts = null)
public static GuestOsCustomization get(String name, Output<String> id, GuestOsCustomizationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Change
Version string - The number of last changed version to the customization specification.
- Description string
- The description for the customization specification.
- Last
Update stringTime - The time of last modification to the customization specification.
- Name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- Spec
Pulumi.
VSphere. Inputs. Guest Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- Type string
- The type of customization specification: One among: Windows, Linux.
- Change
Version string - The number of last changed version to the customization specification.
- Description string
- The description for the customization specification.
- Last
Update stringTime - The time of last modification to the customization specification.
- Name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- Spec
Guest
Os Customization Spec Args - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- Type string
- The type of customization specification: One among: Windows, Linux.
- change
Version String - The number of last changed version to the customization specification.
- description String
- The description for the customization specification.
- last
Update StringTime - The time of last modification to the customization specification.
- name String
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type String
- The type of customization specification: One among: Windows, Linux.
- change
Version string - The number of last changed version to the customization specification.
- description string
- The description for the customization specification.
- last
Update stringTime - The time of last modification to the customization specification.
- name string
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type string
- The type of customization specification: One among: Windows, Linux.
- change_
version str - The number of last changed version to the customization specification.
- description str
- The description for the customization specification.
- last_
update_ strtime - The time of last modification to the customization specification.
- name str
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec
Guest
Os Customization Spec Args - Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type str
- The type of customization specification: One among: Windows, Linux.
- change
Version String - The number of last changed version to the customization specification.
- description String
- The description for the customization specification.
- last
Update StringTime - The time of last modification to the customization specification.
- name String
- The name of the customization specification is the unique identifier per vCenter Server instance.
- spec Property Map
- Container object for the Guest OS properties about to be customized . See virtual machine customizations
- type String
- The type of customization specification: One among: Windows, Linux.
Supporting Types
GuestOsCustomizationSpec, GuestOsCustomizationSpecArgs
- Dns
Server List<string>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- Dns
Suffix List<string>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- Ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Linux
Options Pulumi.VSphere. Inputs. Guest Os Customization Spec Linux Options - A list of configuration options specific to Linux virtual machines.
- Network
Interfaces List<Pulumi.VSphere. Inputs. Guest Os Customization Spec Network Interface> - A specification of network interface configuration options.
- Windows
Options Pulumi.VSphere. Inputs. Guest Os Customization Spec Windows Options - A list of configuration options specific to Windows virtual machines.
- Windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- Dns
Server []stringLists - The list of DNS servers for a virtual network adapter with a static IP address.
- Dns
Suffix []stringLists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- Ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Linux
Options GuestOs Customization Spec Linux Options - A list of configuration options specific to Linux virtual machines.
- Network
Interfaces []GuestOs Customization Spec Network Interface - A specification of network interface configuration options.
- Windows
Options GuestOs Customization Spec Windows Options - A list of configuration options specific to Windows virtual machines.
- Windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- dns
Server List<String>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix List<String>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway String
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway String
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options GuestOs Customization Spec Linux Options - A list of configuration options specific to Linux virtual machines.
- network
Interfaces List<GuestOs Customization Spec Network Interface> - A specification of network interface configuration options.
- windows
Options GuestOs Customization Spec Windows Options - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep StringText - Use this option to specify a windows sysprep file directly.
- dns
Server string[]Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix string[]Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options GuestOs Customization Spec Linux Options - A list of configuration options specific to Linux virtual machines.
- network
Interfaces GuestOs Customization Spec Network Interface[] - A specification of network interface configuration options.
- windows
Options GuestOs Customization Spec Windows Options - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- dns_
server_ Sequence[str]lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns_
suffix_ Sequence[str]lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4_
gateway str - The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6_
gateway str - The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux_
options GuestOs Customization Spec Linux Options - A list of configuration options specific to Linux virtual machines.
- network_
interfaces Sequence[GuestOs Customization Spec Network Interface] - A specification of network interface configuration options.
- windows_
options GuestOs Customization Spec Windows Options - A list of configuration options specific to Windows virtual machines.
- windows_
sysprep_ strtext - Use this option to specify a windows sysprep file directly.
- dns
Server List<String>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix List<String>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway String
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway String
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options Property Map - A list of configuration options specific to Linux virtual machines.
- network
Interfaces List<Property Map> - A specification of network interface configuration options.
- windows
Options Property Map - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep StringText - Use this option to specify a windows sysprep file directly.
GuestOsCustomizationSpecLinuxOptions, GuestOsCustomizationSpecLinuxOptionsArgs
- Domain string
- The domain name for this virtual machine.
- Host
Name string - The hostname for this virtual machine.
- Hw
Clock boolUtc - Specifies whether or not the hardware clock should be in UTC or not.
- Script
Text string - The customization script to run before and or after guest customization
- Time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- Domain string
- The domain name for this virtual machine.
- Host
Name string - The hostname for this virtual machine.
- Hw
Clock boolUtc - Specifies whether or not the hardware clock should be in UTC or not.
- Script
Text string - The customization script to run before and or after guest customization
- Time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain String
- The domain name for this virtual machine.
- host
Name String - The hostname for this virtual machine.
- hw
Clock BooleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text String - The customization script to run before and or after guest customization
- time
Zone String - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain string
- The domain name for this virtual machine.
- host
Name string - The hostname for this virtual machine.
- hw
Clock booleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text string - The customization script to run before and or after guest customization
- time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain str
- The domain name for this virtual machine.
- host_
name str - The hostname for this virtual machine.
- hw_
clock_ boolutc - Specifies whether or not the hardware clock should be in UTC or not.
- script_
text str - The customization script to run before and or after guest customization
- time_
zone str - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain String
- The domain name for this virtual machine.
- host
Name String - The hostname for this virtual machine.
- hw
Clock BooleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text String - The customization script to run before and or after guest customization
- time
Zone String - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
GuestOsCustomizationSpecNetworkInterface, GuestOsCustomizationSpecNetworkInterfaceArgs
- Dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- Dns
Server List<string>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- Ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- Ipv4Netmask int
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- Ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- Ipv6Netmask int
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- Dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- Dns
Server []stringLists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- Ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- Ipv4Netmask int
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- Ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- Ipv6Netmask int
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain String - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server List<String>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address String
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask Integer
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address String
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask Integer
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server string[]Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask number
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask number
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns_
domain str - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns_
server_ Sequence[str]lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4_
address str - The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4_
netmask int - The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6_
address str - The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6_
netmask int - The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain String - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server List<String>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address String
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask Number
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address String
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask Number
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
GuestOsCustomizationSpecWindowsOptions, GuestOsCustomizationSpecWindowsOptionsArgs
- Computer
Name string - The host name for this virtual machine.
- Admin
Password string - The new administrator password for this virtual machine.
- Auto
Logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- Auto
Logon intCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- Domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- Domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- Domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- Full
Name string - The full name of the user of this virtual machine.
- Join
Domain string - The domain that the virtual machine should join.
- Organization
Name string - The organization name this virtual machine is being installed for.
- Product
Key string - The product key for this virtual machine.
- Run
Once List<string>Command Lists - A list of commands to run at first user logon, after guest customization.
- Time
Zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- Workgroup string
- The workgroup for this virtual machine if not joining a domain.
- Computer
Name string - The host name for this virtual machine.
- Admin
Password string - The new administrator password for this virtual machine.
- Auto
Logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- Auto
Logon intCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- Domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- Domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- Domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- Full
Name string - The full name of the user of this virtual machine.
- Join
Domain string - The domain that the virtual machine should join.
- Organization
Name string - The organization name this virtual machine is being installed for.
- Product
Key string - The product key for this virtual machine.
- Run
Once []stringCommand Lists - A list of commands to run at first user logon, after guest customization.
- Time
Zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- Workgroup string
- The workgroup for this virtual machine if not joining a domain.
- computer
Name String - The host name for this virtual machine.
- admin
Password String - The new administrator password for this virtual machine.
- auto
Logon Boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon IntegerCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin StringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin StringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou String - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name String - The full name of the user of this virtual machine.
- join
Domain String - The domain that the virtual machine should join.
- organization
Name String - The organization name this virtual machine is being installed for.
- product
Key String - The product key for this virtual machine.
- run
Once List<String>Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone Integer - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup String
- The workgroup for this virtual machine if not joining a domain.
- computer
Name string - The host name for this virtual machine.
- admin
Password string - The new administrator password for this virtual machine.
- auto
Logon boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon numberCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name string - The full name of the user of this virtual machine.
- join
Domain string - The domain that the virtual machine should join.
- organization
Name string - The organization name this virtual machine is being installed for.
- product
Key string - The product key for this virtual machine.
- run
Once string[]Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone number - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup string
- The workgroup for this virtual machine if not joining a domain.
- computer_
name str - The host name for this virtual machine.
- admin_
password str - The new administrator password for this virtual machine.
- auto_
logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- auto_
logon_ intcount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain_
admin_ strpassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain_
admin_ struser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain_
ou str - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full_
name str - The full name of the user of this virtual machine.
- join_
domain str - The domain that the virtual machine should join.
- organization_
name str - The organization name this virtual machine is being installed for.
- product_
key str - The product key for this virtual machine.
- run_
once_ Sequence[str]command_ lists - A list of commands to run at first user logon, after guest customization.
- time_
zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup str
- The workgroup for this virtual machine if not joining a domain.
- computer
Name String - The host name for this virtual machine.
- admin
Password String - The new administrator password for this virtual machine.
- auto
Logon Boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon NumberCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin StringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin StringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou String - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name String - The full name of the user of this virtual machine.
- join
Domain String - The domain that the virtual machine should join.
- organization
Name String - The organization name this virtual machine is being installed for.
- product
Key String - The product key for this virtual machine.
- run
Once List<String>Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone Number - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup String
- The workgroup for this virtual machine if not joining a domain.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.