Azure / Azure/static-web-apps

Multiple issues with Bicep deployment

Open
#659 0 comments 11 reactions 0 assignees View on GitHub
IaaC
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

This is a meta-issue to highlight the many problems with deploying a Static Web App resource with Bicep or ARM templates.

1. https://github.com/Azure/static-web-apps/issues/516 This is still a problem even though the issue was closed. Take a look at [Johnny Reilly's blog post](https://blog.johnnyreilly.com/2021/08/15/bicep-azure-static-web-apps-azure-devops/) for the level of hackery that is currently required to get this to work, e.g. disconnecting the Static Web App before running the Bicep deployment.
- See also https://github.com/Azure/static-web-apps/issues/575, https://github.com/Azure/static-web-apps/issues/495.
2. https://github.com/Azure/static-web-apps/issues/576 Deploying a `Microsoft.Web/staticSites/userProvidedFunctionApps` resource is not idempotent. The second time you attempt the deployment, it will fail with "Cannot register a function app with a preexisting Azure Static Web Apps configuration without setting the isForced flag to true."
3. https://github.com/Azure/static-web-apps/issues/477 A Bicep deployment of a Static Web App will fail with a misleading error message if the `properties` key is omitted. Omitting the `properties` key should be equivalent to `properties: {}`. This is how it works for every other Azure resource as far as I know.

I have not personally experienced the following issues, but I figured I would mention them here.

4. https://github.com/Azure/static-web-apps/issues/577
5. https://github.com/Azure/static-web-apps/issues/571

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.