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’.
Try to achive below the result as described in
Please advise if there is existing terraform resource that support this.