Skip to content
Cmdlets to manage Azure AD Group based Licensing
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AzureADLicensing Switched to Az module, fixed module exports Jan 20, 2020
.gitattributes Initial commit Dec 4, 2019
LICENSE Initial commit Dec 4, 2019
README.md

README.md

AzureADLicensing

PowerShell Cmdlets to manage Azure AD Group based Licensing.

PSGallery Version PSGallery Downloads

Using the module

  1. Install the module: Install-Module -Name AzureADLicensing -AllowClobber
  2. If you hav the deprecated AzureRM module installed, uninstall it first Uninstall-AzureRm
  3. Authenticate to Azure: Get-AuthToken

Available commands

Get available licenses and services:

Get-AADLicenseSku

Get included service plans for a license:

$m365= Get-AADLicenseSku | Where-Object {$_.name -match "Microsoft 365 E5"}
$m365.serviceStatuses.servicePlan

Add new license assignment:

Add-AADGroupLicenseAssignment -groupId "a5e95316-1c03-44d7-afac-efd0e788122c" -accountSkuId "nicolasuter:FLOW_FREE"

Add license assignmnet with disabled plan:

Add-AADGroupLicenseAssignment -groupId 0a918505-d0d5-4078-9891-0e8bec67cb65 -accountSkuId "nicolasuter:SPE_E5" -disabledServicePlans @("MYANALYTICS_P2")

Update license assignment:

Update-AADGroupLicenseAssignment -groupId "a5e95316-1c03-44d7-afac-efd0e788122c" -accountSkuId "nicolasuter:FLOW_FREE"

Remove license assignment:

Remove-AADGroupLicenseAssignment -groupId "a5e95316-1c03-44d7-afac-efd0e788122c" -accountSkuId "nicolasuter:FLOW_FREE"

Get license assignments:

Get-AADGroupLicenseAssignment -groupId "a5e95316-1c03-44d7-afac-efd0e788122c"
You can’t perform that action at this time.