AzureArc

Sending Mail through Graph API if local disk is full by leveraging Azure Arc Managed Identity and Keyvault

Sending Mail through Graph API if local disk is full by leveraging Azure Arc Managed Identity and Keyvault

Padure Sergio

Introduction

This is a request coming from Discord: how to send an email through Graph API if the local disk is full?

Preparing requirements

  1. Create the application and apply the Mail.Send Graph API permissions: https://blog.raindrops.dev/2022/09/22/script-add-graph-api-permissions-to-application-through-graph-api/
  2. Prepare the Hybrid Join and Key Vault: https://blog.raindrops.dev/2022/09/24/accessing-keyvault-from-windows-11-on-premise-machines/

Architecture

Here is the architecture we’re looking at:

Accessing Keyvault from Windows 11 on-premise machines

Accessing Keyvault from Windows 11 on-premise machines

Padure Sergio

One interesting challenge that a recent request via Discord brought was how to handle secrets for automated/unattended processes on onpremise machines.

My initial interest in the Powershell Secret Management module slowly waned as I realized that it’s not really meant for that purpose (though it can be made with a command) so I started wondering if it would be possible to actually have that working through Azure Keyvault in an easy manner.