You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select-MgProfile : Die Funktion "Remove-MgDeviceManagementMicrosoftTunnelHealthThreshold" kann nicht erstellt werden, da die Funktionskapazität 4096 für diesen Bereich überschritten wurde.
Since today I receive a very strange error. Can anybody provide some help?
The text was updated successfully, but these errors were encountered:
Select-MgProfile: The Remove-MgDeviceManagementMicrosoftTunnelHealthThreshold function cannot be created because the function capacity 4096 for this area has been exceeded.
@pri-kise, the error is due to a known PowerShell 5.1 issue - PowerShell/PowerShell#2221. In this case, you've reached the $MaximumFunctionCount in your PS 5.1 session, and Select-MgProfile can't load Remove-MgDeviceManagementMicrosoftTunnelHealthThreshold. The PowerShell team removed the limit in PowerShell core.
Your options are:
Upgrade to PowerShell 7+ (highly recommended).
Only load the modules that you need.
Increase the $MaximumFunctionCount = 10000 to match the number of functions you need before importing the modules.
an update to Powershell 7+ is currently not possible, since the same script uses powershell modules that currently don't support the new Powershell version.
For now I got it solved with the other options. Thanks for your help.
Since today I receive a very strange error. Can anybody provide some help?
The text was updated successfully, but these errors were encountered: