Skip to content

[Feature]: Azure Powershell command to list first n Private IP address for a given subnet #26730

Open
@RSwarnkar

Description

@RSwarnkar

Description of the new feature

Requesting this from this StackOverflow.
I have subnet that shows 3 available IPs as below. Is there a quick way to fetch the first 2 available IPs?

It seems there is Az CLI command but no Az PWSH Command. Can this be implemented?

az network vnet subnet list-available-ips --resource-group <your-resource-grp> --vnet-name vnet01 -n subnet-1 --query [0:2]

Proposed implementation details (optional)

List-AzVirtualNetworkSubnetFreeIP -Name my-subnet-name -VnetName my-vnet -ResourceGroupName my-net-rg -Count MAX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions