Hi Team,
May you please check, I am unable to create any resource in azure portal.
Getting below error :
{
“deploymentStatusCode”: -1,
“stage”: 6,
“expected”: true,
“error”: {
“code”: “InvalidTemplateDeployment”,
“details”: [
{
“code”: “RequestDisallowedByPolicy”,
“target”: “ASP-ODLazure943735-8b23”,
“message”: “Resource ‘ASP-ODLazure943735-8b23’ was disallowed by policy. Policy identifiers: ‘[{"policyAssignment":{"name":"azure8922-943735-PolicyDefinition-ODL-azure-943735","id":"/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735/providers/Microsoft.Authorization/policyAssignments/azure8922-943735-PolicyDefinition-ODL-azure-943735"},"policyDefinition":{"name":"azure8922-943735-PolicyDefinition","id":"/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azure8922-943735-PolicyDefinition"}}]’.”,
“additionalInfo”: [
{
“type”: “PolicyViolation”,
“info”: {
“evaluationDetails”: {
“evaluatedExpressions”: [
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/virtualMachines”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/sshPublicKeys”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/virtualMachineScaleSets”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/disks”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Storage”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/networkInterfaces”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/networkSecurityGroups”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/publicIPAddresses”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/virtualNetworks”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.DocumentDB/databaseAccounts”,
“operator”: “Like”
},
{
“result”: “True”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Web/serverfarms”,
“operator”: “Equals”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.name”,
“path”: “sku.name”,
“expressionValue”: “Y1”,
“targetValue”: [
“B1”,
“WS1”,
“F1”,
“B2”,
“B3”,
“D1”
],
“operator”: “In”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku”,
“path”: “sku”,
“expressionValue”: “",
“targetValue”: [
“WorkflowStandard”
],
“operator”: “In”
}
]
},
“policyDefinitionId”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azure8922-943735-PolicyDefinition”,
“policyDefinitionName”: “azure8922-943735-PolicyDefinition”,
“policyDefinitionDisplayName”: “azure8922-943735-PolicyDefinition”,
“policyDefinitionEffect”: “deny”,
“policyAssignmentId”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735/providers/Microsoft.Authorization/policyAssignments/azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentName”: “azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentDisplayName”: “azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentScope”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735”,
“policyAssignmentParameters”: {},
“policyExemptionIds”: []
}
}
]
}
],
“message”: “The template deployment failed because of policy violation. Please see details for more information.”
},
“subscriptionId”: “b2aec48f-6dad-4d57-ad25-dad521fe74a4”,
“resourceGroupName”: “ODL-azure-943735”,
“location”: “eastus”,
“deploymentName”: “Microsoft.Web-FunctionApp-Portal-5a4c3798-b9db”,
“details”: {
“code”: “InvalidTemplateDeployment”,
“message”: “The template deployment failed because of policy violation. Please see details for more information.”,
“details”: [
{
“code”: “RequestDisallowedByPolicy”,
“target”: “ASP-ODLazure943735-8b23”,
“message”: “Resource ‘ASP-ODLazure943735-8b23’ was disallowed by policy. Policy identifiers: ‘[{"policyAssignment":{"name":"azure8922-943735-PolicyDefinition-ODL-azure-943735","id":"/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735/providers/Microsoft.Authorization/policyAssignments/azure8922-943735-PolicyDefinition-ODL-azure-943735"},"policyDefinition":{"name":"azure8922-943735-PolicyDefinition","id":"/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azure8922-943735-PolicyDefinition"}}]’.”,
“additionalInfo”: [
{
“type”: “PolicyViolation”,
“info”: {
“evaluationDetails”: {
“evaluatedExpressions”: [
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/virtualMachines”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/sshPublicKeys”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/virtualMachineScaleSets”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Compute/disks”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Storage”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/networkInterfaces”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/networkSecurityGroups”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/publicIPAddresses”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Network/virtualNetworks”,
“operator”: “Like”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.DocumentDB/databaseAccounts”,
“operator”: “Like”
},
{
“result”: “True”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Web/serverfarms”,
“operator”: “Equals”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.name”,
“path”: “sku.name”,
“expressionValue”: “Y1”,
“targetValue”: [
“B1”,
“WS1”,
“F1”,
“B2”,
“B3”,
“D1”
],
“operator”: “In”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku”,
“path”: “sku”,
“expressionValue”: "”,
“targetValue”: [
“WorkflowStandard”
],
“operator”: “In”
}
]
},
“policyDefinitionId”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azure8922-943735-PolicyDefinition”,
“policyDefinitionName”: “azure8922-943735-PolicyDefinition”,
“policyDefinitionDisplayName”: “azure8922-943735-PolicyDefinition”,
“policyDefinitionEffect”: “deny”,
“policyAssignmentId”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735/providers/Microsoft.Authorization/policyAssignments/azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentName”: “azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentDisplayName”: “azure8922-943735-PolicyDefinition-ODL-azure-943735”,
“policyAssignmentScope”: “/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-943735”,
“policyAssignmentParameters”: {},
“policyExemptionIds”: []
}
}
]
}
]
},
“notificationTimestamp”: “2023-05-12T10:28:34.812Z”
}