Support for ARM Template for AzSubscriptionDeployment equivalent

I’ve tried deploying ARM template to configure Activity Log diagnostic setting using resource “azurerm_template_deployment”, it failed.

When I investigate further, it’s using powershell commandlet ‘New-AzSubscriptionDeployment’. Terraform resource “azurerm_template_deployment” seems to be equivalent of PS commandlet ‘New-AzResourceGroupDeployment’.

Objectives:
Try to achive below the result as described in
https://docs.microsoft.com/en-us/azure/azure-monitor/samples/resource-manager-diagnostic-settings

Please advise if there is existing terraform resource that support this.