Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 636 Bytes

File metadata and controls

21 lines (14 loc) · 636 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\Environment;
use Microsoft\Graph\Beta\Generated\Models\Security\EnvironmentKind;


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

$requestBody = new Environment();
$requestBody->setKind(new EnvironmentKind('azureSubscription'));
$requestBody->setId('/subscriptions/d34fd44c-ebfa-4a9c-bceb-9eeafe72ac15');

$result = $graphServiceClient->security()->zones()->byZoneId('zone-id')->environments()->post($requestBody)->wait();