I want to use azure app service environment variable in angular. How should I do that?

Software Developer 21 Reputation points
2021-03-22T15:43:26.377+00:00

I want to use the azure app service application settings variable in angular. How should I use in that way?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,762 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,886 Reputation points
    2021-03-23T03:53:31.34+00:00

    Hi @Software Developer ,

    In Azure App Service, application settings are variables passed as environment variables to the application code. For Linux apps and custom containers, App Service passes app settings to the container using the --env flag to set the environment variable in the container.

    To configure your app:

    • Go to the Azure portal, search for and select App Services, and then select your app.
    • In the app's left menu, select Configuration > Application settings.

    80427-app-setting1.png

    • To add a new app setting, click New application setting. In the dialog, you can stick the setting to the current slot.
    • To edit a setting, click the Edit button on the right side.
    • When finished, click Update. Don't forget to click Save back in the Configuration page.

    By default, values for app settings are hidden in the portal for security. To see a hidden value of an app setting, click the Value field of that setting. To see the values of all app settings, click the Show value button.

    To learn more please read this documentation.

    Let us know if you have further questions:

    Thanks,
    Grace


Your answer

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