< Back
Get-AzurePublicIP
Post
NAME Get-AzurePublicIP
SYNOPSIS
Gets the Public IP information for an Azure virtual machine.
SYNTAX
Get-AzurePublicIP [[-PublicIPName] <String>] -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>]
[-InformationVariable <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzurePublicIP cmdlet gets the Public IP information for an Azure virtual machine. To obtain the IP address of the Public IP, use the Get-AzureVM
cmdlet.
PARAMETERS
-PublicIPName <String>
Specifies the Public IP name.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VM <IPersistentVM>
Specifies the virtual machine for which this cmdlet gets Public IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue, ByPropertyName)
Accept wildcard characters? false
-Profile <AzureSMProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationAction <ActionPreference>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationVariable <String>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Microsoft.WindowsAzure.Commands.ServiceManagement.AssignPublicIPCollection
NOTES
-------------------------- Example 1: Get Public IP configuration --------------------------
PS C:\\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Get-AzurePublicIP
This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual
machine to the current cmdlet by using the pipeline operator. The current cmdlet gets Public IP configuration from the virtual machine.
RELATED LINKS
Get-AzureVM
Remove-AzurePublicIP
Set-AzurePublicIP
SYNOPSIS
Gets the Public IP information for an Azure virtual machine.
SYNTAX
Get-AzurePublicIP [[-PublicIPName] <String>] -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>]
[-InformationVariable <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzurePublicIP cmdlet gets the Public IP information for an Azure virtual machine. To obtain the IP address of the Public IP, use the Get-AzureVM
cmdlet.
PARAMETERS
-PublicIPName <String>
Specifies the Public IP name.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VM <IPersistentVM>
Specifies the virtual machine for which this cmdlet gets Public IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue, ByPropertyName)
Accept wildcard characters? false
-Profile <AzureSMProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationAction <ActionPreference>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationVariable <String>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Microsoft.WindowsAzure.Commands.ServiceManagement.AssignPublicIPCollection
NOTES
-------------------------- Example 1: Get Public IP configuration --------------------------
PS C:\\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Get-AzurePublicIP
This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual
machine to the current cmdlet by using the pipeline operator. The current cmdlet gets Public IP configuration from the virtual machine.
RELATED LINKS
Get-AzureVM
Remove-AzurePublicIP
Set-AzurePublicIP