As title says, Under Diagnose and Solve Problem\Activity and Performance of App Service, I see connect button to connect app service with application insights. I am looking for ARM template settings/powershell commands to automate connection process rather than manually connecting from portal.
similar to : https://azure.github.io/AppService/2020/04/21/Announcing-Application-Insights-Integration-with-App-Service-Diagnostics.html
When enabling from portal, it creates hidden tag with app ID and api key in ARM template. But we are looking for more of general setting.
We have application insights already enabled for app services.
Thanks in advance.