Skip to content

Add commands for managing snippets in Azure Static Web Apps #32642

@DaRosenberg

Description

@DaRosenberg

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.

Metadata

Metadata

Labels

Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.staticwebappaz staticwebapp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions