If you want to create logic app templates just as I have done in this repository you can follow the steps below.
If you publish your Logic Apps/Playbooks publicly keep in mind that you should remove all the private information from your logic app, if dont it may introduce a security risk.
- Download the ARM Template Generator: Link
- Execute the ARM Template Generator and safe the AzureDeploy.json file in your prefered location.
- Push the AzureDeploy.json to github.
- Copy the link of the raw file location
- Use the PowerShell Script below to format the URL for deploy to Azure button
$url = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.storage/storage-account-create/azuredeploy.json"
[uri]::EscapeDataString($url)- Copy the URL and link it to your deploy button:
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fdev.azure.com%2Forgname%2Fprojectname%2F_apis%2Fgit%2Frepositories%2Freponame%2Fitems%3FscopePath%3D%2freponame%2fazuredeploy.json%26api-version%3D6.0)