Condividi tramite


ArmDesktopVirtualizationModelFactory.SessionHostData Method

Definition

public static Azure.ResourceManager.DesktopVirtualization.SessionHostData SessionHostData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, int? activeSessions = default, int? disconnectedSessions = default, int? pendingSessions = default, string objectId = default, bool? allowNewSession = default, string vmId = default, Azure.Core.ResourceIdentifier resourceId = default, string assignedUser = default, string friendlyName = default, DateTimeOffset? statusTimestamp = default, DateTimeOffset? lastUpdatedOn = default, DateTimeOffset? lastSessionHostUpdateOn = default, string sessionHostConfiguration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckReport> sessionHostHealthCheckResults = default, string agentVersion = default, DateTimeOffset? lastHeartBeatOn = default, string osVersion = default, int? sessions = default, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostStatus? status = default, string sxsStackVersion = default, string updateErrorMessage = default, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostUpdateState? updateState = default);
static member SessionHostData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<int> * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * Azure.Core.ResourceIdentifier * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * seq<Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckReport> * string * Nullable<DateTimeOffset> * string * Nullable<int> * Nullable<Azure.ResourceManager.DesktopVirtualization.Models.SessionHostStatus> * string * string * Nullable<Azure.ResourceManager.DesktopVirtualization.Models.SessionHostUpdateState> -> Azure.ResourceManager.DesktopVirtualization.SessionHostData
Public Shared Function SessionHostData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional activeSessions As Nullable(Of Integer) = Nothing, Optional disconnectedSessions As Nullable(Of Integer) = Nothing, Optional pendingSessions As Nullable(Of Integer) = Nothing, Optional objectId As String = Nothing, Optional allowNewSession As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional assignedUser As String = Nothing, Optional friendlyName As String = Nothing, Optional statusTimestamp As Nullable(Of DateTimeOffset) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastSessionHostUpdateOn As Nullable(Of DateTimeOffset) = Nothing, Optional sessionHostConfiguration As String = Nothing, Optional sessionHostHealthCheckResults As IEnumerable(Of SessionHostHealthCheckReport) = Nothing, Optional agentVersion As String = Nothing, Optional lastHeartBeatOn As Nullable(Of DateTimeOffset) = Nothing, Optional osVersion As String = Nothing, Optional sessions As Nullable(Of Integer) = Nothing, Optional status As Nullable(Of SessionHostStatus) = Nothing, Optional sxsStackVersion As String = Nothing, Optional updateErrorMessage As String = Nothing, Optional updateState As Nullable(Of SessionHostUpdateState) = Nothing) As SessionHostData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

activeSessions
Nullable<Int32>

Number of active sessions on SessionHost.

disconnectedSessions
Nullable<Int32>

Number of disconnected sessions on SessionHost.

pendingSessions
Nullable<Int32>

Number of pending sessions on SessionHost.

objectId
String

ObjectId of SessionHost. (internal use).

allowNewSession
Nullable<Boolean>

Allow a new session.

vmId
String

Virtual Machine Id of SessionHost's underlying virtual machine.

resourceId
ResourceIdentifier

Resource Id of SessionHost's underlying virtual machine.

assignedUser
String

User assigned to SessionHost.

friendlyName
String

Friendly name of SessionHost.

statusTimestamp
Nullable<DateTimeOffset>

The timestamp of the status.

lastUpdatedOn
Nullable<DateTimeOffset>

The timestamp of the last update.

lastSessionHostUpdateOn
Nullable<DateTimeOffset>

The last time update was completed.

sessionHostConfiguration
String

SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z.

sessionHostHealthCheckResults
IEnumerable<SessionHostHealthCheckReport>

List of SessionHostHealthCheckReports.

agentVersion
String

Version of agent on SessionHost.

lastHeartBeatOn
Nullable<DateTimeOffset>

Last heart beat from SessionHost.

osVersion
String

The version of the OS on the session host.

sessions
Nullable<Int32>

Number of sessions on SessionHost.

status
Nullable<SessionHostStatus>

Status for a SessionHost.

sxsStackVersion
String

The version of the side by side stack on the session host.

updateErrorMessage
String

The error message.

updateState
Nullable<SessionHostUpdateState>

Update state of a SessionHost.

Returns

A new SessionHostData instance for mocking.

Applies to