New-AzNetworkCloudIpAddressPoolObject

Create an in-memory object for IpAddressPool.

Syntax

New-AzNetworkCloudIpAddressPoolObject
   -Address <String[]>
   -Name <String>
   [-AutoAssign <BfdEnabled>]
   [-OnlyUseHostIP <BfdEnabled>]
   [<CommonParameters>]

Description

Create an in-memory object for IpAddressPool.

Examples

Example 1: Create an in-memory object for IpAddressPool.

New-AzNetworkCloudIpAddressPoolObject -Address @("198.51.102.0/24") -Name "pool1" -AutoAssign True -OnlyUseHostIP True

Address           AutoAssign Name  OnlyUseHostIP
-------           ---------- ----  -------------
{198.51.102.0/24} True       pool1 True

Create an in-memory object for IpAddressPool.

Parameters

-Address

The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range of IP addresses.

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

-AutoAssign

The indicator to determine if automatic allocation from the pool should occur.

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

-Name

The name used to identify this IP address pool for association with a BGP advertisement.

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

-OnlyUseHostIP

The indicator to prevent the use of IP addresses ending with .0 and .255 for this pool. Enabling this option will only use IP addresses between .1 and .254 inclusive.

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

Outputs

IPAddressPool