Container instances operations in wrong order
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Describe the bug**
When I chain delete + creation of a container instance by CLI, it seems the delete operation is processed after the creation. I can see my container instances for few seconds and then it disappears.
**To Reproduce**
```
az container stop --resource-group $CI_GROUP --name $CI_NAME;
az container delete --resource-group $CI_GROUP --name $CI_NAME -y;
az container create --subnet workers --resource-group $CI_GROUP --name $CI_NAME --image $CI_IMAGE ....
```
**Expected behavior**
Respect the operation order, by doing that I can't deploy a new container.
**Environment summary**
```
➜ az --version
azure-cli 2.1.0 *
command-modules-nspkg 2.0.3
core 2.1.0 *
nspkg 3.0.4
telemetry 1.0.4
```
**Additional context**
I have to stop/delete/recreate my container because of [this situation](https://github.com/Azure/azure-cli/issues/14625)
Contributor guide
Assessment
This issue has not been assessed yet.