This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Get a session host.
Uses Azure REST API version 2026-01-01-preview.
Using getSessionHost
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSessionHost(args: GetSessionHostArgs, opts?: InvokeOptions): Promise<GetSessionHostResult>
function getSessionHostOutput(args: GetSessionHostOutputArgs, opts?: InvokeOptions): Output<GetSessionHostResult>def get_session_host(host_pool_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
session_host_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSessionHostResult
def get_session_host_output(host_pool_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
session_host_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSessionHostResult]func LookupSessionHost(ctx *Context, args *LookupSessionHostArgs, opts ...InvokeOption) (*LookupSessionHostResult, error)
func LookupSessionHostOutput(ctx *Context, args *LookupSessionHostOutputArgs, opts ...InvokeOption) LookupSessionHostResultOutput> Note: This function is named LookupSessionHost in the Go SDK.
public static class GetSessionHost
{
public static Task<GetSessionHostResult> InvokeAsync(GetSessionHostArgs args, InvokeOptions? opts = null)
public static Output<GetSessionHostResult> Invoke(GetSessionHostInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSessionHostResult> getSessionHost(GetSessionHostArgs args, InvokeOptions options)
public static Output<GetSessionHostResult> getSessionHost(GetSessionHostArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:desktopvirtualization:getSessionHost
arguments:
# arguments dictionaryThe following arguments are supported:
- Host
Pool stringName - The name of the host pool within the specified resource group
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Session
Host stringName - The name of the session host within the specified host pool
- Host
Pool stringName - The name of the host pool within the specified resource group
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Session
Host stringName - The name of the session host within the specified host pool
- host
Pool StringName - The name of the host pool within the specified resource group
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- session
Host StringName - The name of the session host within the specified host pool
- host
Pool stringName - The name of the host pool within the specified resource group
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- session
Host stringName - The name of the session host within the specified host pool
- host_
pool_ strname - The name of the host pool within the specified resource group
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- session_
host_ strname - The name of the session host within the specified host pool
- host
Pool StringName - The name of the host pool within the specified resource group
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- session
Host StringName - The name of the session host within the specified host pool
getSessionHost Result
The following output properties are available:
- Active
Sessions int - Number of active sessions on SessionHost.
- Agent
Version string - Version of agent on SessionHost.
- Azure
Api stringVersion - The Azure API version of the resource.
- Disconnected
Sessions int - Number of disconnected sessions on SessionHost.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Last
Heart stringBeat - Last heart beat from SessionHost.
- Last
Session stringHost Update Time - The last time update was completed.
- Last
Update stringTime - The timestamp of the last update.
- Name string
- The name of the resource
- Object
Id string - ObjectId of SessionHost. (internal use)
- Os
Version string - The version of the OS on the session host.
- Pending
Sessions int - Number of pending sessions on SessionHost.
- Resource
Id string - Resource Id of SessionHost's underlying virtual machine.
- Session
Host stringConfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- Session
Host List<Pulumi.Health Check Results Azure Native. Desktop Virtualization. Outputs. Session Host Health Check Report Response> - List of SessionHostHealthCheckReports
- Sessions int
- Number of sessions on SessionHost.
- Status string
- Status for a SessionHost.
- Status
Timestamp string - The timestamp of the status.
- Sx
SStack stringVersion - The version of the side by side stack on the session host.
- System
Data Pulumi.Azure Native. Desktop Virtualization. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Update
Error stringMessage - The error message.
- Update
State string - Update state of a SessionHost.
- Virtual
Machine stringId - Virtual Machine Id of SessionHost's underlying virtual machine.
- Allow
New boolSession - Allow a new session.
- Assigned
User string - User assigned to SessionHost.
- Friendly
Name string - Friendly name of SessionHost
- Active
Sessions int - Number of active sessions on SessionHost.
- Agent
Version string - Version of agent on SessionHost.
- Azure
Api stringVersion - The Azure API version of the resource.
- Disconnected
Sessions int - Number of disconnected sessions on SessionHost.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Last
Heart stringBeat - Last heart beat from SessionHost.
- Last
Session stringHost Update Time - The last time update was completed.
- Last
Update stringTime - The timestamp of the last update.
- Name string
- The name of the resource
- Object
Id string - ObjectId of SessionHost. (internal use)
- Os
Version string - The version of the OS on the session host.
- Pending
Sessions int - Number of pending sessions on SessionHost.
- Resource
Id string - Resource Id of SessionHost's underlying virtual machine.
- Session
Host stringConfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- Session
Host []SessionHealth Check Results Host Health Check Report Response - List of SessionHostHealthCheckReports
- Sessions int
- Number of sessions on SessionHost.
- Status string
- Status for a SessionHost.
- Status
Timestamp string - The timestamp of the status.
- Sx
SStack stringVersion - The version of the side by side stack on the session host.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Update
Error stringMessage - The error message.
- Update
State string - Update state of a SessionHost.
- Virtual
Machine stringId - Virtual Machine Id of SessionHost's underlying virtual machine.
- Allow
New boolSession - Allow a new session.
- Assigned
User string - User assigned to SessionHost.
- Friendly
Name string - Friendly name of SessionHost
- active
Sessions Integer - Number of active sessions on SessionHost.
- agent
Version String - Version of agent on SessionHost.
- azure
Api StringVersion - The Azure API version of the resource.
- disconnected
Sessions Integer - Number of disconnected sessions on SessionHost.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Heart StringBeat - Last heart beat from SessionHost.
- last
Session StringHost Update Time - The last time update was completed.
- last
Update StringTime - The timestamp of the last update.
- name String
- The name of the resource
- object
Id String - ObjectId of SessionHost. (internal use)
- os
Version String - The version of the OS on the session host.
- pending
Sessions Integer - Number of pending sessions on SessionHost.
- resource
Id String - Resource Id of SessionHost's underlying virtual machine.
- session
Host StringConfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- session
Host List<SessionHealth Check Results Host Health Check Report Response> - List of SessionHostHealthCheckReports
- sessions Integer
- Number of sessions on SessionHost.
- status String
- Status for a SessionHost.
- status
Timestamp String - The timestamp of the status.
- sx
SStack StringVersion - The version of the side by side stack on the session host.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- update
Error StringMessage - The error message.
- update
State String - Update state of a SessionHost.
- virtual
Machine StringId - Virtual Machine Id of SessionHost's underlying virtual machine.
- allow
New BooleanSession - Allow a new session.
- assigned
User String - User assigned to SessionHost.
- friendly
Name String - Friendly name of SessionHost
- active
Sessions number - Number of active sessions on SessionHost.
- agent
Version string - Version of agent on SessionHost.
- azure
Api stringVersion - The Azure API version of the resource.
- disconnected
Sessions number - Number of disconnected sessions on SessionHost.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Heart stringBeat - Last heart beat from SessionHost.
- last
Session stringHost Update Time - The last time update was completed.
- last
Update stringTime - The timestamp of the last update.
- name string
- The name of the resource
- object
Id string - ObjectId of SessionHost. (internal use)
- os
Version string - The version of the OS on the session host.
- pending
Sessions number - Number of pending sessions on SessionHost.
- resource
Id string - Resource Id of SessionHost's underlying virtual machine.
- session
Host stringConfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- session
Host SessionHealth Check Results Host Health Check Report Response[] - List of SessionHostHealthCheckReports
- sessions number
- Number of sessions on SessionHost.
- status string
- Status for a SessionHost.
- status
Timestamp string - The timestamp of the status.
- sx
SStack stringVersion - The version of the side by side stack on the session host.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- update
Error stringMessage - The error message.
- update
State string - Update state of a SessionHost.
- virtual
Machine stringId - Virtual Machine Id of SessionHost's underlying virtual machine.
- allow
New booleanSession - Allow a new session.
- assigned
User string - User assigned to SessionHost.
- friendly
Name string - Friendly name of SessionHost
- active_
sessions int - Number of active sessions on SessionHost.
- agent_
version str - Version of agent on SessionHost.
- azure_
api_ strversion - The Azure API version of the resource.
- disconnected_
sessions int - Number of disconnected sessions on SessionHost.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last_
heart_ strbeat - Last heart beat from SessionHost.
- last_
session_ strhost_ update_ time - The last time update was completed.
- last_
update_ strtime - The timestamp of the last update.
- name str
- The name of the resource
- object_
id str - ObjectId of SessionHost. (internal use)
- os_
version str - The version of the OS on the session host.
- pending_
sessions int - Number of pending sessions on SessionHost.
- resource_
id str - Resource Id of SessionHost's underlying virtual machine.
- session_
host_ strconfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- session_
host_ Sequence[Sessionhealth_ check_ results Host Health Check Report Response] - List of SessionHostHealthCheckReports
- sessions int
- Number of sessions on SessionHost.
- status str
- Status for a SessionHost.
- status_
timestamp str - The timestamp of the status.
- sx_
s_ strstack_ version - The version of the side by side stack on the session host.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- update_
error_ strmessage - The error message.
- update_
state str - Update state of a SessionHost.
- virtual_
machine_ strid - Virtual Machine Id of SessionHost's underlying virtual machine.
- allow_
new_ boolsession - Allow a new session.
- assigned_
user str - User assigned to SessionHost.
- friendly_
name str - Friendly name of SessionHost
- active
Sessions Number - Number of active sessions on SessionHost.
- agent
Version String - Version of agent on SessionHost.
- azure
Api StringVersion - The Azure API version of the resource.
- disconnected
Sessions Number - Number of disconnected sessions on SessionHost.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Heart StringBeat - Last heart beat from SessionHost.
- last
Session StringHost Update Time - The last time update was completed.
- last
Update StringTime - The timestamp of the last update.
- name String
- The name of the resource
- object
Id String - ObjectId of SessionHost. (internal use)
- os
Version String - The version of the OS on the session host.
- pending
Sessions Number - Number of pending sessions on SessionHost.
- resource
Id String - Resource Id of SessionHost's underlying virtual machine.
- session
Host StringConfiguration - SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z
- session
Host List<Property Map>Health Check Results - List of SessionHostHealthCheckReports
- sessions Number
- Number of sessions on SessionHost.
- status String
- Status for a SessionHost.
- status
Timestamp String - The timestamp of the status.
- sx
SStack StringVersion - The version of the side by side stack on the session host.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- update
Error StringMessage - The error message.
- update
State String - Update state of a SessionHost.
- virtual
Machine StringId - Virtual Machine Id of SessionHost's underlying virtual machine.
- allow
New BooleanSession - Allow a new session.
- assigned
User String - User assigned to SessionHost.
- friendly
Name String - Friendly name of SessionHost
Supporting Types
SessionHostHealthCheckFailureDetailsResponse
- Error
Code int - Error code corresponding for the failure.
- Last
Health stringCheck Date Time - The timestamp of the last update.
- Message string
- Failure message: hints on what is wrong and how to recover.
- Error
Code int - Error code corresponding for the failure.
- Last
Health stringCheck Date Time - The timestamp of the last update.
- Message string
- Failure message: hints on what is wrong and how to recover.
- error
Code Integer - Error code corresponding for the failure.
- last
Health StringCheck Date Time - The timestamp of the last update.
- message String
- Failure message: hints on what is wrong and how to recover.
- error
Code number - Error code corresponding for the failure.
- last
Health stringCheck Date Time - The timestamp of the last update.
- message string
- Failure message: hints on what is wrong and how to recover.
- error_
code int - Error code corresponding for the failure.
- last_
health_ strcheck_ date_ time - The timestamp of the last update.
- message str
- Failure message: hints on what is wrong and how to recover.
- error
Code Number - Error code corresponding for the failure.
- last
Health StringCheck Date Time - The timestamp of the last update.
- message String
- Failure message: hints on what is wrong and how to recover.
SessionHostHealthCheckReportResponse
- Additional
Failure Pulumi.Details Azure Native. Desktop Virtualization. Inputs. Session Host Health Check Failure Details Response - Additional detailed information on the failure.
- Health
Check stringName - Represents the name of the health check operation performed.
- Health
Check stringResult - Represents the Health state of the health check we performed.
- Additional
Failure SessionDetails Host Health Check Failure Details Response - Additional detailed information on the failure.
- Health
Check stringName - Represents the name of the health check operation performed.
- Health
Check stringResult - Represents the Health state of the health check we performed.
- additional
Failure SessionDetails Host Health Check Failure Details Response - Additional detailed information on the failure.
- health
Check StringName - Represents the name of the health check operation performed.
- health
Check StringResult - Represents the Health state of the health check we performed.
- additional
Failure SessionDetails Host Health Check Failure Details Response - Additional detailed information on the failure.
- health
Check stringName - Represents the name of the health check operation performed.
- health
Check stringResult - Represents the Health state of the health check we performed.
- additional_
failure_ Sessiondetails Host Health Check Failure Details Response - Additional detailed information on the failure.
- health_
check_ strname - Represents the name of the health check operation performed.
- health_
check_ strresult - Represents the Health state of the health check we performed.
- additional
Failure Property MapDetails - Additional detailed information on the failure.
- health
Check StringName - Represents the name of the health check operation performed.
- health
Check StringResult - Represents the Health state of the health check we performed.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
