Azure Web App Slot Settings

I have looked at the Azure Web App Slot Blue Green Deployment guides. The guide deletes the slot and then creates a new one, this means you would lose all your slot settings. Is there a way from Octopus Deploy to set Slot Settings based on the Process Variables? I would much rather have my settings in the slot instead of altering the appsettings.json file.

Hi Matt,

Thanks for reaching out to us.
Regarding your question “Is there a way from Octopus Deploy to set Slot Settings based on the Process Variables?”
No there is not, currently the only way is through the appsettings.json file, but we are thinking of instead of pushing the variables to the appsettings.json file we would put them in the slop app settings which then has the advantage to visualising these variables via the Azure portal. We have created an issue for it https://github.com/OctopusDeploy/Issues/issues/5225, feel free to add any extra comments to it.

How does the proposed changes sound to you, are we on the right track ?

Regards
John

Thanks John. I think I will move the slot settings over to Azure Key Vault and use OD to update the vault key settings in the JSON file.

Hi Matt,

Is this using https://docs.microsoft.com/en-us/aspnet/core/security/key-vault-configuration?view=aspnetcore-2.2 ?

Cheers
John

John,

Yes it is using the dotnet core key vault provider.

Matt