Reputation: 40002
Is it possible to configure the Web App's Diagnostic Logs "web server logging" storage account to be bound to a slot (i.e. as a slot setting), in order to prevent this during the swap:
The actual value for this is set as a WEBSITE_HTTPLOGGING_CONTAINER_URL
app setting variable on the actual Web App, but it is invisible on the portal (meaning one cannot enable 'slot setting').
This is unlike the "application logging" storage account, which is made visible (meaning I can enable slot settings):
I would prefer not to have to do this via cmdlets.
Upvotes: 4
Views: 2482
Reputation: 27997
According to your description, if you want to enable the "WEBSITE_HTTPLOGGING_RETENTION_DAYS" and "WEBSITE_HTTPLOGGING_CONTAINER_URL", I suggest you could try to use azure Resource explorer to change the slot settings.
More details, you could follow below ways.
1.Open the azure Resource explorer and locate your web app.
2.Open the web app's slotConfigNames tag.
3.Add the appsetting name in the properties.
Firstly click the edit and change the properties. At last click the put to save the changes.
You could find all the slot setting will not miss when using swap.
Upvotes: 3