microsoft / microsoft/powerplatform-vscode
[Bug]: PAC CLI Reset or Create Failure: macroRegion 'unitedstates' is not valid
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
Is this bug related to Code Apps?
No
Description
This occurs across multiple environments within the same tenant.
The issue appears to be related to tenants using the new Macro Region Geography provisioning model, where the backend expects a macro-region value rather than the legacy unitedstates region identifier.
pac admin reset --environment https://Example.crm.dynamics.com/
--domain Example --name Example Environment
--purpose This is an example environment configuration.
pac admin create --type 'sandbox'
--domain Example `
--name Example Environment
Error: macroRegion 'unitedstates' is not valid
Extension Version
2.11.2.0
VS Code Version
1.136.1
VS Code Channel
Stable
Steps to Reproduce
- Open Visual Studio Code
- In terminal enter pac admin reset --environment https://Example.crm.dynamics.com/ --domain Example --name Example Environment --purpose This is an example environment configuration.
or pac admin create --type 'sandbox' --domain Example --name Example Environment
Expected Behavior
Environment is reset or created
Actual Behavior
Error: macroRegion 'unitedstates' is not valid
Additional Context
This is new in the last week or two.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the pac admin reset and pac admin create commands described in the issue. Trace how these commands determine the macro-region for tenants using the new Macro Region Geography provisioning model. Done means both operations succeed for affected tenants without the macroRegion 'unitedstates' is not valid error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100