[Bug] Power App Code App doesn't run in China 21V cloud even with the toggle enabled

Open
#463 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
typescript

Research direction

Start with the PAC Code CLI authentication and push flow, then reproduce the issue in the China (21V) cloud with the Code App toggle enabled. Trace why authentication uses the global route and why push is rejected; done means authentication completes through the China cloud and pushing succeeds.

Written by the indexing model from the issue text.

Description

bug

Describe the bug

The Code App for cloud China (21V) can only go through the authentication process, while upon push, it prompted "operation not allowed in the environment", even with the Code App toggle enabled in the admin center (see screenshots).
Also, I suspect PAC doesn't fully supported cloud-China, the default routing always go to the global auth with .cn account not found - discard the window would also result in auth failure even with profile correctly connected.
Adding --cloud China after pac code push doesn't work - argument passed.
This is probably a systematic neglect from the PA & PAC development.

Steps to Reproduce

Expected behavior

able to push with pa and pac code cli in China cloud environment

Actual behavior

Screenshots or Error Messages

Image Image Image

Environment information

Code App Cloud China

Additional context

Dominant language
TypeScript
Stars
504
Forks
145
Avg merge
4h 3m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

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.

More from microsoft/PowerAppsCodeApps

All issues in microsoft/PowerAppsCodeApps

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.