aws / aws/aws-toolkit-azure-devops
AWSPowerShellModuleScript please add argument for Powershell Core
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the solution you'd like**
Please add support for Powershell Core (version 6/7), and implement it the same way that it works for the native Powershell tasks in Azure DevOps. Suggested would be to add an argument under inputs called "pwsh" as a boolean value to enable the task to run as Powershell Core instead of Windows Powershell. This article documents how it's done for task PowerShell@2
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/powershell?view=azure-devops
**Additional context**
Normally the task runs as Windows Powershell 5.1:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
With pwsh set to true, it runs as Powershell Core:
"C:\Program Files\PowerShell\7\pwsh.exe"
Contributor guide
Research direction
Start by locating the AWSPowerShellModuleScript task implementation and its inputs, then compare its invocation with the documented Azure DevOps PowerShell@2 behavior. Verify how the task currently selects Windows PowerShell and define completion as accepting a boolean pwsh input that runs the task with PowerShell Core when enabled, while preserving the existing default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell, typescript
- Domain
- ci-cd, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100