編輯

共用方式為


New-AzFirewallHubPublicIpAddress

Public Ip assoicated to the firewall on virtual hub

Syntax

New-AzFirewallHubPublicIpAddress
   [-Count <Int32>]
   [-Address <PSAzureFirewallPublicIpAddress[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Public Ip assoicated to the firewall on virtual hub

Examples

Example 1

New-AzFirewallHubPublicIpAddress -Count 2

This will create 2 public ips on the firewall attached to the virtual hub. This will create the ip address in the backend.We cannot provide the ipaddresses explicitly for a new firewall.

Example 2

$publicIp1 = New-AzFirewallPublicIpAddress -Address 10.2.3.4
$publicIp2 = New-AzFirewallPublicIpAddress -Address 20.56.37.46
New-AzFirewallHubPublicIpAddress -Count 3 -Address $publicIp1, $publicIp2

This will create 1 new public ip on the firewall by retain $publicIp1, $publicIp2 which are already exist on the firewall.

Parameters

-Address

The Public IP Addresses of the Firewall attached to a hub

Type:PSAzureFirewallPublicIpAddress[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Count

The count of public Ip addresses

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSAzureFirewallHubPublicIpAddresses