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

unable to get available ips in a subnet #28304

Open
jeffxi opened this issue Feb 5, 2024 · 3 comments
Open

unable to get available ips in a subnet #28304

jeffxi opened this issue Feb 5, 2024 · 3 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@jeffxi
Copy link

jeffxi commented Feb 5, 2024

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 [<function CLILogging.on_global_arguments at 0x7f839cd78d90>, <function OutputProducer.on_global_arguments at 0x7f839c8bce18>, <function CLIQuery.on_global_arguments at 0x7f839c654400>]
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 [<function AzCliLogging.init_command_file_logging at 0x7f839b5ee378>]
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 [<function register_global_subscription_argument..add_subscription_parameter at 0x7f839b17b048>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7f839b0c5620>, <function register_cache_arguments..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 [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f839b5ee598>]
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

@jeffxi jeffxi added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 5, 2024
Copy link

Hi @jeffxi,

2.38.1 is not the latest Azure CLI(2.56.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Feb 5, 2024
Copy link

Hi @jeffxi
Find similar issue #23997.

Issue title Incorrect output of the az network vnet subnet list-available-ips command
Create time 2022-09-24
Comment number 19

Please confirm if this resolves your issue.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... labels Feb 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 5, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 5, 2024

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added this to the Backlog milestone Feb 5, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants