Azure-AppServices-Diagnostics/infrastructure
rekhaswaminathan 7f0411e662
Encrypt & Decrypt appsettings (#610)
* Create keyvault-variables.ps1

* Handle decryption of appsettings

* Use cloud env check

* Remove duplicate config load logic, use public cloud check

* Delete keyvault-variables.ps1

* Log error message

* Rename file

* Handle exception while decrypting

* Fix attribute

* Update EncryptedConfigProviderExtensions.cs

* Adding log traces

* Enable for EUAP for testing
2020-12-03 13:25:59 -08:00
..
ArmTemplates Remove local cache arm template (#582) 2020-09-30 14:46:18 -07:00
Scripts Encrypt & Decrypt appsettings (#610) 2020-12-03 13:25:59 -08:00
README.md Add working ARM templates to enable monitoring on RuntimeHost and CompilerHost Web Apps (#251) 2019-09-23 15:37:25 -07:00

README.md

Intent

The goal of this deployment folder is to fully automate the infrastructure of the App Service Diagnostics application. This will make it trivial to create the resources needed to deploy ASD into new clouds.

ARM templates also control Geneva configuration upgrades.

Note

Currently these deployments only work in the Azure Portal Powershell terminal

Commands

To deploy an ARM template from Powershell:

  • Get portal access for the Diag Production WebApp subscription
  • Find the subscription on Azure Portal
  • Upload the template and parameter files from this directory to the Portal terminal
  • cd to the uploaded directory
  • Enter the following commands in the Portal Powershell terminal
Select-AzureRmSubscription `
  -SubscriptionId "..."

New-AzureRmResourceGroupDeployment `
  -ResourceGroupName "..." `
  -TemplateFile ".\antareskvtemplate.json" `
  -TemplateParameterFile ".\{appname}-antareskvparameters.json"

Useful command to get current settings:

Get-AzureRmResourceGroupDeployment -ResourceGroupName "..."