Forum Discussion

Jason Dunbar's avatar
Jason Dunbar
Brass Contributor
Apr 08, 2019

Group Based Licensing - assign using PowerShell?

Hi Folks,

 

I'm sure I don't need to explain what Group Based Licensing is and I'm wondering how on earth I can configure license plans and assign to groups using PowerShell. Is it even possible? There's absolutely nothing in the documentation at the moment. The official docs (https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/licensing-groups-assign) run you through the process of using the Azure Portal to add licenses to groups, with no mention of PowerShell at all.

 

I've tried tinkering with Group objects in PowerShell, using both Msol (v1) and GraphAPI (v2) objects and tapping into the Licenses and AssignedLicenses (each have a 'set' accessor) but with no success. I can add a license to the 'AssignedLicenses' property, but I don't think there's any way to save it back.

 

I find group based licensing a really nice touch, though the way I see it at the moment, it still requires an admin to go to the Azure Portal to configure. That's a real shame. Am I missing something here?

Resources