Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
UserSession.cs1.54 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Azure.ResourceManager.DesktopVirtualization; namespace AzureMcp.Areas.VirtualDesktop.Models; public class UserSession { public UserSession(UserSessionResource resource) { Name = resource.Data.Name; Id = resource.Data.Id?.ToString(); ResourceGroupName = resource.Id.ResourceGroupName!; SubscriptionId = resource.Id.SubscriptionId!; HostPoolName = resource.Id.Parent?.Parent?.Name ?? string.Empty; SessionHostName = resource.Id.Parent?.Name ?? string.Empty; UserPrincipalName = resource.Data.UserPrincipalName; ApplicationType = resource.Data.ApplicationType?.ToString(); SessionState = resource.Data.SessionState?.ToString(); ActiveDirectoryUserName = resource.Data.ActiveDirectoryUserName; CreateTime = resource.Data.CreateOn; } /// <summary> Default constructor for serialization. </summary> public UserSession() { } public string? Name { get; set; } public string? Id { get; set; } public string? ResourceGroupName { get; set; } public string? SubscriptionId { get; set; } public string? HostPoolName { get; set; } public string? SessionHostName { get; set; } public string? UserPrincipalName { get; set; } public string? ApplicationType { get; set; } public string? SessionState { get; set; } public string? ActiveDirectoryUserName { get; set; } public DateTimeOffset? CreateTime { get; set; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure/azure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server