Azure / Azure/azure-cli

staticwebapp appsettings set: Support environments

Open
#22,552 6 comments 8 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign feature-request Service Attention staticwebapp
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.