azure

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webserver

type Webserver struct {
	pulumi.ResourceState

	PublicIP         *network.PublicIp
	NetworkInterface *network.NetworkInterface
	VM               *compute.VirtualMachine
}

Webserver is a reusable web server component that creates and exports a NIC, public IP, and VM.

func NewWebserver

func NewWebserver(ctx *pulumi.Context, name string, args *WebserverArgs, opts ...pulumi.ResourceOption) (*Webserver, error)

NewWebserver allocates a new web server VM, NIC, and public IP address.

func (*Webserver) GetIPAddress

func (ws *Webserver) GetIPAddress(ctx *pulumi.Context) pulumi.StringOutput

type WebserverArgs

type WebserverArgs struct {
	// A required username for the VM login.
	Username pulumi.StringInput

	// A required encrypted password for the VM password.
	Password pulumi.StringInput

	// An optional boot script that the VM will use.
	BootScript pulumi.StringInput

	// An optional VM size; if unspecified, Standard_A0 (micro) will be used.
	VMSize pulumi.StringInput

	// A required Resource Group in which to create the VM
	ResourceGroupName pulumi.StringInput

	// A required Subnet in which to deploy the VM
	SubnetID pulumi.StringInput
}

Jump to

Keyboard shortcuts

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