graph - 图表 - 更新 intune 合规性状态
问题描述
目标是根据本文更新 Intune 合规性状态:https ://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-update?view=graph-rest-1.0
我的代码片段如下:
ManagedDevice md = new ManagedDevice
{
ComplianceState = ComplianceState.Noncompliant
};
await
graphClient.DeviceManagement.ManagedDevices[deviceid].Request().UpdateAsync(md);
我也无法通过图形资源管理器执行此操作,在这种情况下,请求是带有 body 的“补丁”:
{“合规状态”:“不合规”}
I get the same error in code and GraphExplorer as below, permissions granted are:
DeviceManagementManagedDevices.ReadWrite.All
rror": {
"code": "InternalError",
"message": "{ \"_version\": 3, \"Message\": \"An error has occurred - Operation ID (for
customer support): 00000000-0000-0000-0000-000000000000 - Activity ID:
解决方案
推荐阅读
- python - 如何使用python中每个键的单个列将嵌套字典的所有键映射到数据框
- python - 如何使用 Python 解决 SSH 连接中的属性错误?
- c++ - 无法在多通道中将 fcgi 库与 g++ 链接
- arrays - 如何在角度 9 的对象模型中设置数组属性
- javascript - Nerlify:lambda 响应未定义。再次检查您的功能代码在 583 毫秒内以状态 500 响应
- sql - how to transform a number in binary representation to a Snowflake number
- typescript - 如何使用 AWS CDK 在 typescript 中获取路由表 ID
- google-sheets - 具有多个结果的 Google 表格索引/匹配
- django - 创建一个“post”对象并使用 post id 和 author id 初始化一个 m2m 属性
- flutter - 将侦听器添加到列表