Forum Discussion

Matthew_H1895's avatar
Matthew_H1895
Copper Contributor
Mar 16, 2022

Trying to parse a url using query params using Microsoft.Graph.Intune module

 

Invoke-MSGraphRequest -Url 'https://graph.microsoft.com/beta/deviceManagement/managedDevices?$select=id,imei,operatingSystem,ownerType,managedDeviceOwnerType&$filter=(operatingSystem eq ''iOS'')' -HttpMethod GET 

 

I would like to retrieve this data and the URL works in Postman, but when I run it in VS i get "Cannot validate argument on parameter 'Url'. The provided URL is not valid - the URL may be a relative URL" Any ideas on how I can retrieve this data and use it? Mainly make this request work with Connect-MSGraph

Resources