Azure Web App config

Niren Adhikary (NAD) 146 Reputation points
2022-08-07T20:31:02.153+00:00

Hi

In the static web app that uses AD App registration details for authentication like client id and secret , we want to parameterize the values we pass in the staticwebappconfig.json file for deploying in dev, uat and prod using cicd pipeline. So that for each environment it would fetch client id and secret for that specific app registration.

228884-image.png

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2022-08-08T10:13:20.903+00:00

    @Niren Adhikary (NAD) Thank you for reaching out to Microsoft Q&A.

    Based on the shared description I have understood that you are using custom identity provider authentication in static web apps. Custom identity providers are configured in the auth section of the configuration file. To avoid putting secrets in source control, the configuration looks into application settings for a matching name in the configuration file.

    You can create multiple environments for dev, uat and prod by using any of the deployment types as mentioned here and with different application settings name and their values accordingly.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.