-
Notifications
You must be signed in to change notification settings - Fork 3.4k
--ids argument documentation is incorrect #29502
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotSimilar-Issueact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotSimilar-Issueact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
az vm show --helpincludes this:Note that it says space-delimited. However using spaces between resource IDs is not enough, newlines have to be used.
Example:
Some other commands completely fail with confusing error messages when
--idsare not newline delimited. Basically usingtsvoutput ID from various list commands works here.Related command
az vm show, az vm start etc
Errors
When used with
az vm start --ids:(ResourceNotFound) The Resource 'Microsoft.Compute/virtualMachines/ ' under resource group '' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.Compute/virtualMachines/ ' under resource group '' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Issue script & Debug output
This is I think the important part where for example vm start fails:
It encodes the space and uses it as part of resource name it's requesting
Expected behavior
Either of the following would be acceptable:
Environment Summary
Additional context
No response