Creating an Azure Logic App with Powershell not working

Debbie Edwards 521 Reputation points

Im using the documentation to create a logic app with powershell

New-AzLogicApp -ResourceGroupName "dev-uks-project-rg" -Name " dev-uks-
project-logic" -Location " UKSouth" -State "Enabled" -DefinitionFilePath ".\workflows\ 
projectDefinition.json" -ParameterFilePath ".\workflows\projectParameters.json"

But it errors

New-AzLogicApp : File '.\workflows\ Projectefinition.json' does not exist.

At line:1 char:1

+ New-AzLogicApp -ResourceGroupName "dev-uks-project-rg" -Name " dev- ...

But no where does it explain what you need to do to get this working. I know the JSON files aren't there but what do I do? Is this a manual process? any help would be great because the documentation just doesnt cover this

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,904 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,396 Reputation points Microsoft Employee

    @Debbie Edwards Edwards Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    Could you please help us with the documentation link that you are referring to create a logic app using PowerShell ?

    I have come across this documentation, where it is clearly mentioned that before you create\update the logic app using Azure PowerShell you need to create a workflow definition(JSON formatted file) for your logic app.

    Then you need to pass the path of the workflow definition file to -DefinitionFilePath property for New-AzLogicApp cmdlet.

    Feel free to reach back to me if you have any further questions on this.