Relative Content

Tag Archive for azurepowershellmicrosoft-graph-apiazure-automation

How can I add email recipients to a Graph API request programmatically?

I have some runbooks running in Azure Automation. I am adding email notifications to the runbooks. I’ve configured a simple runbook to send emails. Rather than adding an email “section” to the end of each runbook, I would like to have a single “email” runbook that can be called from the other runbooks. I’ve run into a problem with the number of email recipients. How can I dynamically change the number of email recipients in the Graph API request to match the number of recipients that would be passed from the other runbook?