-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
InvalidArgumentValue: --subnet: Invalid format #28757
Comments
Hi @Marusyk, 2.57.0 is not the latest Azure CLI(2.59.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. |
Thank you for opening this issue, we will look into it. |
could you input |
the problem is that the same script works in PowerShell but doesn't work in Bash. I don't want to change it or add other params. |
ah, could you please share the entire debugging log in bash (appending --debug)? |
it works from other terminal |
It should not be closed. I have the same problem creating NIC in ZSH. |
Describe the bug
I'm trying to create a private endpoint by using Azure CLI in bash terminal.
First, I read ASK subnet id by the command
then I use this variable in the command
this returns me the error
but as you can see above, the
$akssubnet
has exactly this formatRelated command
az network private-endpoint create
Errors
InvalidArgumentValue: --subnet: Invalid format: resource id should be in '/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Network/virtualNetworks/{vnet_name}/subnets/{}' format.
Issue script & Debug output
Expected behavior
no error because the format of the value is correct
Environment Summary
azure-cli 2.57.0 *
core 2.57.0 *
telemetry 1.1.0
Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2
Additional context
No response
The text was updated successfully, but these errors were encountered: