Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set app-settings-json similar to github action azure/appservice-settings@v1 #677

Open
staplJason opened this issue Dec 31, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@staplJason
Copy link

Managing application settings from CLI or Portal is time consuming.
I would like to be able to set app settings using a github secret something like:

      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN}}
          repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
          action: "upload"
...
          app-settings-json: '${{ secrets.AZURE_APP_SETTINGS }}' 

Same as it is done in the github action: azure/appservice-settings@v1

- uses: azure/appservice-settings@v1
      with:
        app-name: 'my-app'
        slot-name: 'staging'  # Optional and needed only if the settings have to be configured on the specific deployment slot
        app-settings-json: '${{ secrets.APP_SETTINGS }}' 
        connection-strings-json: '${{ secrets.CONNECTION_STRINGS }}'
        general-settings-json: '{"alwaysOn": "false", "webSocketsEnabled": "true"}' #'General configuration settings as Key Value pairs'
      id: settings
@mkarmark mkarmark added the enhancement New feature or request label Jan 6, 2022
@fardarter
Copy link

I'd also like this

@ChiliMonanta
Copy link

Not sure if I'm missing something. You can add the settings with the AZ CLI but only for the production "slot"!?
How do I add configurations for my "Preview Deployments", are there any workarounds ? (To add manually in the portal is not an option)

@thomasgauvin
Copy link
Contributor

Hey folks! This has now been completed and you should be able to access it in the latest release of the Az CLI: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md#april-25-2023-1

The update to the Az CLI docs will come out shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants