This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.36k
stars
657
forks
source link
Assign-ManagedAppPolicy not assigning multiple groups #177
When i call Assign-ManagedAppPolicy function within a foreach group to assign 10 AAD groups to an app protection policy, only the last group in the list gets added. no errors are thrown and i can confirm that each Invoke command triggered by the loop has the correct group object_id
I use Get-AzureADGroup to build the array of groups that need to be assigned
Hi,
When i call Assign-ManagedAppPolicy function within a foreach group to assign 10 AAD groups to an app protection policy, only the last group in the list gets added. no errors are thrown and i can confirm that each Invoke command triggered by the loop has the correct group object_id
I use Get-AzureADGroup to build the array of groups that need to be assigned