Azure / Azure/azure-cli

Add commands for managing snippets in Azure Static Web Apps

Open
#32,642 1 comment 2 reactions 4 assignees Claimed by @mkarmark View on GitHub
act-observability-squad Auto-Assign customer-reported 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`

**Is your feature request related to a problem? Please describe.**

Our CI/CD solution is able to spin up new ephemeral environments of our whole system, and also deprovision them when they are no longer needed. Such an environment includes dozens of Azure resources of different types, including an environment in a global static web app. The Azure CLI provides commands for managing environments, so we can automate that part — all good there.

However, each environment also needs a snippet, that tells our web app which backend API to connect to. This snippet needs to be unique per environment. Our automated provisioning and deprovisioning should ideally also include creating/deleting these snippets. However, currently, the only way to create and manage such snippets is manually through the portal, which makes automation impossible.

This is currently the only thing we are not able to automate.

**Describe the solution you'd like**

We would like 4 new commands added:

```
az staticwebapp snippet create
az staticwebapp snippet list
az staticwebapp snippet show
az staticwebapp snippet delete
```

**Describe alternatives you've considered**

There are no alternatives.

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.