You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to convert a workflow.json (simple code view from Consumption Logic App) to a template.json file.
The reason why I'm doing this is to bypass the authentication step within Azure DevOps when acquiring the token and running Get-LogicAppTemplate.
For this reason, I'm using the following code:
This is working correctly, however I'm wandering whether I could use also the Get-LogicAppTemplate command in your module to convert the workflow object into template.json.
Is it possible?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
I'm currently trying to convert a workflow.json (simple code view from Consumption Logic App) to a template.json file.
The reason why I'm doing this is to bypass the authentication step within Azure DevOps when acquiring the token and running Get-LogicAppTemplate.
For this reason, I'm using the following code:
`trigger:
pool:
vmImage: windows-latest
steps:
inputs:
azureSubscription: 'servcon'
ScriptType: 'InlineScript'
Inline: |
$logicapp = Get-AzLogicApp -ResourceGroupName "rg-NAME" -Name "logic-NAME"
$logicapp.Definition.ToString() > $env:BUILD_ARTIFACTSTAGINGDIRECTORY/workflow.json
Install-Module LogicAppTemplate -Force
Import-Module LogicAppTemplate
Get-ParameterTemplate -TemplateFile $env:BUILD_ARTIFACTSTAGINGDIRECTORY/workflow.json > $env:BUILD_ARTIFACTSTAGINGDIRECTORY/parameters.json
azurePowerShellVersion: 'LatestVersion'`
This is working correctly, however I'm wandering whether I could use also the Get-LogicAppTemplate command in your module to convert the workflow object into template.json.
Is it possible?
Thank you.
The text was updated successfully, but these errors were encountered: