Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 740 Bytes

File metadata and controls

24 lines (17 loc) · 740 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\Sensor;
use Microsoft\Graph\Beta\Generated\Models\Security\SensorSettings;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new Sensor();
$settings = new SensorSettings();
$settings->setDescription('dc1 settings new description');
$settings->setDomainControllerDnsNames(['DC1.domain1.test.local', 	]);
$settings->setIsDelayedDeploymentEnabled(false);
$requestBody->setSettings($settings);

$result = $graphServiceClient->security()->identities()->sensors()->bySensorId('sensor-id')->patch($requestBody)->wait();