"type": "Microsoft.Sql/managedInstances/securityAlertPolicies"
"type": "Microsoft.Sql/servers/securityAlertPolicies",
I think that 1 should work even with 2 as SQL managed instances are also SQL servers. Am I correct ?
Thanks in advance for your help :).
As Azure SQL and Azure SQL managed instances are different resources, we have to specify different policies for both of them.