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 659 forks source link

Get-RBACScopeTag -DisplayName not working #147

Closed archeedev closed 4 years ago

archeedev commented 4 years ago

In Intune I have ScopeTag : Lenovo

Get-RBACScopeTag - will return all the tags alright however Get-RBACScopeTag -DisplayName "Lenovo" - returns nothing

Similar REST query, eg. from RBAC_ScopeTags_DeviceAssign.ps1, for managed device works fine but not this one.

My goal: retrieve scope tag Id by it's DisplayName

davefalkus commented 4 years ago

Hi @archeedev,

Which script are you using where Get-RBACScopeTag -DisplayName "Lenovo" fails?

Dave

archeedev commented 4 years ago

hi, I was using content of RBAC_ScopeTags_DeviceAssign.ps1 I must have been doing something wrong. Checked again now and all works fine - ok to close this thread.