Azure / Azure/static-web-apps-cli
Selected static web site not filtered by resource group
- Dominant language
- TypeScript
- Stars
- 668
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
SWA version: 2.0.6
**Are you accessing the CLI from the default port `:4280` ?**
- [ ] No, I am using a different port number (`--port`) and accessing the CLI from that port
- [x] Yes, I am accessing the CLI from port `:4280`
> Make sure you are accessing the URL printed in the console when running `swa start`!
**ℹ️ NOTE: Make sure to enable debug logs when running any `swa` commands using `--verbose=silly`**
**Describe the bug**
I have 2 resource groups, both with a static web app having the same name. When I run the deploy command, specifying the output folder and the explicit resource group and app name, the website is always deployed to the same resource group.
**To Reproduce**
Steps to reproduce the behavior:
1. Create resource group `a-rg`
2. Create static web app `same-name-swa` within resource group `a-rg`
3. Create resource group b-rg
4. Create static web app `same-name-swa` within resource group `b-rg`
5. Run `swa deploy .out\ --resource-group b-rg --app-name same-name-swa`
Actual behavior:
Website is deployed to static web app in resource group `a-rg`
Expect behavior:
Website is deployed to static web app in resource group `b-rg`
**Desktop (please complete the following information):**
- OS: Window 11
Contributor guide
Assessment
This issue has not been assessed yet.