What you are requesting is a challenging task and may not be worth the effort involved.
In Azure app service, the management of application settings functions in a specific manner as outlined here:
For ASP.NET and ASP.NET Core developers, configuring app settings in App Service resembles setting them in Web.config or appsettings.json. However, the values in App Service take precedence over those in Web.config or appsettings.json. This allows for storing development settings locally while keeping production secrets secure in App Service. The code will utilize the appropriate settings based on whether it is running locally or deployed to Azure.
Your situation differs from the above scenario, requiring:
For other language stacks, app settings are received as environment variables during runtime.
Both scenarios involve server-side operations. Attempting to configure client-side (JavaScript) settings on the server side poses a challenge.
- Ready-made APIs for retrieving such configuration values do not exist.
- All configuration values would be visible to the end user.
- To fetch data from environmental variables in your case, creating a custom API that accesses these variables and serves the Angular application with configuration information via a GET request would be necessary.