Set-EntraUserLicense does not disable plans that are specified when assigning licenses to a user.
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
- Make sure you can reproduce this issue using the latest released version of
Microsoft.Graph.EntraorMicrosoft.Graph.Entra.Beta. - Please search the existing issues to see if there has been a similar issue filed.
Describe the bug
Set-EntraUserLicense does not disable plans that are specified when assigning licenses to a user.
To Reproduce
Attached is the steps I followed:
Expected behavior The user should be assigned licenses with the specified plans as disabled.
Debug Output
Run the problematic command with
-Debugand paste the resulting debug stream below. ⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.
Module Version
Please run
Get-Module Microsoft.Graph.Entra*after cmdlet execution and paste the output below. If a module cannot be installed or imported, please runGet-Module -ListAvailableand paste the output.
Environment Data
Please run
$PSVersionTableand paste the output below. If running the Docker container image, indicate the tag of the image used and the version of Docker engine.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.