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 }
Click to show internal directories.
Click to hide internal directories.