Setting up Azure key Vault for Webhooks

When using webhook for get chat/channel messages , the data is encrypted so we need to create a certificate to encrypt/decrypt the content.

Through Azure Key Vault you can create a certificate and access it from the code.

See here the documentation how to create a certificate step by step: aspnetcore-webhooks-sample/KEYVAULT.md at main ยท microsoftgraph/aspnetcore-webhooks-sample

After creating the certificate, you need to assign it the azure application to allow it to use the certificate.

  1. Navigate to Key Vault, Access Policies and click Create

  2. In Permissions select โ€œKey, Secret and Certificate Managementโ€, then Next

  3. In Principal look for your application and select it,

  4. Skip to Review and Create and click Create at the bottom

ย 

ย