unable to get available ips in a subnet
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
I was trying to get available IPs with command:
az network vnet subnet list-available-ips --resource-group myRG --vnet-name myVNet --name mySubnet
and get the following response:
[
'list-available-ips' is misspelled or not recognized by the system.
Did you mean 'list-available-delegations' ?
Examples from AI knowledge base:
az network vnet subnet list -g MyResourceGroup --vnet-name MyVNet
List the subnets in a virtual network.
]
### Related command
az network vnet subnet list-available-ips --resource-group myRG --vnet-name myVNet --name mySubnet
### Errors
'list-available-ips' is misspelled or not recognized by the system.
Did you mean 'list-available-delegations' ?
Examples from AI knowledge base:
az network vnet subnet list -g MyResourceGroup --vnet-name MyVNet
List the subnets in a virtual network.
### Issue script & Debug output
[cloud-user@vm92492525a ~]$ az network vnet subnet list-available-ips --resource-group ServerlessWarmpoolRG --vnet-name=ServerlessWarmpoolVNet --name=default --debug
cli.knack.cli: Command arguments: ['network', 'vnet', 'subnet', 'list-available-ips', '--resource-group', 'ServerlessWarmpoolRG', '--vnet-name=ServerlessWarmpoolVNet', '--name=default', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'network': ['azure.cli.command_modules.natgateway', 'azure.cli.command_modules.network', 'azure.cli.command_modules.privatedns']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: natgateway 0.005 3 6
cli.azure.cli.core: network 0.480 144 668
cli.azure.cli.core: privatedns 0.009 14 66
cli.azure.cli.core: Total (3) 0.494 161 740
cli.azure.cli.core: Loaded 159 groups, 740 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : network vnet subnet list-available-ips
cli.azure.cli.core: Command table: network vnet subnet list
cli.azure.cli.core: remaining : available-ips
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/cloud-user/.azure/commands/2024-02-05.21-20-20.network_vnet_subnet.3549.log'.
az_command_data_logger: command args: network vnet subnet {} --resource-group {} --vnet-name={} --name={} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x7f839b17b048>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x7f839b0c5620>, .add_cache_arguments at 0x7f839b0c5730>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.azure.cli.core.command_recommender: "--resource-group" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "--vnet-name" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "--name" is an invalid parameter for command "network vnet subnet list-available-ips".
urllib3.connectionpool: Starting new HTTPS connection (1): app.aladdin.microsoft.com:443
urllib3.connectionpool: https://app.aladdin.microsoft.com:443 "GET /api/v1.0/suggestions?query=%7B%22command%22%3A+%22network+vnet+subnet+list-available-ips%22%2C+%22parameters%22%3A+%22%22%7D&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.38.1%22%2C+%22errorType%22%3A+%22UnknownSubcommand%22%2C+%22correlationId%22%3A+%2242bfdfb4-3408-465a-9bb5-e983555e7ccf%22%2C+%22subscriptionId%22%3A+%229025302e-7251-414e-a179-d9836c28b388%22%2C+%22eventId%22%3A+%2248ea088e-f0ac-4681-81e4-43ce5702a796%22%7D HTTP/1.1" 200 None
cli.azure.cli.core.command_recommender: "--resource-group" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "--vnet-name" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "--name" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "-g" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.command_recommender: "--vnet-name" is an invalid parameter for command "network vnet subnet list-available-ips".
cli.azure.cli.core.azclierror: 'list-available-ips' is misspelled or not recognized by the system.
az_command_data_logger: 'list-available-ips' is misspelled or not recognized by the system.
Did you mean 'list-available-delegations' ?
Examples from AI knowledge base:
az network vnet subnet list -g MyResourceGroup --vnet-name MyVNet
List the subnets in a virtual network.
https://aka.ms/cli_ref
Read more about the command in reference docs
cli.knack.cli: Event: Cli.PostExecute []
az_command_data_logger: exit code: 2
cli.__main__: Command ran in 1.425 seconds (init: 0.353, invoke: 1.072)
telemetry.save: Save telemetry record of length 3239 in cache
telemetry.check: Negative: The /home/cloud-user/.azure/telemetry.txt was modified at 2024-02-05 21:12:29.193996, which in less than 600.000000 s
### Expected behavior
should return the available IPs
### Environment Summary
$ az --version
azure-cli 2.38.1 *
core 2.38.1 *
telemetry 1.0.6 *
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.