Hi @Nair, Veena Deepak ,
First Let me help you with the step by step based on azure learning guides:
- I recommend you use bicep to define your infrastructure as code this is easy to understand than ARM. To be familiarized with bicep you can follow this first guied: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code?tabs=CLI
Note: Here you will learn to create your main.bicep , where it will be defined your azure resource
- You can find the azure logic app resource definition to start building your code and customize according your requeriments : https://learn.microsoft.com/en-us/azure/templates/microsoft.logic/workflows?pivots=deployment-language-bicep
Note: In this step you learn to customize your bicep file for an specific resource in this case logic apps. example file: main.bicep
- Deploy this bicep file a verify your resource created on azure: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deploy-cli
Here you learn how to deploy main.bicep in azure platform.
Additionally you can follow this 3 steps to show case how to deploy a logic app on azure:
- Copy this code on file logicapps.bicep:
resource logicApp 'Microsoft.Logic/workflows@2019-05-01' = {
name: 'myLogicApp-demo'
location: resourceGroup().location
properties: {
state: 'Enabled'
definition: {
'$schema': 'https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#'
contentVersion: '1.0.0.0'
triggers: {
recurrence: {
type: 'Recurrence'
recurrence: {
frequency: 'Day'
interval: 1
}
}
}
actions: {
HTTP_Get: {
type: 'Http'
inputs: {
method: 'GET'
uri: 'http://example.com' // Replace with your HTTP endpoint
}
}
}
}
}
}
- Execute this azure cli to deploy in a existing resource group:
az deployment group create resource-group <your-rg-name> template-file logicapps.bicep
- Verify the deployment in the resouce group
Finally with this 3 steps you have deployed logic apps single workflow that run each 24 hours and make a get to API
Cheers,
Luis Arias
If the information helped address your question, please Accept the answer.