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

FIX: We can’t sync this folder or Unable to sync shortcut OneDrive

Before we start! In this blog post I discuss two error messages for OneDrive. They are both about the same problem, just the other way around. I wrote a paragraph for both error messages. Look carefully at the error message so that you start at the correct paragraph. The tutorial for ‘Sorry, we can’t sync … Continue reading FIX: We can’t sync this folder or Unable to sync shortcut OneDrive

How to use Microsoft Graph REST API Docs for PowerShell users

How to use the Graph API for PowerShellers Before you start, I want to tell you that this is my way of working with the Microsoft Graph API & PowerShell. It may be that you don’t like this & that you prefer another way and that’s fine too. It would be nice if you share … Continue reading How to use Microsoft Graph REST API Docs for PowerShell users

How to upload files to SharePoint with MS Graph API and PowerShell

Uploading files to OneDrive or SharePoint through the Microsoft Graph API with PowerShell In the tutorial below I explain how you can upload files to SharePoint sites including to child directories. There is no way in the tutorial how to do this directly with the Microsoft Graph API URLs. I have written a cmdlet in … Continue reading How to upload files to SharePoint with MS Graph API and PowerShell

How to download files from SharePoint with MS Graph API and PowerShell

Get SharePoint Files in a site and download them to your local device In the tutorial below I explain how you can request all files from SharePoint sites including child directories.You can also download them right away. There is no way in the tutorial how to do this directly with the Microsoft Graph API URLs. … Continue reading How to download files from SharePoint with MS Graph API and PowerShell

How to get the AzureAD AuditLog with the MS Graph API and PowerShell

Audit logs in Azure AD Azure AD contains a lot of audit logging. All kinds of audit logs are written in Azure AD, which are stored for 90 days by default.You can call these logs with the Microsoft Graph API. In the blog below I’m going to explain how to get a list of audit … Continue reading How to get the AzureAD AuditLog with the MS Graph API and PowerShell

How to download a file from an Azure Storage Blob PowerShell

Intro We are setting up a completely new Azure Automation environment for a new customer. This is all done through Azure DevOps CI/CD. Static files such as an html or zip file are no longer on an on-premise server, but from now on in an Azure Storage Blob. We have all documented the script parts … Continue reading How to download a file from an Azure Storage Blob PowerShell

How to upload a file to an Azure Storage Blob PowerShell

Intro We are configuring an Azure Automation environment. This is all done through Azure DevOps CI/CD. We won’t use a static files server for files like html content or zip files, but we will upload them to an Azure Storage Blob instead. We been working on uploading files to the Azure Storage Blob in a … Continue reading How to upload a file to an Azure Storage Blob PowerShell

FIX: Import-PSSession Job Suspended Cannot be run Azure Automation

Different cmdlet same error? I get this error message with cmdlet Import-PSSession. The solution I offer in this blog post may also be the solution for another cmdlet.If this does not solve the problem for ‘Job was suspended’ , see if there is a connection with the Hybrid Worker. Let’s fix: Job was suspended Your … Continue reading FIX: Import-PSSession Job Suspended Cannot be run Azure Automation

FIX: The parameter Param is declared in parameter-set multiple times

Which parameter is Param and what is ‘AllParameterSets’? I had a weird error message this week that I haven’t seen before. I ran this script in an Azure DevOps Pipeline so I couldn’t really see what went wrong. It took me a while before I realized exactly what the error message meant. The exact error … Continue reading FIX: The parameter Param is declared in parameter-set multiple times