Open Satyadm123 opened 11 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT.
Author: | Satyadm123 |
---|---|
Assignees: | - |
Labels: | `Compute - VM`, `Service Attention`, `bug`, `customer-reported` |
Milestone: | - |
@nikhilpatel909 can you have a look at this?
This will be a new feature request to Powershell team.
My bad, This is actually a feature request to run command so it will stay with me, We will evaluate and prioritize.
@Satyadm123 this is still on our roadmap and we are in internal discussions on this topic.
Description
I am trying to execute Powershell scripts using run commands on Windows VM. I have powershell 7 installed on the server. But Powershell 7 is not selected and it defaults to Powershell 5 while executing Run commands. Is it possible to select Powershell 7 for execution via run co mmands (Invoke Az VM run command/Set AzVM Run command)? I have tried creating a profile and mentioning pwsh.exe but I get error when I execute a Powershell via SetAzVMRun Command
Issue script & Debug output
Environment data
Module versions
Error output