I am trying to create standard logic app with multiple workflows through bicep. i have added bicep code for creating AppServicePlan and logicapp. however could not find bicep code to add multiple workflows. we need to try small automation scripts to run as part of workflows.
here is the code
<code> resource hosting_plan 'Microsoft.Web/serverfarms@2022-09-01' = {
name: appservicePlanName
location: location
sku: {
name: skuName
capacity: skuCapacity
}
properties: {
}
}
resource logicApp 'Microsoft.Web/sites@2022-09-01' = {
name: logicAppName
location: location
kind: 'functionapp,workflowapp'
identity: {
type: 'SystemAssigned'
}
properties: {
httpsOnly: true
serverFarmId: hosting_plan.id
clientAffinityEnabled: true
siteConfig: {
remoteDebuggingEnabled: false
ftpsState: 'Disabled'
minTlsVersion: '1.2'
scmIpSecurityRestrictionsDefaultAction: 'Deny'
ipSecurityRestrictionsDefaultAction: 'Deny'
functionsRuntimeScaleMonitoringEnabled: false
}
}
}
</code>
<code> resource hosting_plan 'Microsoft.Web/serverfarms@2022-09-01' = {
name: appservicePlanName
location: location
sku: {
name: skuName
capacity: skuCapacity
}
properties: {
}
}
resource logicApp 'Microsoft.Web/sites@2022-09-01' = {
name: logicAppName
location: location
kind: 'functionapp,workflowapp'
identity: {
type: 'SystemAssigned'
}
properties: {
httpsOnly: true
serverFarmId: hosting_plan.id
clientAffinityEnabled: true
siteConfig: {
remoteDebuggingEnabled: false
ftpsState: 'Disabled'
minTlsVersion: '1.2'
scmIpSecurityRestrictionsDefaultAction: 'Deny'
ipSecurityRestrictionsDefaultAction: 'Deny'
functionsRuntimeScaleMonitoringEnabled: false
}
}
}
</code>
resource hosting_plan 'Microsoft.Web/serverfarms@2022-09-01' = {
name: appservicePlanName
location: location
sku: {
name: skuName
capacity: skuCapacity
}
properties: {
}
}
resource logicApp 'Microsoft.Web/sites@2022-09-01' = {
name: logicAppName
location: location
kind: 'functionapp,workflowapp'
identity: {
type: 'SystemAssigned'
}
properties: {
httpsOnly: true
serverFarmId: hosting_plan.id
clientAffinityEnabled: true
siteConfig: {
remoteDebuggingEnabled: false
ftpsState: 'Disabled'
minTlsVersion: '1.2'
scmIpSecurityRestrictionsDefaultAction: 'Deny'
ipSecurityRestrictionsDefaultAction: 'Deny'
functionsRuntimeScaleMonitoringEnabled: false
}
}
}
how can achieve adding multiple workflows through bicep code. thanks in advance