Get-​Azure​Rm​Public​Ip​Address

Gets a public IP address.

Syntax

Get-AzureRmPublicIpAddress
   -ExpandResource <String>
   -Name <String>
   -ResourceGroupName <String>
   [<CommonParameters>]
Get-AzureRmPublicIpAddress
   -ExpandResource <String>
   -IpConfigurationName <String>
   -Name <String>
   -NetworkInterfaceName <String>
   -ResourceGroupName <String>
   -VirtualMachineIndex <String>
   -VirtualMachineScaleSetName <String>
   [<CommonParameters>]
Get-AzureRmPublicIpAddress
   [-IpConfigurationName <String>]
   [-Name <String>]
   [-NetworkInterfaceName <String>]
   -ResourceGroupName <String>
   [-VirtualMachineIndex <String>]
   [-VirtualMachineScaleSetName <String>]
   [<CommonParameters>]
Get-AzureRmPublicIpAddress
   [-Name <String>]
   [-ResourceGroupName <String>]
   [<CommonParameters>]

Description

The Get-AzureRmPublicIPAddress cmdlet gets one or more public IP addresses in a resource group.

Examples

1: Get a public IP resource

$publicIp = Get-AzureRmPublicIpAddress -Name $publicIpName -ResourceGroupName $rgName $publicIp

This command gets a public IP address resource with name $publicIPName in the resource group $rgName.

Required Parameters

-ExpandResource
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-IpConfigurationName

Network Interface IP Configuration Name.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the public IP address that this cmdlet gets.

Type:String
Aliases:ResourceName
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NetworkInterfaceName

Virtual Machine Network Interface Name.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that contains the public IP address that this cmdlet gets.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VirtualMachineIndex

Virtual Machine Index.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VirtualMachineScaleSetName

Virtual Machine Scale Set Name.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False