User Sessions - Disconnect
Disconnect a userSession.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect?api-version=2022-02-10-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
host
|
path | True |
string |
The name of the host pool within the specified resource group |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
session
|
path | True |
string |
The name of the session host within the specified host pool |
subscription
|
path | True |
string |
The ID of the target subscription. |
user
|
path | True |
string |
The name of the user session within the specified session host |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully disconnected user session. |
|
Other Status Codes |
Automation error response describing why the operation failed. |
Examples
UserSession_Disconnect_Post
Sample Request
Sample Response
Definitions
Name | Description |
---|---|
Cloud |
Cloud error object. |
Cloud |
Cloud error object properties. |
CloudError
Cloud error object.
Name | Type | Description |
---|---|---|
error |
Cloud error object properties. |
CloudErrorProperties
Cloud error object properties.
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |