Actions63
- Account Actions
- Auto-Scale Profile Actions
- Backup Actions
- Cost Estimator Actions
- Desktop Image Actions
- Group Actions
- Host Actions
- Host Pool Actions
- Job Actions
- Network Actions
- Recovery Vault Actions
- Reservation Actions
- Resource Group Actions
- Schedule Actions
- Scripted Action Actions
- Secure Variable Actions
- Storage Actions
- Test Actions
- User Actions
- User Session Actions
Host → Restart
AI-generatedSummary
Initiates a restart for a specific Azure Virtual Desktop host.
Inputs
- accountId (required) — The account to operate on. Choose from the list, or specify an ID using an expression.
- hostId (required) — The host to operate on. Choose from the list, or specify an ID using an expression.
- waitForCompletion — Whether to wait for the job to complete before returning (default: true).
- maxWaitSeconds — Maximum time to wait for job completion (default: 300).
Output shape
An item containing the API response. If waitForCompletion is true, the response includes the completed job details.
The operation returns immediately with a job ID if waitForCompletion is false. If true, it polls the job status until Completed, Succeeded, Failed, or Cancelled, or until the maxWaitSeconds limit is reached.
Examples
Example 1: Restart a host and wait for completion
Select 'Host' resource, 'Restart' operation. Choose an Account and a Host from the dropdowns. Leave 'Wait for Completion' as default.
Example 2: Restart a host and continue workflow immediately
Select 'Host' resource, 'Restart' operation. Choose an Account and a Host from the dropdowns. Uncheck 'Wait for Completion' to return immediately with a job ID.