Looking into the error details it looks like there is some policy that is not allowing you to perform the operation on the resource in a location that is not in the list of allowed locations. I wish to engage with you offline for a closer look and provide quick and specialized assistance, please send an email with the subject line “Attn:Mayank” to AzCommunity[at]Microsoft[dot]com referencing this thread along with the subscription ID and correlation ID of the failed operation.
Cannot update environment variables in azure function app

Thanzeel Jalaldeen
1
Reputation point
i have an azure function app where i used to update and edit the environment variables.
today i tried to update the variables and i get an error.
Updating web app settings
11:57 AM
Failed to update web app settings: Resource 'cfszippfunc-staging' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Allowed locations","id":"/subscriptions/---c5e7fe/providers/Microsoft.Authorization/policyAssignments/a1753b083773160f7a3935de9"},"policyDefinition":{"name":"Allowed locations","id":"/providers/Microsoft.Authorization/policyDefinitions/--"}}]'.