Tag: Powershell

PowerShell: Invoke-RestMethod
PowerShell: Invoke-RestMethod
Blog Posts

Scenario I want to write a function that will query an image site and download a picture so I can insert it into a blog post. After watching a local PowerShell User Group presentation on using Invoke-RestMethod, I decided to give it a try. API Parameters Invoke-RestMethod is a PowerShell utility specifically for quering web sites that… READ MORE

Get all Teams a User is Part of Using PowerShell PnP
Get all Teams a User is Part of Using PowerShell PnP
Blog Posts

As you may be aware already (hopefully!), we have Microsoft Teams cmdlets surfacing in the SharePoint PowerShell PnP module since July 2020. Today, we’ll work again with those cmdlets. As a matter of fact, we’ll use 2 modules for this blog post. PowerShell PnP Azure AD So make sure you’ve got both installed to be… READ MORE

Executing CMDKEY via a PowerShell remote session
Executing CMDKEY via a PowerShell remote session
Blog Posts

I faced some troubles in executing cmdkey.exe on a PowerShell remote session, while I was trying to automate the creation of a SQL Failover Cluster Instance on Azure VMs, using Azure Premium File Share (PFS) as shared storage. You need cmdkey.exe since you must persist Azure PFS access credentials on the Credential Manager of both cluster nodes, into the… READ MORE

ARM Template Deployment from PowerShell on Mac
ARM Template Deployment from PowerShell on Mac
Blog Posts

Besides creating apps, I’m also loving cross-platform as a whole and of course everything Azure. I’ve known Azure Resource Manager (ARM) templates for a long time now, but only recently I started working with them again. My daily development machine is a Mac, so I had to find out how to deploy an ARM Template from… READ MORE

Using the Graph API Powershell SDK
Using the Graph API Powershell SDK
Blog Posts

Introduction For a while, when using Graph API and PowerShell I have been using my own implementations of communicating with Graph API as outlined in the following posts: Getting started with Microsoft Graph and PowerShell Authenticating with Graph API Using a Device Code However, at Ignite 2019, it was announced there is a Graph API… READ MORE