web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / pac auth create does n...
Power Apps
Unanswered

pac auth create does not work with UsGovHigh when specifying AppId/ClientSecret/TenantId

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am trying to automate a CI/CD pipeline in Gitlab (after successfully doing this in AzureDevOps and seeing it is possible with Microsoft tooling in Github).  In support of this, I had planned to use the PAC CLI (1.9.4).  When trying the pac auth create command from PowerShell on a workgroup VM, it works when I do not specify anything beyond the URL and fill in a pop-up window with my domain user account, but it does not work when I try to use an AppId/ClientSecret/TenantId.  This same AppId/ClientSecret/TenantId combo works from an Azure DevOps Pipeline also setup in a local workgroup.  The issue might be due to us operating in a GCC High environment, but it is not clear to me.  I cannot use a User/Pwd combo since we enforce MFA.

 

The command I issue is:

 

pac auth create --name CAS-PoC-SB01-Acct --url https://orgXXXX.crm.microsoftdynamics.us --applicationId XXXX --clientSecret XXXX --tenant XXXX --cloud UsGovHigh

 

This results in:

 

Microsoft PowerPlatform CLI
Version: 1.9.4+gbda9f20

Error: AADSTS900382: Confidential Client is not supported in Cross Cloud request.

 

Is this a defect or has anyone else successfully used the AppId/ClientSecret/TenantId flags in a GCC High environment from the PAC CLI?  Are there any suggestions for alternative approaches if this is not supported?  The goal is to be able to re-create the CI/CD pipeline capabilities present in Gitlab/Azure DevOps Pipelines using any generic Pipeline tooling that supports CLI jobs.

I have the same question (0)
  • kierian Profile Picture
    Microsoft Employee on at

    Hello 

    To roll out this issue 

    can you test same scenario with test tenant not GCC

    Partner sign up (microsoft.com)

    Thanks,

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    All, I opened a support ticket with Microsoft on this topic.  I was told that the PAC CLI (1.9.4) does not support this.  There was no timeline available as to when it will be supported.  The team indicated there is no workaround either.

     

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard