From the error message you've encountered while trying to create an Azure Static Web App, it appears that the deployment is being blocked by an Azure Policy that restricts where resources can be created. Specifically, the policy named "Allowed locations for resource groups" is denying the request because the region you’re trying to use (centralus) is not on the allowed list for your subscription. Your organization has defined a policy to enforce resource creation only in certain regions, likely for compliance, data residency, or governance reasons.
According to the error allowed regions are: centralindia, southindia, westindia, eastus, and global and your attempted region: centralus – which is not allowed. As a result, Azure is blocking the creation of the resource, in this case, the Static Web App.
To resolve the issue:
Update your deployment to use one of the allowed locations mentioned in the policy:
-  centralindia
-  southindia
-  westindia
-  eastus
-  global(for globally distributed services like Azure CDN or DNS)
When creating the Static Web App, make sure you specify the location as one of the above in your deployment template or CLI command.
If you have a valid reason to deploy the resource in a different location (e.g., centralus), you can reach out to your Azure subscription or policy administrator. Request a policy exemption or an update to the policy to include centralus as an allowed region. This is typically done by someone with Owner or Policy Contributor permissions at the subscription level.
Kindly refer to the below documentation for better understanding:  
Azure Policy: Deny resource creation based on location  
Azure Static Web Apps – Overview and region availability  
Manage policy assignments in Azure
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.