Tag Archives: CSP

Check your Azure CSP Customer list for scheduled maintenance


With the¬†publicly disclosed vulnerabilities referred to as “speculative execution side-channel attacks“, also known as Meltdown and Spectre, Microsoft has scheduled a quick maintenance window for all VMs running on Azure which are affected by this.
As a CSP, you have a large list of customers, each with one or more subscription(s), each subscription with one or more VMs.
To quickly check which VMs are scheduled for maintenance, doing this manually would take hours. Therefore, ASPEX is using a PowerShell script to check the maintenance status so we can quickly inform our customers with an exact list of VMs scheduled to be updated with the timeframe of the maintenance.

Powershell script


To be able to run this script, you need to have 2 PowerShell Modules installed: AzureRM & AzureAD. These can be installed using the following cmdlets:

If you don’t have the Install-Module cmdlet, you need to update your Powershell version, or install the PowerShellGet Module:¬†Get PowerShellGet Module

The Script

The script will ask you to log in twice. You have to login with your CSP admin account. This is required to be able to read out your CSP customer list, and to read out each Client Tenant and its subscriptions.

The result of the script will look like this:
CSP Check Maintenance result