Category Archives: Powershell

Application Registration for accessing mailboxes

By | August 18, 2022

With the imminent death of basic auth and a shocking number of application people who have not taken any steps whatsoever to do anything about it I have been creating a LOT of applications to send and receive mail via graph. This is basically building a service principal, giving it the access then using an… Read More »

Loading

Scripting in authentication methods for MFA

By | April 9, 2021

It appears that the method for scripting in phone authentication methods using the AzureAD powershell module (as detailed at https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-sspr-authenticationdata#set-and-read-the-authentication-data-through-powershell) no longer functions – it adds the phone numbe in AAD but does not set it as an authentication method. There is a note on the article: which basically seems to indicate that going forward… Read More »

Loading

Applying Intune tags with a Function App

By | October 26, 2020

Apply an Intune Scope Tag to a group of devices based on the device owner attributes. Please note this OVERWRITES current tags. In order to provide administrative isolation in Intune Microsoft use the concept of Tags. Tags apply to policies, app assignments, profiles and devices and an administrator with the appropriate role can only see… Read More »

Loading

Flow/Power Automate and Function Apps – Securing a Function App with a Service Principal

By | November 3, 2020

I’ve written a fair bit about how I use Function apps and Flow to get data about 365 environments. There are clear advantages and disadvantages of each. Flow is incredibly slow, difficult to process data in and is in general restricted to what you can take out of Microsoft Graph. Function Apps allow you to… Read More »

Loading

Function Apps using Passwords – KeyVaults!

By | September 18, 2020

This will allow you to securely stick a password or any other secret in a Key Vault for usage in a PowerShell function app (or anything else). You can of course stick the password or whatever directly in the app settings or even an (encrypted) file in your function app but this way has four… Read More »

Loading