Search code examples
sql-serverazurepolicies

Are policies applied to SQL servers also apply to managed instances?


  1. When we specify a policy effect in Azure with following details :
"type": "Microsoft.Sql/managedInstances/securityAlertPolicies"
  1. Can this be also done with
"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 :).


Solution

  • As Azure SQL and Azure SQL managed instances are different resources, we have to specify different policies for both of them.