Sitefinity Cloud Consuming Secret Key From Azure KeyVault

sitefinity | .NET, CMS, Sitefinity, Sitefinity Cloud | 2024-06-20

The Steps

  1. Login to the Azure DevOps - Overview - Summary

  2. Hit the “Secret & Certificates” button

Screenshot1


  1. There are 3 types of objects we can create, Keys, Secrets and Certificates Screenshot2

  1. For my case, I choose Secrets and select Generate/Import a new secret. Screenshot3

  1. There are 2 options to consume the secret key

Option 1: Access it via code, sample code can be found in the keyvault dashboard (in step 3)

Option 2: Using it in the AppSettings, hence the application can pick it up when the CICD run

Example: Screenshot4