AZ-900 Microsoft Azure Fundamentals 2020

Sign Up Free or Log In to participate!

Error -Creating storage for cloud shell

I got the following error when I was creating a storage for the cloud shell 

 error {"error":{"code":"RequestDisallowedByPolicy","target":"marianstoragetest","message":"Resource ‘marianstoragetest’ was disallowed by policy. Policy identifiers: ‘[{"policyAssignment":{"name":"Allowed locations","id":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyAssignments/47f9111a3dc447249295c3e2"},"policyDefinition":{"name":"Allowed locations","id":"/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c"}},{"policyAssignment":{"name":"Allowed locations – Exclude IoTCentral","id":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyAssignments/c2fa07b5891b4e31baff87a9"},"policyDefinition":{"name":"Allowed locations – Exclude IoTCentral","id":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyDefinitions/ad14bdb6-1405-40f3-8e13-96b56d70251e"}}]’.","additionalInfo":[{"type":"PolicyViolation","info":{"policyDefinitionDisplayName":"Allowed locations","evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"location","path":"location","expressionValue":"southeastasia","targetValue":["canadaeast","centralindia","centralus","eastasia","eastus","eastus2","germanynorth","germanywestcentral","global","japanwest","koreacentral","koreasouth","northcentralus","southcentralus","southindia","westcentralus","westindia","westus","westus2"],"operator":"NotIn"},{"result":"True","expressionKind":"Field","expression":"location","path":"location","expressionValue":"southeastasia","targetValue":"global","operator":"NotEquals"},{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts","targetValue":"Microsoft.AzureActiveDirectory/b2cDirectories","operator":"NotEquals"}]},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c","policyDefinitionName":"e56962a6-4747-49cd-b67b-bf8b01975c4c","policyDefinitionEffect":"deny","policyAssignmentId":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyAssignments/47f9111a3dc447249295c3e2","policyAssignmentName":"47f9111a3dc447249295c3e2","policyAssignmentDisplayName":"Allowed locations","policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs"}},{"type":"PolicyViolation","info":{"policyDefinitionDisplayName":"Allowed locations – Exclude IoTCentral","evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"location","path":"location","expressionValue":"southeastasia","targetValue":["canadaeast","centralindia","centralus","eastasia","eastus","eastus2","germanynorth","germanywestcentral","global","japanwest","koreacentral","koreasouth","northcentralus","southcentralus","southindia","westcentralus","westindia","westus","westus2"],"operator":"NotIn"},{"result":"True","expressionKind":"Field","expression":"location","path":"location","expressionValue":"southeastasia","targetValue":"global","operator":"NotEquals"},{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts","targetValue":"Microsoft.AzureActiveDirectory/b2cDirectories","operator":"NotEquals"},{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts","targetValue":"Microsoft.IoTCentral/IoTApps","operator":"NotEquals"}]},"policyDefinitionId":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyDefinitions/ad14bdb6-1405-40f3-8e13-96b56d70251e","policyDefinitionName":"ad14bdb6-1405-40f3-8e13-96b56d70251e","policyDefinitionEffect":"deny","policyAssignmentId":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs/providers/Microsoft.Authorization/policyAssignments/c2fa07b5891b4e31baff87a9","policyAssignmentName":"c2fa07b5891b4e31baff87a9","policyAssignmentDisplayName":"Allowed locations – Exclude IoTCentral","policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/Vader-Gen2-Labs"}}]}}

1 Answers

Hi,

I got the same error. For me the problem seemed to be a wrong region setting. The dialog was suggesting West Europe, which didn’t work. I was able to create the storage account after changing the region to East US.

Hope that helps.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?