Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 941 Bytes

File metadata and controls

28 lines (21 loc) · 941 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 5.x

// Dependencies
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.SetReviewStatus;
using Microsoft.Graph.Beta.Models;

var requestBody = new SetReviewStatusPostRequestBody
{
	ReviewStatus = new CloudPcReviewStatus
	{
		InReview = true,
		UserAccessLevel = CloudPcUserAccessLevel.Restricted,
		AzureStorageAccountId = "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview",
		AccessTier = CloudPcBlobAccessTier.Hot,
	},
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.VirtualEndpoint.CloudPCs["{cloudPC-id}"].SetReviewStatus.PostAsync(requestBody);