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
Tag: PowerShell
How to get the AzureAD AuditLog with the MS Graph API and PowerShell
Auditlog in AzureAD and PowerShell 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
Download a file from Storage Blobs with Rest API’s and PowerShell 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 … Continue reading How to download a file from an Azure Storage Blob PowerShell
How to upload a file to an Azure Storage Blob PowerShell
Upload files to A storage blob using powerShell 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 … Continue reading How to upload a file to an Azure Storage Blob PowerShell
FIX: Job Suspended in Azure Automation Import-PSSession
Different cmdlet same error? I get the error message Job suspended in Azure Automation 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 … Continue reading FIX: Job Suspended in Azure Automation Import-PSSession
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
How to run scripts on a system Hybrid Worker in Azure Automation
Hybrid Workers in Azure Automation When Update Management in Azure Automation was released, you could (and still) add a system Hybrid Worker to Azure Automation via the Log Analytics agent. Only you could no longer use it as a User Hybrid Worker in the User Hybrid Worker Groups and you therefore no longer see it … Continue reading How to run scripts on a system Hybrid Worker in Azure Automation
Best practices, tips and tricks working with Microsoft Graph API in PowerShell
Intro Microsoft has also released a best practices blog. My best practices sometimes match Microsoft’s, but are my own ideas behind the best practices.You don’t agree with one of the tips or best practices? Please leave feedback at the bottom of the post. Microsoft own best practices blog:Best practices for working with Microsoft Graph – … Continue reading Best practices, tips and tricks working with Microsoft Graph API in PowerShell
A summary about Optimized.Aza PowerShell module for Azure REST API
Optimized.Mga > Optimized.Aza? WARNING: The module is still under construction. Please leave feedback @ Github or in a comment below the post. No it’s not a new name, but a new module. The module is a copy of the main cmdlets from Optimized.Mga though. It will take care of your OauthToken and Throttling. For direct … Continue reading A summary about Optimized.Aza PowerShell module for Azure REST API
Delegated permissions with a Client Secret by adding roles to a Service principal
AzureAD Apps & Service Principals Within Azure AD you have App Registrations. You can do a lot with App Registrations. I mainly use it for automating tasks. Application or Delegated Permissions? A big disadvantage is that you cannot always choose Application Permissions with API Permissions. Here you can only choose Delegated Permissions. For example, the … Continue reading Delegated permissions with a Client Secret by adding roles to a Service principal
