How to integrate a config file with an executable using Azure CLU. (T his is for Azure Dev Ops )

David Kim 66 Reputation points
2021-03-02T02:18:34.047+00:00

How to integrate a config file with an executable using Azure CLU. (This is for Azure Dev Ops )
The problem that I am running into is that I want to run and executable agains a file however the executable needs to use the configuration file. Not sure how to get the configuration file integrated into the script?

File to be acted upon by the executable- mail.json
Executable is uipath.studio.commandline.exe
Configuration file is ruleconfig.json

Creating a Azure DevOps pipeline using Azure CLI.
Azure CLI:

param (

$ProjectFilePath= $(Buildin.SourcesDirectory)\TESTREPO7\main.json

$ExecutableFilePath= $(Buildin.SourcesDirectory)\TESTREPO7\Studio.zip\Studio\UiPath.Studio.CommandLine.exe

$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss')-Workflow-Analysis.json

)
Write-Output “$(Get-Date -Format ‘HH:mm:ss’) - STARTED - Workflow Analyzer CLI Script”

$Command = “$ExecutableFilePath analyze -p $ProjectFilePath”
Invoke-Expression $Command | Out-File -FilePath $OutputFilePath

Write-Output “$(Get-Date -Format ‘HH:mm:ss’) - COMPLETED - Workflow Analyzer CLI Script”

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,626 questions
0 comments No comments
{count} votes

Accepted answer
  1. Monalla-MSFT 12,771 Reputation points
    2021-03-02T02:58:15.547+00:00

    @David Kim - Thanks for reaching out.

    Devops is not currently supported here on Microsoft QnA. The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum :
    Developer Community

    --please don't forget to Accept as answer if the reply is helpful--


0 additional answers

Sort by: Most helpful