MSDN Library

Set-AzureStaticVNetIP

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Set-AzureStaticVNetIP

Set the static VNet IP address information to a VM object.

Syntax

Parameter Set: Default
Set-AzureStaticVNetIP [-IPAddress] <String> -VM <IPersistentVM> [ <CommonParameters>]




Detailed Description

Set the static VNet IP address information to a VM object.

Parameters

-IPAddress<String>

Static VNet IP Address


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VM<IPersistentVM>

Persistent VM object.


Aliases

InputObject

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------


C:\PS># Prerequisite: VNet has been set up with SubNet# Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath;$vm = New-AzureVMConfig -Name $vmname -ImageName $img -InstanceSize $sz | Add-AzureProvisioningConfig -Windows -Password $pwd -AdminUsername $usr;$vm = Set-AzureSubNet -VM $vm -SubNetNames $sn;Set-AzureStaticVNETIP -IPAddress $ip -VM $vm;New-AzureVM -ServiceName $svc -VMs $vm -VNETName $vnetName -Location $loc;

Show:
© 2016 Microsoft