Azure Automation Archives - Practical 365 Practical Office 365 News, Tips, and Tutorials Thu, 11 Jul 2024 19:04:58 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 https://practical365.com/wp-content/uploads/2022/06/favicon.png Azure Automation Archives - Practical 365 32 32 Use Azure Automation and PowerShell to Create a Daily Microsoft Entra Risk Report https://practical365.com/use-azure-automation-and-powershell-to-create-a-daily-microsoft-entra-risk-report/ https://practical365.com/use-azure-automation-and-powershell-to-create-a-daily-microsoft-entra-risk-report/#comments Mon, 22 Jan 2024 11:00:00 +0000 https://practical365.com/?p=60346 In this article, Sean McAvinue explains how to use PowerShell and Azure Automation runbook to create a Daily Microsoft Entra Risk Report.

The post Use Azure Automation and PowerShell to Create a Daily Microsoft Entra Risk Report appeared first on Practical 365.

]]>
https://practical365.com/use-azure-automation-and-powershell-to-create-a-daily-microsoft-entra-risk-report/feed/ 7
Using Power Automate and Azure Automation to Manage the Lifecycle of SharePoint Sites https://practical365.com/using-power-automate-and-azure-automation-to-manage-the-lifecycle-of-sharepoint-sites/ https://practical365.com/using-power-automate-and-azure-automation-to-manage-the-lifecycle-of-sharepoint-sites/#comments Tue, 14 Nov 2023 11:00:00 +0000 https://practical365.com/?p=59492 A key aspect of a well-managed Microsoft 365 environment is to ensure that SharePoint sites are removed when they are no longer needed. In this blog, Sean McAvinue explores how to combine relatively basic PowerShell and Azure Automation skills with Power Automate to create a clean, robust way to manage the lifecycle of SharePoint sites in your Microsoft 365 tenant.

The post Using Power Automate and Azure Automation to Manage the Lifecycle of SharePoint Sites appeared first on Practical 365.

]]>
https://practical365.com/using-power-automate-and-azure-automation-to-manage-the-lifecycle-of-sharepoint-sites/feed/ 1
Avoid Windows Task Scheduler When Running Microsoft 365 PowerShell Scripts https://practical365.com/dump-task-scheduler/ https://practical365.com/dump-task-scheduler/#comments Tue, 23 May 2023 10:00:00 +0000 https://practical365.com/?p=58477 Many people use the Windows Task Scheduler to run PowerShell scripts. The Task Scheduler works, but it creates a dependency on a specific workstation and isn't as secure as you might like. Running Microsoft 365 PowerShell scripts in Azure Automation is a much better idea. It's time to dump the Task Scheduler!

The post Avoid Windows Task Scheduler When Running Microsoft 365 PowerShell Scripts appeared first on Practical 365.

]]>
https://practical365.com/dump-task-scheduler/feed/ 1
Adding an Expiration Date for Entra ID Guest Accounts https://practical365.com/guest-account-expiration/ https://practical365.com/guest-account-expiration/#comments Tue, 02 May 2023 10:00:00 +0000 https://practical365.com/?p=58402 Microsoft has long been asked to support guest account expiration, just like the functionality available for on-premises Active Directory accounts. Engineering priorities have not allowed the developers to work on the feature, but it's possible to do the job with PowerShell as we explain here.

The post Adding an Expiration Date for Entra ID Guest Accounts appeared first on Practical 365.

]]>
https://practical365.com/guest-account-expiration/feed/ 8
Create Your Own Adaptive Retention Policies with PowerShell and Azure Automation https://practical365.com/adaptive-retention-policies-azure-automation/ https://practical365.com/adaptive-retention-policies-azure-automation/#comments Mon, 12 Dec 2022 11:00:00 +0000 https://practical365.com/?p=57595 Adaptive retention policies are great, but they require high-end Office 365 or Microsoft 365 licenses. The solution is to build your own version using PowerShell and Azure Automation. The code is reasonably straightforward and is a practical example of how to replicate a Microsoft 365 feature in your own way.

The post Create Your Own Adaptive Retention Policies with PowerShell and Azure Automation appeared first on Practical 365.

]]>
https://practical365.com/adaptive-retention-policies-azure-automation/feed/ 6
Updating Microsoft Graph PowerShell Modules for Azure Automation https://practical365.com/update-graph-sdk-azure-automation/ https://practical365.com/update-graph-sdk-azure-automation/#comments Thu, 20 Oct 2022 10:00:00 +0000 https://practical365.com/?p=57308 Every month, Microsoft generates a new version of the Graph PowerShell SDK. And if you use the SDK with Azure Automation, you must update automation accounts with the new modules. That's a pain to do manually, but easy to automate with PowerShell as we explain here.

The post Updating Microsoft Graph PowerShell Modules for Azure Automation appeared first on Practical 365.

]]>
https://practical365.com/update-graph-sdk-azure-automation/feed/ 1
Using Azure Automation to Monitor Unified Audit Log Events https://practical365.com/azure-automation-managed-identity-exchange/ https://practical365.com/azure-automation-managed-identity-exchange/#respond Mon, 17 Oct 2022 10:00:00 +0000 https://practical365.com/?p=57313 The Office 365 audit log is a rich source of forensic information. This article explains how to use Azure Automation to search the log for high-priority events. We use the new support for managed identities in V3.0 of the Exchange Online management PowerShell module to search the audit log and end up sending a nice HTML-format message to administrators.

The post Using Azure Automation to Monitor Unified Audit Log Events appeared first on Practical 365.

]]>
https://practical365.com/azure-automation-managed-identity-exchange/feed/ 0
Using Exchange Online PowerShell with Azure Automation Managed Identities https://practical365.com/azure-automation-managed-identity-exo/ https://practical365.com/azure-automation-managed-identity-exo/#comments Tue, 23 Aug 2022 10:00:00 +0000 https://practical365.com/?p=57033 Until the arrival of V3.0 of the Exchange Online management module, Microsoft didn't support using an Azure Automation managed identity with Exchange Online PowerShell. In this article we explore how to use Exchange Online PowerShell with Azure Automation to get work done.

The post Using Exchange Online PowerShell with Azure Automation Managed Identities appeared first on Practical 365.

]]>
https://practical365.com/azure-automation-managed-identity-exo/feed/ 11
Automate Exchange Hybrid Server in Azure https://practical365.com/automate-exchange-hybrid-server-in-azure/ https://practical365.com/automate-exchange-hybrid-server-in-azure/#comments Fri, 29 Apr 2022 06:00:00 +0000 https://practical365.com/?p=56063 Running an Exchange hybrid server in Azure is easy; the challenge is cost - the savior is automation.
This article covers how to automate your Exchange Hybrid server in Azure and significantly reduce the cost of running your hybrid server in Azure with basic start/stop solutions, progressing to maintenance scripts to ensure the server is kept up to date regularly. It also explores how the maintenance scripts can be expanded to cover scheduled reporting or other tasks.

The post Automate Exchange Hybrid Server in Azure appeared first on Practical 365.

]]>
https://practical365.com/automate-exchange-hybrid-server-in-azure/feed/ 2
Creating Files in SharePoint Online Using Azure Automation and PowerShell https://practical365.com/azure-automation-spo-create-files/ https://practical365.com/azure-automation-spo-create-files/#comments Tue, 15 Mar 2022 13:04:40 +0000 https://practical365.com/?p=55356 It's great to be able to run PowerShell scripts using Azure Automation. It's even better when you can create output files in SharePoint Online. In this article, we explain how to create a report of Microsoft 365 Groups subject to the Group expiration policy and generate an HTML report in SharePoint Online using an Azure Automation runbook. Running this kind of job in the background is a great way of processing intensive jobs while you get on with more important tasks.

The post Creating Files in SharePoint Online Using Azure Automation and PowerShell appeared first on Practical 365.

]]>
https://practical365.com/azure-automation-spo-create-files/feed/ 11