Set-AzurePublicIP
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Set-AzurePublicIP
Set-AzurePublicIP [-PublicIPName] <string> -VM <IPersistentVM> [<CommonParameters>]
Syntax
Parameter Set: Default
Set-AzurePublicIP [-PublicIPName] <String> [[-IdleTimeoutInMinutes] <Int32> ] -VM <IPersistentVM> [ <CommonParameters>]
Detailed Description
Adds a new Public IP to the virtual machine. The public ip is really assigned when the virtual machine is updated.
Parameters
-IdleTimeoutInMinutes<Int32>
Specifies the timeout period, in minutes, for this cmdlet.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PublicIPName<String>
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VM<IPersistentVM>
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 (https://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.
- Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
Requests for a public IP to be assigned to the virtual machine. The public ip allocation happens during update VM.
C:\PS>Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip | Update-AzureVM
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
Requests for a public IP to be assigned during VM creation.
C:\PS>New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername xyz -Password abcd123! | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US"