Change your Azure app settings using the portal without rebooting

I sometimes to this:

On the Azure portal, I go to "Application Services", then click on my web application and then on "Application Settings".

Here I change one value from the "Application Settings" list:

App Settings in Azure Portal

For instance. I change "128" to "129"

Finally, I click "Save."

This causes my web application to reload. I do not want it.

Question: Is there a way to manually change this value without restarting? If not, should I store this value differently? maybe using a new section in web.config that I can upload every time?

If I use a new section, for example:

<moreAppSettings configSource="moreSettings.config">
</moreAppSettings>

And this moreSettings.config looks like this:

<?xml version="1.0" encoding="utf-8"?>
<moreSettings>
   <add key="ClientAppBuild" value="129" />
</moreSettings>

.config ?

+9
3

, , , , - , Redis Cache?

, VERSION ( ) , . wwwroot ( d:\home\site\somethingElse), .

Kudu , / ( , ) , Kudu /api/deployments:

http curl,

$ http https://SiteUsername:SitePassword@sitename.scm.azurewebsites.net/api/deployments

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
...
{
    "active": true,
    "author": "snobu",
    "deployer": "GitHub",
    "end_time": "2017-03-29T08:47:08.954981Z",
    "id": "5ada48724129c78b8a993b4a25f2144aec03cbd2",
    "message": "Changed bootstrap theme to Flatly",
    ...

API - https://github.com/projectkudu/kudu/wiki/REST-API#deployment

, . URL /api/deployments .

+2

Azure Portal , web.config. , IIS, -. Azure App Service, IIS Windows Server.

, . "/", JSON XML, , /, ​​ Azure Redis Cache. Key/Value . , , , , - , , .

+3

, , - 2 :

Preliminary preparation is a slot with configurations similar to production to achieve zero downtime.

So, step by step:

  1. Add new config to preview release
  2. Wait for production preparation to begin.
  3. Direct 100% traffic from production to production preparation

Repeat steps 1 and 2 for production, and then return traffic back to production.

0
source

Source: https://habr.com/ru/post/1675090/


All Articles