You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARMTemplateChecker - Enable Azure AD admin for the SQL Database - False positive with linked templates
Description
We have a linked template structure where our "Microsoft.SQL/servers" resource is on template file A and our "Microsoft.SQL/servers/databases" resources are on template file B. When Get-AzSKARMTemplateSecurityStatus is run against this database resource, we still get a failure for "Enable Azure AD admin for the SQL Database" where expected property $.properties.administratorType has expected value "ActiveDirectory".
The admin settings are set in the "servers"-resource, and not the database resources, and the most up to date api version documented for "databases" does not list the ability to add "properties.administratorType".
I am having the exact same situation! I am not sure what to try to fix it tho since I cannot seem to be able to run PS for the checker. I have to re run mi pipeline validation stage. Also, I am working it on YAML based deployment. Did you get any updates on this?
Title
ARMTemplateChecker - Enable Azure AD admin for the SQL Database - False positive with linked templates
Description
We have a linked template structure where our "Microsoft.SQL/servers" resource is on template file A and our "Microsoft.SQL/servers/databases" resources are on template file B. When Get-AzSKARMTemplateSecurityStatus is run against this database resource, we still get a failure for "Enable Azure AD admin for the SQL Database" where expected property $.properties.administratorType has expected value "ActiveDirectory".
The admin settings are set in the "servers"-resource, and not the database resources, and the most up to date api version documented for "databases" does not list the ability to add "properties.administratorType".
Steps to reproduce
Template for testing:
Run this command to test
Expected behavior
This check should not be run against "Microsoft.SQL/servers/databases"
Actual behavior
This check is run against "Microsoft.SQL/servers/databases"
The text was updated successfully, but these errors were encountered: