[Issue] `azd down` error when deleting layers that have `AZURE_LOCATION` defined as output
- Dominant language
- Go
- Stars
- 569
- Forks
- 364
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 136
Description
**Output from `azd version`**
Run `azd version` and copy and paste the output here: azd version 1.22.5 (commit f1850eb726d560d54118b4fa1c5f770d5f38e7f5)
**Describe the bug**
I used layer provisioning to set up VNET and a simple ACA app (sample: https://github.com/[puicchan/cat-aca-vnet.) All networking resources are created in a separate resource group '${abbrs.resourcesResourceGroups}${environmentName}-network' (https://github.com/puicchan/cat-aca-vnet/blob/main/infra/network/main.bicep#L21)
I ran `azd down` and hit an error in Layer: network.
PS D:\Code\cat-aca-vnet> azd down
Deleting all resources and deployed code on Azure (azd down)
Local application code is not deleted when running 'azd down'.
Layer: main
• Container Registry: cr4chmm45qi5qp4
• Log Analytics workspace: log-4chmm45qi5qp4
• Application Insights: appi-4chmm45qi5qp4
• Portal dashboard: appid-4chmm45qi5qp4
• Container Apps Environment: cae-4chmm45qi5qp4
• Container App: ca-web-4chmm45qi5qp4
? Total resources to delete: 8, are you sure you want to continue? Yes
Deleting your resources can take some time.e you want to continue? (y/N) y
(✓) Done: Deleted resource group rg-cat15
Layer: network
ERROR: deleting infrastructure: error deleting Azure resources: deployment not found
**To Reproduce**
1. `azd init -t puicchan/cat-aca-vnet
2. azd up
3. azd down
**Expected behavior**
I should at least be prompted if I want to delete rg-xxx-network.
Contributor guide
Assessment
This issue has not been assessed yet.