How to remove Byte-Order-Mark with PowerShell

Let’s get rid of special characters like , ÿþ, þÿ aka Byte-Order-Mark characters When reading Azure Storage Blobs, you regularly get the BOM bytes back with the content. As a result, you cannot format or convert json to an object, for example. A colleague of mine wrote a function for this in PowerShell. In my … Continue reading How to remove Byte-Order-Mark with PowerShell

Report Mailbox and OneDrive Size in PowerShell via Microsoft Graph API

Report Mailbox sizes, OneDrive sizes, or all in one, with PowerShell and the MS Graph API In the tutorial below I explain how you can: Report Mailbox sizes Report OneDrive Sizes Report both (in one report) In the blog post I use PowerShell and the Microsoft Graph API. I built my own modules around the … Continue reading Report Mailbox and OneDrive Size in PowerShell via Microsoft Graph API

How to find an AppReg name without access to Azure Active Directory

Why isn’t a Service Connection name, the AppRegistration name in Azure Active Directory? I came across this by chance in the Azure DevOps portal. To get immediate help, I refer you to one of these sections: I have the AppId and I prefer the browser I have the AppId and prefer PowerShell I don’t have … Continue reading How to find an AppReg name without access to Azure Active Directory

FIX: Install-Package: Access to the cloud file is denied PowerShell

‘Access to the cloud file is denied‘ while installing a PowerShell module? The error ‘Access to the cloud file is denied‘ makes you think it’s the PowerShell Gallery, but it’s probably your OneDrive and the location of your $env:PSModulepath and then probably including the -Scope CurrentUser parameter and variable. There are several things you can … Continue reading FIX: Install-Package: Access to the cloud file is denied PowerShell

FIX: Logging in new Microsoft account redirected to old account on phone

Old Microsoft account logged in after logging in with new Microsoft Account?? You don’t have to contact your service desk… I spent at least an hour of my time trying to fix this myself and below are the steps to follow. I’ve tried everything, I’ve deleted the cached app data from Outlook, Teams, Company Portal, … Continue reading FIX: Logging in new Microsoft account redirected to old account on phone

How to use Azure Managed Identities with Graph API or other Resources

Microsoft API’s or API permissions for Managed Identities But you can only add Azure RBAC roles to a Managed Identity, right? That’s not true, in the blog post below I explain how you can add resource permissions to a Managed Identity. In my work I mainly use this for Azure Automation. By using Managed Identities … Continue reading How to use Azure Managed Identities with Graph API or other Resources

New PowerShell module for Microsoft Graph API reports

Azure AD & Microsoft 365 reports in a single module In my work we use a lot of Microsoft APIs, especially the Microsoft Graph API.Since the Graph API has many ways to optimize and change in bulk, I started with the Optimized.Mga module. Only thing I noticed was that I often made the same reports … Continue reading New PowerShell module for Microsoft Graph API reports

How to use Key Vault Secrets in Azure Automation PowerShell

Azure Key Vault > Azure Automation Credential Manager Azure Automation has its own Credential Manager.This is the easiest to use, but has no history or version control.So you can’t see when the value was last changed, or who made the change within the portal (this can be done via Log Analytics). The Azure Key Vault … Continue reading How to use Key Vault Secrets in Azure Automation PowerShell

How to build a Request Body when the MS Docs fail you Azure REST API

Or when you fail yourself… | Intro I was creating schedules in Azure Automation and creating job schedules with parameters via the Azure REST API. Strangely enough, it looked like the JSON from the example was wrong. But unfortunately it turned out to be less true and I made a mistake myself. However, it has … Continue reading How to build a Request Body when the MS Docs fail you Azure REST API

How to start a Runbook on specific Hybrid Worker Azure Automation

Disclaimer: this is a work around that is not always useful I am currently hired by a client who has one Hybrid Worker Group (and to whom we are not allowed to make any adjustments). There are runbooks that have to work with the data from other runbooks, but because the data is so much … Continue reading How to start a Runbook on specific Hybrid Worker Azure Automation