Azure / Azure/static-web-apps

Ability to set site wide password via bicep or some other automatable means

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

Description

**Is your feature request related to a problem? Please describe.**
I'm unable to find a way to set the basic site wide password when deploying site web app infrastructure via bicep. I have to go to the azure portal after deployment and manually set it there.

**Describe the solution you'd like**
I'd like some mechanism to configure the password as part of my devops pipeline. Either through bicep, azure cli or azure powershell. Or a way to specify a keyvault via one of those mechanisms to fetch a password from.
Alternatively setting it via some other automatable mechanism like environment variables or a setting file.

**Describe alternatives you've considered**
I could try defining authentication via AD for all routes, however this seems like overkill for a simple test environment and adds the complexity of managing access via roles. I haven't dug into this to see how easy/hard/impossible this might be to automate yet.

**Additional context**
I've checked bicep docs for `Microsoft.Web staticSites` and all sub resources and the `az staticwebapp` docs and haven't been able to find a way to do this. I also haven't found any documentation in `static-web-apps/authentication` or configuration documentation that indicates anyway to do this.

My use case is automated infrastructure as code deployment of test environments.

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.