Skip to content

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

Description

@craig-lund-pex

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions