Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List available IPs inside a subnet #15380

Closed
jkewley opened this issue Oct 1, 2020 · 8 comments
Closed

List available IPs inside a subnet #15380

jkewley opened this issue Oct 1, 2020 · 8 comments
Assignees
Labels
feature-request Network - Virtual Network Service Attention This issue is responsible by Azure service team.

Comments

@jkewley
Copy link

jkewley commented Oct 1, 2020

Is your feature request related to a problem? Please describe.
The CLI currently has a way to check for free IPs in a vnet by using az network vnet list-available-ips. This is very useful, but some enterprises have network architectures which would benefit from being able to specify a subnet qualifier. This was touched upon in #6876, but was closed after implementation of the vnet scope.

Describe the solution you'd like
I would like to see list-available-ips under az network vnet subnet:

az network vnet subnet list-available-ips 
                                   [--ids] #not sure if this is relevant
                                   [--name]
                                   [--vnet-name]
                                   [--resource-group]
                                   [--subscription]

This would behave as az network vnet list-available-ips does, but the IPs would be in the address space of the given subnet.

Describe alternatives you've considered
Compare ips returned from the az network vnet list-available-ips command against the subnet's address space, but I don't think the command supports paging so this may not be an option.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 1, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Oct 1, 2020
@yonzhan yonzhan assigned haroldrandom and unassigned yungezz Oct 1, 2020
@yonzhan yonzhan added Network az network vnet/lb/nic/dns/etc... and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 1, 2020
@yonzhan yonzhan added this to the S177 milestone Oct 1, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 1, 2020

feature request

@haroldrandom
Copy link
Contributor

Dup with #6876

@haroldrandom haroldrandom added Network - Virtual Network Service Attention This issue is responsible by Azure service team. labels Oct 9, 2020
@ghost
Copy link

ghost commented Oct 9, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

@timMSFT timMSFT added Network - Virtual Network and removed Network az network vnet/lb/nic/dns/etc... Network - Virtual Network labels Oct 9, 2020
@ghost
Copy link

ghost commented Oct 9, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vnetsuppgithub.

@yonzhan yonzhan modified the milestones: S177, Backlog Oct 12, 2020
@haroldrandom haroldrandom removed their assignment Oct 13, 2020
@jmorcar
Copy link

jmorcar commented Dec 9, 2021

Any update?

the command az network vnet list-available-ips only display 4 or 5 available ips but if you check in azure portal there is more than 500 ips available... Is there some command to list available ips in a array json or similar in a subnet?

@a-nldisr
Copy link

a-nldisr commented Apr 29, 2022

az network vnet list |jq ".[].subnets[].addressPrefix"

jq has been my goto tool for everything that outputs json.

Still looking for a way to go over all the subscriptions, but this lists all the subnets per subscription. The problem is I have to deal with more than 1 subscription, more like a couple of dozen.

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 29, 2022

@necusjz for awareness

@jsntcy
Copy link
Member

jsntcy commented Jun 16, 2022

Duplicated with #13853

@yonzhan yonzhan closed this as completed Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Network - Virtual Network Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests