Did you check the netFrameworkVersion value in your Logic App's template (click Export template)?
netFrameworkVersion
Export template
If it's set to "v6.0" you can amend the ARM template to set it to "v8.0".