How to archive inactive Microsoft Teams with Azure Automation

In my last blog post, I showed you how to find inactive Microsoft Teams with GraphAPI and Azure Automation. I’ve blogged about a script that writes all inactive Microsoft 365 groups to a SharePoint Online list. In this blog post, I will show you, how to archive inactive Microsoft Teams with Azure Automation.

My solution uses an approval process by Microsoft Flow and a Azure Automation Account with a scheduled script to archive a Team. The script uses the GraphAPI endpoint.


Continue reading “How to archive inactive Microsoft Teams with Azure Automation”

How to downgrade the Microsoft Teams module in your Azure Automation account

In this blog post I will give a short overview how to downgrade the Microsoft Teams module in your Azure Automation account. Why you should do this? Assume you have developed a solution for some Microsoft Teams automations. You are using the Teams PowerShell module in some of your scripts. After a few months running the solution very smoothly, you decide to upgrade the PowerShell module in your Automation Account. And from that time on, your scripts don’t work anymore. Microsoft updates version 2.3.1 to the current release and some command-lets or parameter changed. Of course, we can update our solution but it is better to get a working solution in a short period of time and to find a solution in a lab environment.

Error message during Connect-MicrosoftTeams with current module 2.6.0 - ApplicationId is an unknown parameter
Error message during Connect-MicrosoftTeams with current module 2.6.0
Continue reading “How to downgrade the Microsoft Teams module in your Azure Automation account”