您可以使用 Update-Module Microsoft.Graph 命令,讓 SDK 及其相依性保持在最新狀態。PowerShell SDK 中的每個命令都使用前置詞 Mg,也就是 Microsoft Graph 的簡稱。 部署服務目前可以使用 Microsoft Graph 中的 Beta 端點。 這表示您必須執行下列作業,將您的使用者設定檔設定為適當的 API 合約:PowerShell 複製 ...
Microsoft Graph PowerShell Beta 搜索 Microsoft Graph PowerShell documentation Overview of Microsoft Graph PowerShell Getting started Learn Enable app-only authentication Manage access to resources Privileged Identity Management (PIM) Grant API permissions ...
Azure Active Directory (AzureAD) PowerShell 模块即将弃用,并替换为 Microsoft Graph PowerShell SDK。 可以使用 Microsoft Graph PowerShell SDK 访问所有 Microsoft Graph API。 有关详细信息,请参阅Microsoft Graph PowerShell SDK 入门。 另请参阅安装 Microsoft Graph PowerShell SDK和从 Azure AD PowerShell 升...
Microsoft.Graphmodule that targetshttps://graph.microsoft.com/v1.0/and it is the home for those who only want to work with stables APIs. The second one,Microsoft.Graph.Betathat targetshttps://graph.microsoft.com/beta, which
https://graph.microsoft.com/beta/deviceManagement/reports/exportJobs 必须提供请求正文才能执行任务,使用下面的JSON正文,本实例我们以报告名为DeviceCompliance为例,然后单击Run query。 说明:租户必须具有Intune许可证才能使用针对Intune的Microsoft Graph API。Microsoft Graph API通过权限控制对资源的访问,必须指定访问...
The Microsoft Graph API is huge, and it's growing all the time. Therefore, the number of commands in the Microsoft Graph PowerShell SDK is also large. Finding the right command for what you want to achieve can be challenging, especially if you're not already familiar with Microsoft Graph....
The Microsoft Graph API is huge, and it's growing all the time. Therefore, the number of commands in the Microsoft Graph PowerShell SDK is also large. Finding the right command for what you want to achieve can be challenging, especially if you're not already familiar with Microsoft Graph....
$graphApiVersion = "beta"try {if($deviceName){$Resource = "deviceManagement/managedDevices?`$filter=deviceName eq '$deviceName'"$uri = "https://graph.microsoft.com/$graphApiVersion/$($Resource)"(Invoke-RestMethod -Uri $uri -Headers $authToken -Method Get).value}else {$Reso...
I can export Intune policies using the API so i know i'm authenticated but when I try to POST one of the policies i get a response but its just a repeat of the JSON file and no Error or 201 success message. Invoke-RestMethod -Urihttps://graph.microsoft.com/Beta/deviceManagement...
# Get all users: https://docs.microsoft.com/en-us/graph/api/user-list Invoke-EasyGraphRequest -Resource '/users'# Get users from the 'beta' endpoint: https://docs.microsoft.com/en-us/graph/use-the-api#version Invoke-EasyGraphRequest -Resource '/users' -APIVersion beta...