You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C h e c k i n g f o r u p d a t e s . . .
D o w n l o a d i n g u p d a t e s . . .
T h e r e q u e s t e d o p e r a t i o n r e q u i r e s e l e v a t i o n .
Expected Behavior
I was expecting to be able to update WSL using automation. We use automation on Azure VMs to create images we use elsewhere in our organization. We use Docker Desktop in this image which requires us to update WSL to its latest version.
Actual Behavior
I have not found a way to elevate the user for wsl --update. All other commands that require user elevation succeed. Example:
So I think the The requested operation requires elevation message is incorrect.
But I may be missing something.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
bretboss
changed the title
Automating wsl --update on Azure hosted VM doesn't work
Automating wsl --update on Azure hosted Win11 VM doesn't work
Jul 22, 2022
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Version
Microsoft Windows [Version 10.0.22000.795]
WSL Version
Kernel Version
No response
Distro Version
No response
Other Software
PowerShell Az.Compute module v4.29.0
Repro Steps
If I try and update WSL using the System account then Access is Denied:
Result
If I try to update WSL using an administrator account then elevation is required:
Result
Expected Behavior
I was expecting to be able to update WSL using automation. We use automation on Azure VMs to create images we use elsewhere in our organization. We use Docker Desktop in this image which requires us to update WSL to its latest version.
Actual Behavior
I have not found a way to elevate the user for
wsl --update
. All other commands that require user elevation succeed. Example:So I think the
The requested operation requires elevation
message is incorrect.But I may be missing something.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: