staticwebapp appsettings set: Support environments
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
`az staticwebapp appsettings set`
**Is your feature request related to a problem? Please describe.**
Cannot configure app settings for environments other than production.
**Describe the solution you'd like**
Add a `--environment` parameter. If supplied, app setting changes are applied to the environment specified, instead of production.
**Describe alternatives you've considered**
Call `az rest` directly.
**Additional context**
Static Web Apps supports preview environments. It's not possible to configure app settings for these environments with Azure CLI.
/cc @DarqueWarrior
https://github.com/Azure/static-web-apps/issues/677#issuecomment-1124528368
Contributor guide
Assessment
This issue has not been assessed yet.