microsoftgraph / powershell-intune-samples

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.37k stars 658 forks source link

RBAC_ScopeTags_ApplicationAssign not working correct #219

Open Martinfx opened 2 years ago

Martinfx commented 2 years ago

Hi, i have problem with RBAC_ScopeTags_ApplicationAssign with more scope tags. I need create more tags for application and not only one.

This is correct -id $id -Type "#microsoft.graph.win32LobApp" -ScopeTags "2" -Verbose

This is not correct

-id $id -Type "#microsoft.graph.win32LobApp" -ScopeTags "2,3" -Verbose

{"error":{"code":"BadRequest","message":"{\r\n  \"_version\": 3,\r\n  \"Message\": \"Invalid Role Scope Tag defined 
2,3 }