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

Gets a public IP address.

Syntax

Get-AzureRmPublicIpAddress
   -ExpandResource <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -ResourceGroupName <String>
   [<CommonParameters>]
Get-AzureRmPublicIpAddress
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-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

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
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
-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