microsoft / microsoft/powerplatform-vscode

[Bug]: PAC CLI Reset or Create Failure: macroRegion 'unitedstates' is not valid

Open
#1,678 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
  1. Open Visual Studio Code
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.