Resource 'spFoundry' was disallowed by Azure: This policy maintains a set of best available regions where your subscription can deploy resources. The objective of this policy is to ensure that your subscription has full access to Azure services with optim

Mohit 0 Reputation points
2025-12-02T07:14:50.7333333+00:00

{
"code": "InvalidTemplateDeployment",
"details": [
{
"code": "RequestDisallowedByAzure",
"target": "spFoundry",
"message": "Resource 'spFoundry' was disallowed by Azure: This policy maintains a set of best available regions where your subscription can deploy resources. The …multiple errors. Please see details for more information."
}

I tried so many regions all returned this.
I am on azure student plan.
There is no policy assignments.
I cant see any allowed region in activity log
Also in activity log i can see cab provisioning of policyAssignments/sys.regionrestriction but cant see in assignments.
What should i do?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.