I am deploying a Standard Logic App using Bicep.
I am attempting to set “Enabled from select virtual networks and IP addresses” and associated “site access and rules”
The code below results in none of the three “Public network access” options being set so I’m guessing it is set to null. Has anyone achieved this?
resource logicApp 'Microsoft.Web/sites@2022-09-01' = {
name: logicAppName
location: location
kind: 'functionapp,workflowapp'
identity: {
type: 'SystemAssigned'
}
properties: {
serverFarmId: hostingPlan.id
virtualNetworkSubnetId: subnetLogicAppId
siteConfig: {
cors: {
allowedOrigins: [
'https://portal.azure.com'
]
}
ftpsState: 'Disabled'
minTlsVersion: '1.2'
use32BitWorkerProcess: false
netFrameworkVersion: '6.0'
functionsRuntimeScaleMonitoringEnabled: false
vnetRouteAllEnabled: true
**publicNetworkAccess: 'Enabled'
ipSecurityRestrictions: [
{
ipAddress: 'xxx.xxx.xxx.xxx/32'
action: 'Allow'
tag: 'Default'
priority: 300
name: 'laptop'
description: 'laptop IP'
}
{
ipAddress: 'Any'
action: 'Deny'
priority: 2147483647
name: 'Deny all'
description: 'Deny all access'
}
]
ipSecurityRestrictionsDefaultAction:'Deny'
scmIpSecurityRestrictions: [
{
ipAddress: 'Any'
action: 'Deny'
priority: 2147483647
name: 'Deny all'
description: 'Deny all access'
}
]
scmIpSecurityRestrictionsDefaultAction:'Deny'
scmIpSecurityRestrictionsUseMain: true**
}
httpsOnly: true
}
}