Create IP Groups
IP Groups allow you to group and manage IP addresses for Azure Firewall rules. They can have a single IP address, multiple IP addresses, or one or more IP address ranges.
Create an IP Group - Azure portal
To create an IP Group by using the Azure portal:
On the Azure portal home page, select Create a resource.
In the search box, enter IP Groups, and then select IP Groups.
Select Create.
Select your subscription.
Select a resource group or create a new one.
Enter a unique name for your IP Group, and then select a region.
Select Next: IP addresses.
Type an IP address, multiple IP addresses, or IP address ranges.
There are two ways to enter IP addresses:
- You can manually enter them
- You can import them from a file
To import from a file, select Import from a file. You may either drag your file to the box or select Browse for files. If necessary, you can review and edit your uploaded IP addresses.
When you type an IP address, the portal validates it to check for overlapping, duplicates, and formatting issues.
When finished, select Review + Create.
Select Create.
Create an IP Group - Azure PowerShell
This example creates an IP Group with an address prefix and an IP address by using Azure PowerShell:
$ipGroup = @{
Name = 'ipGroup'
ResourceGroupName = 'Test-FW-RG'
Location = 'East US'
IpAddress = @('10.0.0.0/24', '192.168.1.10')
}
New-AzIpGroup @ipGroup
Create an IP Group - Azure CLI
This example creates an IP Group with an address prefix and an IP address by using the Azure CLI:
az network ip-group create \
--name ipGroup \
--resource-group Test-FW-RG \
--location eastus \
--ip-addresses '10.0.0.0/24' '192.168.1.10'