Unable to create any resource on Azure Portal

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”
}

Hi @DEEPAK-JAIN

Please check here the list of services authorized on Azure playground

Thanks @mmkmou ,

But I am trying same services as mentioned on page.
I am trying to create virtual machine and app service . but getting above provided error .
May you please check and help on this ?

Hi @DEEPAK-JAIN,
Please share the basic details of the VM instance so I can try to reproduce it. Something like this: -

It could be failed because of the wrong OS disk type.

Regards,

I tried to create one web app resource, and it was created successfully.
Please choose the F1 or B1 instance types under the “Dev/Test”.

I am attaching a screenshot for your reference.

I re-checked, and it was happening because of the security type. Please choose the security type “Standard”.

Regards,