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, cannot resolve aa...
Power Apps
Answered

pac, cannot resolve aad/oauth authority

(1) ShareShare
ReportReport
Posted on by 167

Just learning how to create PCFs. I'm following the tutorial here: Exercise - Use the Power Apps CLI - Learn | Microsoft Docs

I tried to use pac auth create and got the following error:

 

PS C:\mycode> pac auth create --name Lab --url https://xxxxx.xxxxx.xxxxx.crm3.dynamics.com/  -un me@example.com  -p password123
Microsoft PowerPlatform CLI
Version: 1.14.2+g7205df7

Error: Cannot resolve AAD/OAuth authority for https://xxxxx.xxxxx.xxxxx.crm3.dynamics.com/api/data/v9

 

My tenant likely has all sorts of security that I'm not aware of. Is there an obvious solution to the above issue? If not, what questions do I need to ask my sysadmin?

 

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @JenniferK , 

     

    Try to specify only the "--name" and "--url" parameters

    pac auth create -n Lab -u "https:xxxx...."

    You will get a signIn dialog, where you can provide the needed informations.

    Maybe it will work better that way.

  • JenniferK Profile Picture
    167 on at

    Sadly, leaving out the username and password gives the same error.

  • cchannon Profile Picture
    4,702 Moderator on at

    Are you sure you have the URL right? Have you tried just opening that same URL in a browser?

  • JenniferK Profile Picture
    167 on at

    url is correct in browser.

  • JenniferK Profile Picture
    167 on at

    My sysadmin has done a few tests. The issue does not appear to be firewall-related. We're thinking that it might be related to multifactor authentication.

  • cchannon Profile Picture
    4,702 Moderator on at

    Do you maybe have conditional access policies that limit access to AD (or to the app) based on "Approved Apps" or "App Protection Policies"?

    Conditional Access - Require approved app or app protection policy - Azure Active Directory - Microsoft Entra | Microsoft Docs

  • cchannon Profile Picture
    4,702 Moderator on at

    @JenniferK did this issue get sorted out? What was the resolution? Please update so folks who find this post in future searches can see how it was resolved!

  • Verified answer
    JenniferK Profile Picture
    167 on at

    It did get sorted. The application had to be white-listed for the proxy server. I don't know if this will apply to any other situations because network set-up and security where I'm at is very specific. But at least it's something to check.

  • Timo-T Profile Picture
    2 on at

    Hi @JenniferK,

    I have the same issue. What exactly do you mean by "The application". The azure application or the power platform.

     

    Best and many thanks

     

    Timo

  • MM-22101446-0 Profile Picture
    2 on at
    Hello All,
     
    Did anyone solve this issue?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard