Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Group Based Licensing - assign using PowerShell?

Brass Contributor

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?

1 Reply

@Jason Dunbar As of now the Powershell and Graph API support for this feature is at read-only.

 

"Full functionality for group-based licensing is available through the Azure portal, and currently PowerShell and Microsoft Graph support is limited to read-only operations. "

 

https://docs.microsoft.com/sv-se/azure/active-directory/users-groups-roles/licensing-ps-examples

 

I agree to this being a must-have in the future!

 

Regards,

 

Viktor