-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Restart-Computer performs shutdown on Ubuntu 18.04 #14684
Copy link
Copy link
Open
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to reproduce
Restart-ComputerExpected behavior
The computer should restart.
Actual behavior
The computer is shut down.
The computer running into this issue on is running in Azure, where the platform logs stated the following after finding that the VM was in a Stopped state:
Environment data
I have not tested whether the issue is also present on other Linux distros, but I would suspect so.
I haven't looked very closely at the source code, but what is supposed to happen seems correct:
https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Management/commands/management/ComputerUnix.cs#L45