-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzureCLI
Task version
AzureCLI@2
Issue Description
PowerShell 7.5 not available in AzureCLI@2. We need some features from pwsh 7.5 see https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-75?view=powershell-7.5.
I usedthe AzureCLI task as follows:
steps:
- task: AzureCLI@2
displayName: RunMainScript
inputs:
azureSubscription: $(AzureServiceConnection)
scriptType: pscore
scriptLocation: 'scriptPath'
scriptPath: 'PowerShell/AzureDevOps/Main.ps1'
arguments: '-Param1"${{parameters.param1}}" -Param2"${{ parameters.param2}}"'
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu latest
Relevant log output
$PSVersionTable output:
Name Value
---- -----
PSVersion 7.4.12
PSEdition Core
GitCommitId 7.4.12
OS Ubuntu 24.04.3 LTS
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Full task logs with system.debug enabled
[REPLACE THIS WITH YOUR INFORMATION]