How to publish SCEM Activity Calendar (SAC)
Publishing Steps
Copy the
ClientSecret
from Azure Key Vault: https://pcpsackv.vault.azure.net/secrets/ClientSecret/b99bb3c872cc4fb9b706e0eceec5427dOpen the source code in Visual Studio: https://dev.azure.com/transport-canada/Dynamics/_git/GoC.TC.Cds.StakeholderActivityCalendar?version=GBdevelop
Paste the
ClientSecret
from Step 1 into theClientSecret
field inappsettings.json
:Build
→Publish
Select the environment to deploy to and click
Publish
Done.
How Does it Work?
Create a ASPNETCORE_ENVIRONMENT
application setting in the Azure App Service Configuration blade and set its value to the same as appsettings.{environment}.json
. It will use this file to apply the transform to the base appsettings.json
file.
E.g. ncasacapp - Microsoft Azure
For more info, see here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-5.0