How to setup an Azure Function to zip files

Ever needed to bundle multiple files into a single zip from Power Automate or Logic Apps? Creating zip files programmatically in the cloud can be tricky — there’s no built-in action for it. In this post, I’ll show you how to set up an Azure Function that accepts base64 file content for an array of files and returns a compressed zip file. You can then store it in Blob Storage, send it to SFTP, attach it to an email — wherever you need it. ...

4 January 2024 · 6 min · DamoBird365

Azure App Expiry Monitoring with Power Automate & Graph API

Have you ever had a service go down because an Azure App Registration secret expired without anyone noticing? Client secrets and key certificates come with expiration dates, and failing to renew them in time can lead to service disruptions and security vulnerabilities. In this post, I’ll walk you through a super efficient Power Automate flow that monitors your Azure App Registrations for expiring keys using the Graph API and XPath — without the nested loops and API overhead that most solutions rely on. ...

31 August 2023 · 9 min · DamoBird365

Add user to Distribution List

Ever since Microsoft removed the ability to add users to Exchange Distribution Lists via the Graph API, Power Automate users have been stuck. In this post, I’ll walk you through a workaround using PowerShell and Azure Runbooks to get distribution list management back into your flows. It’s been over 12 months since I wrote my blog post Add members to a distribution list – Power Automate where initially it was possible to add members directly. That functionality was removed by design and has never made a comeback. Fortunately, I came across PowerShell commands to both add and remove users from a distribution group — and we can bring this to an Azure Runbook. For more details on the Graph API limitation, see Working with groups in Microsoft Graph. ...

9 January 2023 · 5 min · DamoBird365

Add members to a distribution list - Power Automate

Managing exchange email distribution lists manually is tedious, especially during onboarding. In this post, I’ll show you how to add members to a distribution list using Power Automate — and how to check if a user already exists. Whether you’re feeding this from a Power App or Microsoft Form, it’s easily achieved with a single action. Update January 2023 I’ve written a new bog post detailing how this can be achieved with PowerShell and an Azure Runbook. Check it out here Add user to Distribution List - DamoBird365 ...

11 October 2021 · 4 min · DamoBird365

Are you looking at me? AI in Azure

I wanted to explore just how good Microsoft’s AI services really are, so I set up Azure Cognitive Services to detect celebrities from Twitter photos and gauge their emotions. Here’s what happened when I pointed Face and Computer Vision APIs at #breakingnews tweets — and how I shaved 12 months off Bill Gates’ age. Microsoft gives you a 12 month Azure free trial and so I thought I would have a play with some of their Cognitive Services API’s. ...

24 February 2021 · 3 min · DamoBird365

Power Automate meets PowerShell in Azure

What if you could run PowerShell scripts directly from Power Automate? After attending the Global Automation Bootcamp and seeing demos by Ben Stegink and Jaap Brasser, I was inspired to build a PowerShell Azure Runbook called from Power Automate using the Azure Automation Create Job step. Here’s how I did it. The Problem — SharePoint External Sharing My employer has a policy where all new SharePoint sites are setup with external sharing disabled and the only way to change this setting (as of today) is via the Admin GUI or PowerShell. We have a requirement to change the default setting to existing guests if manager approval has been granted, PowerAutomate has Approvals built in. This is the perfect opportunity for PowerShell to meet PowerAutomate. ...

20 February 2021 · 2 min · DamoBird365