Currently, web app on Linux does not support Managed service identity. So, you could not use ARM template to do this.
Supported service you could check this link.
Note: Azure App Service is supported, but web app on Linux currently does not support msi.