This is the final post in a series detailing using PowerShell to leverage the Azure AD Graph API. For those catching up it started here introducing using PowerShell to access the Azure AD via the Graph API, licensing users in Azure AD via Powershell and the Graph API, and returning all objects using paging via Powershell and the Graph API.… keep reading
Enumerating all Users/Groups/Contacts in an Azure tenant using PowerShell and the Azure Graph API ‘odata.nextLink’ paging function
Recently I posted about using PowerShell and the Azure Active Directory Authentication Library to connect to Azure AD here. Whilst that post detailed performing simple tasks like updating an attribute on a user, in this post I’ll use the same method to connect to Azure AD via PowerShell but cover;
- enumerate users, contacts or groups
- where the number of objects is greater than the maximum results per page, get all remaining pages of results
- limit results based on filters
The premise of my script was one that could just be executed without prompts.… keep reading
PowerShell error “Run Login-AzureRmAccount to login.” in AzureRM when already logged in
Usually when I’m writing PowerShell scripts I do it from a development virtual machine with a known environment state. However, yesterday I was trying to do something simple and quick and was writing it on my everyday laptop.
My script was using Windows Management Framework 5.0 and I was creating a new burn environment in AzureRM.… keep reading
Automating the simultaneous deployment of AzureRM Virtual Machines for a development environment
This post is details my method for automating the creation of AzureRM virtual machines for use in a development environment. I’m using this process to quickly standup an environment for testing configurations on.
In summary this process;
- parallel creation of the AzureRM Virtual Machines
-
All machines have the same configuration
- NIC, Disks etc
- All machines are created in a new Resource Group, with associated Virtual Network
Simultaneous Creating the AzureRM Virtual Machines for MIM 2016
For my MIM 2016 Lab I’m going to create 5 Virtual Machines.… keep reading
Simultaneously Start|Stop all Azure Resource Manager Virtual Machines in a Resource Group
Problem
How many times have you wanted to Start or Stop all Virtual Machines in an Azure Resource Group ? For me it seems to be quite often, especially for development environment resource groups. It’s not that difficult though. You can just enumerate the VM’s then cycle through them and call ‘Start-AzureRMVM’ or ‘Start-AzureRMVM’.… keep reading