Auto Upgrade
Retrieve the Auto-upgrade settings of a session server with the specified ID.
The ID of a session server for which to retrieve the Auto-upgrade settings.
Success
Auto-upgrade Settings
Enable auto-upgrade maintenance window
Start Date
Drain mode duration
Force logoff sessions at the end of the drain mode period
Repeat Type
Repeat Specific Days
Unauthorized
Not Found
GET /api/AVD/HostPool/{id}/AutoUpgrade HTTP/1.1
Accept: */*
{
"enabled": true,
"startDateTime": "2026-01-01T00:00:00.000Z",
"drainModeDurationInSecs": 1,
"forceLogoffSessions": true,
"repeat": [
"0 = Never",
"1 = EveryDay",
"2 = EveryWeek",
"3 = Every2Weeks",
"4 = EveryMonth",
"5 = EveryYear",
"6 = SpecificDays"
],
"specificDays": [
"0 = Never",
"1 = Sunday",
"2 = Monday",
"4 = Tuesday",
"8 = Wednesday",
"16 = Thursday",
"32 = Friday",
"64 = Saturday"
],
"messages": [
{
"id": 1,
"enabled": true,
"messageTitle": "text",
"message": "text",
"sendMsgSecs": 1,
"sendMsgWhen": [
"0 = Before",
"1 = After"
]
}
]
}Update the Auto-upgrade settings of a session server with the specified ID.
The ID of a session server for which to modify the Auto-upgrade settings.
Modify the Auto-upgrade settings
Enable auto-upgrade maintenance window
Start Date
Drain mode duration
Force logoff sessions at the end of the drain mode period
Repeat Type
Repeat Specific Days
No Content
No content
Unauthorized
Not Found
PUT /api/AVD/HostPool/{id}/AutoUpgrade HTTP/1.1
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 369
{
"enabled": true,
"startDateTime": "2026-01-01T00:00:00.000Z",
"drainModeDurationInSecs": 1,
"forceLogoffSessions": true,
"repeat": [
"0 = Never",
"1 = EveryDay",
"2 = EveryWeek",
"3 = Every2Weeks",
"4 = EveryMonth",
"5 = EveryYear",
"6 = SpecificDays"
],
"specificDays": [
"0 = Never",
"1 = Sunday",
"2 = Monday",
"4 = Tuesday",
"8 = Wednesday",
"16 = Thursday",
"32 = Friday",
"64 = Saturday"
]
}No content
Last updated