1

In my Azure portal I have created one empty logic app in East US region. And I created one sample logicapp workflow which contains http request trigger and initialize variable action.Then download this as json file and deleted this logicapp. Now my requirement is in azure git repo I have to use this workflow json file as source and then using Azure devops pipeline need to deploy to that empty logicapp. After successful deploy in azure portal the empty logicapp should have this workflow. In my azure devops I created git repo with the name Demo repo and uploaded sample workflow json file. After this I am facing issue like how to configure pipeline to achieve my requirement.

What I tried from my end,

Created empty logicapp region, East US

Created Azure DevOps using, Agile process and created Demo Repo and uploaded sample workflow. Json. enter image description here

enter image description here

enter image description here

enter image description here

1 Answer 1

1

After this I am facing issue like how to configure pipeline to achieve my requirement.

In order to Deploy your Logic app files in Azure Portal, You can Use ARM Template Deployment Task in your Release pipeline and select your LogicApp.json file which has your Logic app workflow and LogicApp.parameters.json file which has your Logic app parameters like below:-

enter image description here

Select your LogicApp.json and LogicApp.parameters.json file by clicking on ... 3 dots and correct path to your repository. And In override parameter write the name of your existing Logic app and its location in the value like below:-

Override Template parameter:-

-logicAppName valleyLA87 -logicAppLocation australiaeast

enter image description here

Output:-

enter image description here

enter image description here

enter image description here

Updated:-

My Azure Repository:-

enter image description here

I have selected the above LogicApp.json from my Repository in my template section of Release pipeline ARM Template Deployment Task and LogicApp.parameters.json in my Template parameter section.

I recommend using Release pipeline and not CI Build pipeline But you can make use of below YAML code in your build pipeline too -

trigger:
- master

pool:
  vmImage: ubuntu-latest

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- task: AzureResourceManagerTemplateDeployment@3
  displayName: 'ARM Template deployment: Resource Group scope'
  inputs:
    azureResourceManagerConnection: 'SID subscription(xxxxx6e97cb2a7)'
    subscriptionId: 'xxxxx-e2b6e97cb2a7'
    resourceGroupName: siliconrg54
    location: 'Australia East'
    csmFile: '$(System.DefaultWorkingDirectory)/_AzureResourceGroup5/AzureResourceGroup5/LogicApp.json'
    csmParametersFile: '$(System.DefaultWorkingDirectory)/_AzureResourceGroup5/AzureResourceGroup5/LogicApp.parameters.json'
    overrideParameters: '-logicAppName valleyLA87 -logicAppLocation australiaeast'
Sign up to request clarification or add additional context in comments.

24 Comments

Thank you. Could you please show your Azure git repo and CI pipeline.
@KarmileS Check my updated answer with my repository and I recommend using Release pipeline rather than build
Refer this youtube video for more details and clarity- youtube.com/watch?v=LPq2ifYCAkE&t=1055s
thank you actually i already tried your approach but i am getting the error as shown in image. could you please check that and help me where i am doing wrong .
@KarmileS I am reworking with your scenario, Allow me sometime
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.