Azure – Finding VM Agent version
All Azure VMs usually have a VM Agent installed. But there can be situations where it is missing, such as when a VM was moved over to Azure or deployed from an appliance image. I needed to find whether...
View ArticleGraph and Office licensing
I have been fiddling with licensing and Graph API and spent the better part of today morning trying to pull some licensing info via Graph queries. I feel it is time to put that out as a post so I can...
View ArticleGraph and Group Membership count
I have a bunch of groups whose membership count I need as part of some code I am writing. So far I had a loop like this:$licensedViaGroupsCount = 0 foreach ($group in $licensingGroupsArray) {...
View ArticleSend email via Logic App (from PowerShell etc.)
One of the things I use Logic Apps for is sending emails from PowerShell scripts (esp Azure Automation Runbooks or Functions). It’s pretty easy to do that. 1) Create a new Logic App with HTTP request...
View ArticleGrant-PnPAzureADAppSitePermission – Item not found
One of the things I commonly do is grant an Azure AD app registration permissions to a specific SharePoint site. I think I blogged about this in the past, but essentially it boils down to: 1) Granting...
View ArticleM365 licensing DisplayName to SKU Name mapping
The Get-MgSubscribedSku Graph cmdlet can give a list of all the licensing SKUs subscribed in your tenant. Here’s an example output:❯ (Get-MgSubscribedSku)[0] | fl * AppliesTo : User CapabilityStatus :...
View ArticleAuthenticated HTTP Requests to Graph API or Azure REST API (and Logic Apps...
I want to make authenticated HTTP Requests to Graph API or Azure REST API from Power Automate. The standard way seems to be to create an App Registration (the identity basically) and enter its details...
View ArticleParsing JSON tokens in a Logic App
I created this as part of my previous post. Didn’t want to digress there by tacking this to the end of it, so here’s a separate post. In the previous post I had got my Logic App to consume the Azure AD...
View ArticleTrying out macOS Ventura
This is a pointless blog post. I am stuck in a boring call, I want to write something that isn’t too taxing, I don’t really have anything to say about macOS Ventura… so . Ever since WWDC 2022 last week...
View ArticleXCode 14 (and Command Line Tools) on macOS Ventura
This is more as a reminder to myself for the next beta I am on. After installing macOS Ventura Xcode stopped working. Not that I use it, but Homebrew wants it. It complains thus:Error: Your Xcode...
View ArticleM365 Service Plans mapping
A few days ago I posted how to create a list of all licensing SKUs and their ids. That code was something along these lines:# From...
View ArticleDuplicating a Conditional Access Policy
I had to duplicate an Azure AD Conditional Access policy today and make some changes, here’s what I did:# Connect to Azure AD Connect-AzureAD # Find the source policy $srcPolicy =...
View ArticleFinding a Logic App name from its workflow Id
I had a Logic App Url from a colleague. This was a Logic App invoked via HTTP, so the Url I had looked something like this:...
View ArticleAuthenticated access to Azure Functions using Azure AD (Client Credentials...
I really love this topic of Azure AD and Azure Functions, Logic Apps, etc. It’s probably the one topic that I genuinely get excited about nowadays and have put in a lot of effort recently. A year ago...
View ArticleFinding the owner of a Microsoft Form based on the Form Id
A colleague wanted me to raise a case with Microsoft to see if there was a way to find the owner of a form based on the Id. I did a quick Google and there didn’t seem to be a way… all suggestions were...
View ArticleFinding the owner of a Microsoft Form based on the Form Id (contd.) (or:...
After my previous findings (getting the owner of a Microsoft Form from its Id) the same colleague wondered if there was a way of programmatically getting the owner Id from the Form. This would mean...
View ArticleInvoke-RestMethod to a Microsoft Form
After the previous post I was curious if I could connect to a Microsoft Form via something like Invoke-RestMethod. You know, query it and get the Owner Id for instance. This thought ate my head for a...
View ArticleDelegating App Registration Admin Consent permissions in Azure AD (an example...
I had posted about this previously… today I wanted to send a bunch of cmdlets to my colleagues to allow admin consenting of the Sites.Selected (both Graph API and SharePoint API) permission to a custom...
View ArticleGetting a list of Key Vaults and Access Policies
I am doing a bit of cleaning up at work, merging some of my Automation Accounts, moving stuff around, renaming some Key Vaults (why is naming something so hard!!?) and wanted to get a list of all my...
View ArticleCould not load the certificate private key. Please check the authentication...
Was helping a colleague connect to an Azure Key Vault to retrive a certificate, and use that to do HTTP authentication to SharePoint. He was following the instructions from another blog post. The issue...
View Article