Help us shape the future of Go! Take the 2026 Go Developer Survey

virtualmachine

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualMachine

type VirtualMachine = *compute.VirtualMachine

func Create

func Create(ctx *pulumi.Context, mCtx *mc.Context, args *VirtualMachineArgs) (VirtualMachine, error)

Create virtual machine based on request + export to context adminusername and adminuserpassword

type VirtualMachineArgs

type VirtualMachineArgs struct {
	Prefix          string
	ComponentID     string
	ResourceGroup   *resources.ResourceGroup
	NetworkInteface *network.NetworkInterface
	VMSize          string

	SpotPrice *float64
	// community galary image ID
	Image *data.ImageReference
	// Windows required
	AdminUsername string
	// Linux required
	PrivateKey  *tls.PrivateKey
	AdminPasswd *random.RandomPassword
	// Only required if we need to set userdata
	UserDataAsBase64 pulumi.StringPtrInput
	Location         string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL