Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: The system cannot find the file specified #20040

Closed
4 of 7 tasks
KrunoslavPipic opened this issue Jun 20, 2024 · 1 comment
Closed
4 of 7 tasks

[BUG]: The system cannot find the file specified #20040

KrunoslavPipic opened this issue Jun 20, 2024 · 1 comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage

Comments

@KrunoslavPipic
Copy link

New issue checklist

Task name

No response

Task version

No response

Issue Description

The following scripts fails:

$folders = Get-ChildItem -Path "C:\Program Files\Microsoft Dynamics 365 Business Central\" -Directory
$numericFolders = $folders | Where-Object { $_.Name -match '^\d+$' }
$highestFolder = $numericFolders | Sort-Object -Property Name -Descending | Select-Object -First 1
$navAdminToolPath = Join-Path -Path $highestFolder.FullName -ChildPath "Service\NavAdminTool.ps1"
Import-Module $navAdminToolPath | Out-Null

$service = Get-NAVServerInstance -ServerInstance $configuration.serverInstance

with the errror message :

Get-NAVServerInstance : The system cannot find the file specified

On the machine is installed Microsoft Dynamics 365 Business Central 2024 wave 1 with folowing module:
https://learn.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.management/?view=businesscentral-ps-24

image

Pipeline on the other machine where is installed Business Central 2023 wave 2 is working correct with the same script command.
image

Command manually from PowerShell ISE on machine executes successfully.

Current agent version: '3.240.1'

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

Windows 2022 Datacentar

Relevant log output

<details>
  <pre> 2024-06-20T08:11:37.8320926Z ##[debug]Evaluating condition for step: 'PowerShell Script'
2024-06-20T08:11:37.8322259Z ##[debug]Evaluating: succeeded()
2024-06-20T08:11:37.8322459Z ##[debug]Evaluating succeeded:
2024-06-20T08:11:37.8322892Z ##[debug]=> True
2024-06-20T08:11:37.8323167Z ##[debug]Result: True
2024-06-20T08:11:37.8323421Z ##[section]Starting: PowerShell Script
2024-06-20T08:11:37.8331800Z ==============================================================================
2024-06-20T08:11:37.8331920Z Task         : PowerShell
2024-06-20T08:11:37.8331990Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2024-06-20T08:11:37.8332082Z Version      : 2.239.1
2024-06-20T08:11:37.8332138Z Author       : Microsoft Corporation
2024-06-20T08:11:37.8332226Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2024-06-20T08:11:37.8332328Z ==============================================================================
2024-06-20T08:11:37.8448863Z ##[debug]Resource Utilization warnings is disabled, switch "DISABLE_RESOURCE_UTILIZATION_WARNINGS" variable to "true" if you want to enable it
2024-06-20T08:11:38.6107250Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-06-20T08:11:38.7183339Z ##[debug]Loading module from path 'C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer\Sanitizer.psm1'.
2024-06-20T08:11:38.7302794Z ##[debug]$OVERRIDING $global:DebugPreference from 'Continue' to 'SilentlyContinue'.
2024-06-20T08:11:38.7324704Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer/module.json
2024-06-20T08:11:38.7392618Z ##[debug]Loaded 1 strings.
2024-06-20T08:11:38.7427839Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-06-20T08:11:38.7449168Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer\Strings\resources.resjson\en-US\resources.resjson
2024-06-20T08:11:38.7496218Z ##[debug]Loaded 1 strings.
2024-06-20T08:11:38.7740723Z ##[debug]Feature flag AZP_75787_ENABLE_NEW_LOGIC state: False
2024-06-20T08:11:38.7773709Z ##[debug]Feature flag AZP_75787_ENABLE_NEW_LOGIC_LOG state: False
2024-06-20T08:11:38.7804012Z ##[debug]Feature flag AZP_75787_ENABLE_COLLECT state: True
2024-06-20T08:11:38.7821364Z ##[debug]Exporting function 'Get-SanitizerFeatureFlags'.
2024-06-20T08:11:38.7837871Z ##[debug]Exporting function 'Get-SanitizerCallStatus'.
2024-06-20T08:11:38.7854089Z ##[debug]Exporting function 'Get-SanitizerActivateStatus'.
2024-06-20T08:11:38.7870355Z ##[debug]Exporting function 'Protect-ScriptArguments'.
2024-06-20T08:11:38.7887725Z ##[debug]Importing function 'Get-SanitizerActivateStatus'.
2024-06-20T08:11:38.7903368Z ##[debug]Importing function 'Get-SanitizerCallStatus'.
2024-06-20T08:11:38.7919267Z ##[debug]Importing function 'Get-SanitizerFeatureFlags'.
2024-06-20T08:11:38.7934956Z ##[debug]Importing function 'Protect-ScriptArguments'.
2024-06-20T08:11:38.8102211Z ##[debug]Entering C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\powershell.ps1.
2024-06-20T08:11:38.8177161Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\task.json
2024-06-20T08:11:38.8479240Z ##[debug]Loaded 14 strings.
2024-06-20T08:11:38.8504252Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-06-20T08:11:38.8525257Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\Strings\resources.resjson\en-US\resources.resjson
2024-06-20T08:11:38.8779849Z ##[debug]Loaded 14 strings.
2024-06-20T08:11:38.8994775Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'stop'
2024-06-20T08:11:38.9043540Z ##[debug]INPUT_WARNINGPREFERENCE: 'default'
2024-06-20T08:11:38.9065416Z ##[debug]INPUT_INFORMATIONPREFERENCE: 'default'
2024-06-20T08:11:38.9088219Z ##[debug]INPUT_VERBOSEPREFERENCE: 'default'
2024-06-20T08:11:38.9109847Z ##[debug]INPUT_DEBUGPREFERENCE: 'default'
2024-06-20T08:11:38.9131877Z ##[debug]INPUT_PROGRESSPREFERENCE: 'silentlyContinue'
2024-06-20T08:11:38.9152435Z ##[debug]INPUT_SHOWWARNINGS: 'false'
2024-06-20T08:11:39.0088051Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0090718Z ##[debug]INPUT_FAILONSTDERR: 'false'
2024-06-20T08:11:39.0107830Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0127706Z ##[debug]INPUT_IGNORELASTEXITCODE: 'false'
2024-06-20T08:11:39.0142990Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0164958Z ##[debug]INPUT_PWSH: 'false'
2024-06-20T08:11:39.0179430Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0198152Z ##[debug]INPUT_WORKINGDIRECTORY: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.0314948Z ##[debug]Asserting container path exists: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.0340490Z ##[debug]INPUT_TARGETTYPE: 'filePath'
2024-06-20T08:11:39.0368022Z ##[debug]INPUT_FILEPATH: 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.0383704Z ##[debug]Asserting leaf path exists: 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.0415273Z ##[debug]INPUT_ARGUMENTS (empty)
2024-06-20T08:11:39.0449652Z ##[debug]INPUT_RUNSCRIPTINSEPARATESCOPE: 'false'
2024-06-20T08:11:39.0463978Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0498787Z Generating script.
2024-06-20T08:11:39.0953882Z Formatted command: . 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.1060069Z ##[debug]AGENT_VERSION: '3.240.1'
2024-06-20T08:11:39.1122994Z ##[debug]AGENT_TEMPDIRECTORY: 'C:\agent\_work\_temp'
2024-06-20T08:11:39.1138665Z ##[debug]Asserting container path exists: 'C:\agent\_work\_temp'
2024-06-20T08:11:39.1452649Z ##[debug]Asserting leaf path exists: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2024-06-20T08:11:39.1464386Z ========================== Starting Command Output ===========================
2024-06-20T08:11:39.1599091Z ##[debug]Entering Invoke-VstsTool.
2024-06-20T08:11:39.1666928Z ##[debug] Arguments: '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\e7a6ed5a-0b4d-433c-9e70-94818aa61631.ps1'"'
2024-06-20T08:11:39.1681319Z ##[debug] FileName: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2024-06-20T08:11:39.1695574Z ##[debug] WorkingDirectory: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.1739420Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\e7a6ed5a-0b4d-433c-9e70-94818aa61631.ps1'"
2024-06-20T08:11:39.6741684Z 
2024-06-20T08:11:39.6742194Z Welcome to the Server Admin Tool Shell!
2024-06-20T08:11:39.6749456Z For a complete list of Server cmdlets type
2024-06-20T08:11:39.6750510Z 
2024-06-20T08:11:39.6764207Z Get-Command -Module Microsoft.Dynamics.Nav.Management
2024-06-20T08:11:39.6846242Z C:\Program Files\Microsoft Dynamics 365 Business Central\240\Service\Management
2024-06-20T08:11:39.7999200Z Get-NAVServerInstance : The system cannot find the file specified
2024-06-20T08:11:39.7999519Z At C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1:96 char:16
2024-06-20T08:11:39.7999839Z + ...  $service = Get-NAVServerInstance -ServerInstance $configuration.serv ...
2024-06-20T08:11:39.8000312Z +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-20T08:11:39.8000625Z     + CategoryInfo          : NotSpecified: (:) [Get-NAVServerInstance], Win32Exception
2024-06-20T08:11:39.8000886Z     + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.Dynamics.Nav.Management.GetNAVServerInsta 
2024-06-20T08:11:39.8001065Z    nce
2024-06-20T08:11:39.8001172Z  
2024-06-20T08:11:39.8219208Z ##[debug]Exit code: 1
2024-06-20T08:11:39.8249741Z ##[debug]Leaving Invoke-VstsTool.
2024-06-20T08:11:39.8509751Z ##[error]PowerShell exited with code '1'.
2024-06-20T08:11:39.8515207Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal]PowerShell exited with code '1'.
2024-06-20T08:11:39.8582967Z ##[debug]Processed: ##vso[task.complete result=Failed]Error detected
2024-06-20T08:11:39.8598997Z ##[debug]Leaving C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\powershell.ps1.
2024-06-20T08:11:39.8877942Z ##[section]Finishing: PowerShell Script
 </pre>
</details>

Full task logs with system.debug enabled

 2024-06-20T08:11:37.8320926Z ##[debug]Evaluating condition for step: 'PowerShell Script'
2024-06-20T08:11:37.8322259Z ##[debug]Evaluating: succeeded()
2024-06-20T08:11:37.8322459Z ##[debug]Evaluating succeeded:
2024-06-20T08:11:37.8322892Z ##[debug]=> True
2024-06-20T08:11:37.8323167Z ##[debug]Result: True
2024-06-20T08:11:37.8323421Z ##[section]Starting: PowerShell Script
2024-06-20T08:11:37.8331800Z ==============================================================================
2024-06-20T08:11:37.8331920Z Task         : PowerShell
2024-06-20T08:11:37.8331990Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2024-06-20T08:11:37.8332082Z Version      : 2.239.1
2024-06-20T08:11:37.8332138Z Author       : Microsoft Corporation
2024-06-20T08:11:37.8332226Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2024-06-20T08:11:37.8332328Z ==============================================================================
2024-06-20T08:11:37.8448863Z ##[debug]Resource Utilization warnings is disabled, switch "DISABLE_RESOURCE_UTILIZATION_WARNINGS" variable to "true" if you want to enable it
2024-06-20T08:11:38.6107250Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-06-20T08:11:38.7183339Z ##[debug]Loading module from path 'C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer\Sanitizer.psm1'.
2024-06-20T08:11:38.7302794Z ##[debug]$OVERRIDING $global:DebugPreference from 'Continue' to 'SilentlyContinue'.
2024-06-20T08:11:38.7324704Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer/module.json
2024-06-20T08:11:38.7392618Z ##[debug]Loaded 1 strings.
2024-06-20T08:11:38.7427839Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-06-20T08:11:38.7449168Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\ps_modules\Sanitizer\Strings\resources.resjson\en-US\resources.resjson
2024-06-20T08:11:38.7496218Z ##[debug]Loaded 1 strings.
2024-06-20T08:11:38.7740723Z ##[debug]Feature flag AZP_75787_ENABLE_NEW_LOGIC state: False
2024-06-20T08:11:38.7773709Z ##[debug]Feature flag AZP_75787_ENABLE_NEW_LOGIC_LOG state: False
2024-06-20T08:11:38.7804012Z ##[debug]Feature flag AZP_75787_ENABLE_COLLECT state: True
2024-06-20T08:11:38.7821364Z ##[debug]Exporting function 'Get-SanitizerFeatureFlags'.
2024-06-20T08:11:38.7837871Z ##[debug]Exporting function 'Get-SanitizerCallStatus'.
2024-06-20T08:11:38.7854089Z ##[debug]Exporting function 'Get-SanitizerActivateStatus'.
2024-06-20T08:11:38.7870355Z ##[debug]Exporting function 'Protect-ScriptArguments'.
2024-06-20T08:11:38.7887725Z ##[debug]Importing function 'Get-SanitizerActivateStatus'.
2024-06-20T08:11:38.7903368Z ##[debug]Importing function 'Get-SanitizerCallStatus'.
2024-06-20T08:11:38.7919267Z ##[debug]Importing function 'Get-SanitizerFeatureFlags'.
2024-06-20T08:11:38.7934956Z ##[debug]Importing function 'Protect-ScriptArguments'.
2024-06-20T08:11:38.8102211Z ##[debug]Entering C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\powershell.ps1.
2024-06-20T08:11:38.8177161Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\task.json
2024-06-20T08:11:38.8479240Z ##[debug]Loaded 14 strings.
2024-06-20T08:11:38.8504252Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-06-20T08:11:38.8525257Z ##[debug]Loading resource strings from: C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\Strings\resources.resjson\en-US\resources.resjson
2024-06-20T08:11:38.8779849Z ##[debug]Loaded 14 strings.
2024-06-20T08:11:38.8994775Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'stop'
2024-06-20T08:11:38.9043540Z ##[debug]INPUT_WARNINGPREFERENCE: 'default'
2024-06-20T08:11:38.9065416Z ##[debug]INPUT_INFORMATIONPREFERENCE: 'default'
2024-06-20T08:11:38.9088219Z ##[debug]INPUT_VERBOSEPREFERENCE: 'default'
2024-06-20T08:11:38.9109847Z ##[debug]INPUT_DEBUGPREFERENCE: 'default'
2024-06-20T08:11:38.9131877Z ##[debug]INPUT_PROGRESSPREFERENCE: 'silentlyContinue'
2024-06-20T08:11:38.9152435Z ##[debug]INPUT_SHOWWARNINGS: 'false'
2024-06-20T08:11:39.0088051Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0090718Z ##[debug]INPUT_FAILONSTDERR: 'false'
2024-06-20T08:11:39.0107830Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0127706Z ##[debug]INPUT_IGNORELASTEXITCODE: 'false'
2024-06-20T08:11:39.0142990Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0164958Z ##[debug]INPUT_PWSH: 'false'
2024-06-20T08:11:39.0179430Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0198152Z ##[debug]INPUT_WORKINGDIRECTORY: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.0314948Z ##[debug]Asserting container path exists: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.0340490Z ##[debug]INPUT_TARGETTYPE: 'filePath'
2024-06-20T08:11:39.0368022Z ##[debug]INPUT_FILEPATH: 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.0383704Z ##[debug]Asserting leaf path exists: 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.0415273Z ##[debug]INPUT_ARGUMENTS (empty)
2024-06-20T08:11:39.0449652Z ##[debug]INPUT_RUNSCRIPTINSEPARATESCOPE: 'false'
2024-06-20T08:11:39.0463978Z ##[debug] Converted to bool: False
2024-06-20T08:11:39.0498787Z Generating script.
2024-06-20T08:11:39.0953882Z Formatted command: . 'C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1'
2024-06-20T08:11:39.1060069Z ##[debug]AGENT_VERSION: '3.240.1'
2024-06-20T08:11:39.1122994Z ##[debug]AGENT_TEMPDIRECTORY: 'C:\agent\_work\_temp'
2024-06-20T08:11:39.1138665Z ##[debug]Asserting container path exists: 'C:\agent\_work\_temp'
2024-06-20T08:11:39.1452649Z ##[debug]Asserting leaf path exists: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2024-06-20T08:11:39.1464386Z ========================== Starting Command Output ===========================
2024-06-20T08:11:39.1599091Z ##[debug]Entering Invoke-VstsTool.
2024-06-20T08:11:39.1666928Z ##[debug] Arguments: '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\e7a6ed5a-0b4d-433c-9e70-94818aa61631.ps1'"'
2024-06-20T08:11:39.1681319Z ##[debug] FileName: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2024-06-20T08:11:39.1695574Z ##[debug] WorkingDirectory: 'C:\agent\_work\r11\a'
2024-06-20T08:11:39.1739420Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\e7a6ed5a-0b4d-433c-9e70-94818aa61631.ps1'"
2024-06-20T08:11:39.6741684Z 
2024-06-20T08:11:39.6742194Z Welcome to the Server Admin Tool Shell!
2024-06-20T08:11:39.6749456Z For a complete list of Server cmdlets type
2024-06-20T08:11:39.6750510Z 
2024-06-20T08:11:39.6764207Z Get-Command -Module Microsoft.Dynamics.Nav.Management
2024-06-20T08:11:39.6846242Z C:\Program Files\Microsoft Dynamics 365 Business Central\240\Service\Management
2024-06-20T08:11:39.7999200Z Get-NAVServerInstance : The system cannot find the file specified
2024-06-20T08:11:39.7999519Z At C:\agent\_work\r11\a\_payrolls\Artifacts\UpgradeApp.ps1:96 char:16
2024-06-20T08:11:39.7999839Z + ...  $service = Get-NAVServerInstance -ServerInstance $configuration.serv ...
2024-06-20T08:11:39.8000312Z +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-20T08:11:39.8000625Z     + CategoryInfo          : NotSpecified: (:) [Get-NAVServerInstance], Win32Exception
2024-06-20T08:11:39.8000886Z     + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.Dynamics.Nav.Management.GetNAVServerInsta 
2024-06-20T08:11:39.8001065Z    nce
2024-06-20T08:11:39.8001172Z  
2024-06-20T08:11:39.8219208Z ##[debug]Exit code: 1
2024-06-20T08:11:39.8249741Z ##[debug]Leaving Invoke-VstsTool.
2024-06-20T08:11:39.8509751Z ##[error]PowerShell exited with code '1'.
2024-06-20T08:11:39.8515207Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal]PowerShell exited with code '1'.
2024-06-20T08:11:39.8582967Z ##[debug]Processed: ##vso[task.complete result=Failed]Error detected
2024-06-20T08:11:39.8598997Z ##[debug]Leaving C:\agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.239.1\powershell.ps1.
2024-06-20T08:11:39.8877942Z ##[section]Finishing: PowerShell Script
 

Repro steps

Try one of command from NavAdminTool.ps1 module using release pipeline.
@v-schhabra v-schhabra added Area: ABTT Akvelon Build Tasks Team area of work and removed Area: Release labels Jun 20, 2024
@KrunoslavPipic
Copy link
Author

Solved

Use PowerShell Core paramter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage
Projects
None yet
Development

No branches or pull requests

2 participants