az snapshot delete does not delete all snapshots
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
According to the [documentation](https://docs.microsoft.com/en-us/cli/azure/snapshot?view=azure-cli-latest#az_snapshot_delete), "One or more resource IDs" can be passed with the "--ids" parameter. When deleting multiple snapshots by providing multiple ids however, only the first resource gets deleted. The "--ids" parameter is also not aligned with "--name" parameter which only accepts a single snapshot name.
**Command Name**
`az snapshot delete --ids {}`
**Errors:**
```
None, command succeeds.
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Create at least two managed disk snapshots
- `az snapshot delete --ids "$snapshot1_resource_id $snapshot2_resource_id"`
## Expected Behavior
Both `$snapshot1_resource_id $snapshot2_resource_id` are deleted.
## Environment Summary
```
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.28.0
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.