Open Marusyk opened 5 months ago
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.
Hi @Marusyk Find similar issue https://github.com/Azure/azure-cli/issues/11254. | ||
---|---|---|
Issue title | Example format of --subnet-id for az redis create | |
Create time | 2019-11-15 | |
Comment number | 0 |
Please confirm if this resolves your issue.
Thank you for opening this issue, we will look into it.
Upgraded to the latest version but the problem still exists
could you input --vnet-name {vnet} --subnet {subnet}
at the same time (both using name)?
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. Could you please explain what is the problem in Bash?
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