Azure / Azure/static-web-apps-cli

Selected static web site not filtered by resource group

Aperta
#958 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
668
Fork
156
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Parti dal punto di ingresso `swa deploy` e segui come `--resource-group` e `--app-name` selezionano la Static Web App. Riproduci lo scenario con i due resource group dell’issue, quindi verifica che la distribuzione con `--resource-group b-rg --app-name same-name-swa` punti all’app in `b-rg` anziché all’app con lo stesso nome in `a-rg`.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, typescript
Ambito
cli, cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.