Search for: azure automation

154 Results

How to Figure Out What Microsoft Graph Permissions You Need

The Microsoft Graph operates on a least permission model, which means that developers are forced to ask for permissions for the actions they wish to perform. This is a very different approach to the way traditional PowerShell modules work, so it's an area to focus on when converting scripts which use cmdlets from the Azure AD and MSOL modules to the Microsoft Graph PowerShell SDK. In this article, we look at four ways to find out what permissions are needed to perform different actions and explain how the Graph use the permissions.

Continue Reading How to Figure Out What Microsoft Graph Permissions You Need

Notifying Exchange Online Users When Administrators Update Mailbox Permissions

Exchange Online boasts a set of mailbox permissions that allow delegate access to some (or all) content. In this article, we describe how to notify mailbox owners when administrators assign new permissions over their mailbox. Naturally, the notification is via email, but there are some twists along the way.

Continue Reading Notifying Exchange Online Users When Administrators Update Mailbox Permissions

Creating New Microsoft 365 Accounts with PowerShell

It's common to find a requirement to create new Microsoft 365 accounts with PowerShell. We're at a point of transition when the old method of using the Azure AD module will switch to the Microsoft Graph PowerShell SDK or Graph API queries. In this article, we explain how to create new accounts and assign licenses with both the Azure AD module and the Microsoft Graph PowerShell SDK.

Continue Reading Creating New Microsoft 365 Accounts with PowerShell

Why Using App Secrets in Production is a Bad Idea

As many organizations adapt legacy scripts to use app authentication instead of traditional service account credentials, security can be compromised if certain risks are overlooked. While app secrets can be great for testing code, there’s a reason they have an enforced expiry date - the longer a secret exists in production, the higher the risk it will become compromised. The methods described in this article will help build a good foundation for app authentication while keeping security top of mind when creating or updating automation scripts.

Continue Reading Why Using App Secrets in Production is a Bad Idea

Separating users in Office 365 using Address Book Policies

Microsoft 365 has many built-in controls to manage how users communicate externally, however, these controls do not generally extend to internal communication. While this is fine in most environments, situations exist where a degree of separation is required to segregate communication across different groups of users. This article details the configuration of Address Book Policies, and how they can be extended to include Teams.

Continue Reading Separating users in Office 365 using Address Book Policies

Use Desired State Configuration to Snapshot the Configuration of Your Microsoft 365 Tenant

Microsoft 365 Desired State Configuration (DSC), is a way to capture details of a tenant's configuration using PowerShell in such a way that any changes made to the configuration can be easily detected. DSC allows administrators to understand when configurations change so that they can take action when necessary. In this article, Sean McAvinue explains how to use DSC to capture and report details of your Microsoft 365 tenant.

Continue Reading Use Desired State Configuration to Snapshot the Configuration of Your Microsoft 365 Tenant

How to Create a Microsoft 365 Licensing Report Using the Microsoft Graph SDK for PowerShell

After figuring out how to convert a script from using Azure AD licensing cmdlets (due to stop working in June 2022), we move on to create a licensing report for a tenant using cmdlets from the Microsoft Graph SDK for PowerShell. The code is pretty straightforward, but you need to do some up-front work to extract and prepare some input files containing product and service plan codes. Given that Microsoft is increasing its license fees, it's a good time to report this information...

Continue Reading How to Create a Microsoft 365 Licensing Report Using the Microsoft Graph SDK for PowerShell