The error that I found is:
{
"code": "InvalidTemplateDeployment",
"details": [
{
"code": "RequestDisallowedByPolicy",
"target": "adeebadflearning",
"message": "Resource 'adeebadflearning' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"sqlserver","id":"/providers/Microsoft.Management/managementGroups/triplecrown1/providers/Microsoft.Authorization/policyAssignments/4d7e23dc76164960b2c974ac"},"policyDefinition":{"name":"Allowed resource types","id":"/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c"},"policySetDefinition":{"name":"sqlserver","id":"/providers/Microsoft.Management/managementGroups/triplecrown1/providers/Microsoft.Authorization/policySetDefinitions/d5a5d5bb-91e0-4a17-9894-25d0f73aa09f"}}]'.",
"additionalInfo": [
{
"type": "PolicyViolation",
"info": {
"policyDefinitionDisplayName": "Allowed resource types",
"policySetDefinitionDisplayName": "sqlserver",
"evaluationDetails": {
"evaluatedExpressions": [
{
"result": "False",
"expressionKind": "Field",
"expression": "type",
"path": "type",
"expressionValue": "Microsoft.DataFactory/factories",
"targetValue": [
"microsoft.resources/resourcegroups",
"microsoft.storage/storageaccounts",
"microsoft.dbforpostgresql/servers",
"microsoft.sql/servers",
"microsoft.sql/servers/databases",
"microsoft.documentdb/databaseaccounts",
"microsoft.sql/servers/elasticpools",
"microsoft.dbformysql/servers",
"microsoft.operationalinsights/workspaces",
"microsoft.operationsmanagement/solutions",
"microsoft.insights/actiongroups",
"microsoft.insights/activitylogalerts",
"microsoft.insights/autoscalesettings",
"microsoft.insights/metricalerts"
],
"operator": "In"
}
]
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c",
"policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/triplecrown1/providers/Microsoft.Authorization/policySetDefinitions/d5a5d5bb-91e0-4a17-9894-25d0f73aa09f",
"policyDefinitionReferenceId": "11619501722087078793",
"policySetDefinitionName": "d5a5d5bb-91e0-4a17-9894-25d0f73aa09f",
"policyDefinitionName": "a08ec900-254a-4555-9bf5-e42af04b5c5c",
"policyDefinitionEffect": "deny",
"policyAssignmentId": "/providers/Microsoft.Management/managementGroups/triplecrown1/providers/Microsoft.Authorization/policyAssignments/4d7e23dc76164960b2c974ac",
"policyAssignmentName": "4d7e23dc76164960b2c974ac",
"policyAssignmentDisplayName": "sqlserver",
"policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/triplecrown1",
"policyAssignmentParameters": {}
}
}
]
}
],
"message": "The template deployment failed because of policy violation. Please see details for more information."
}
question from:
https://stackoverflow.com/questions/65865801/i-am-trying-to-create-azure-data-factory-and-getting-error-requestdisallowedbyp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…