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 / Power Platform Export ...
Power Apps
Answered

Power Platform Export Solution failing with anonymous access

(0) ShareShare
ReportReport
Posted on by 19

Hello, trying to connect via Azure Devops to migrate an application from one environment to another.

 

On authentication type, I have "Service Principal/Client Secret (supports MFS)" 

The from the Service connection list, I select the first environment connection (previously created with the Server URL, Tenant ID, Application ID, Client secret of Application ID).

 

This tasks runs after Power Platform Tool Installer  (completes successful). But the export task fails with

 

##[error]Failed to connect to instance: <MY URL HERE>. Please verify your credentials for *** and instance url.
Invalid Login Information : The HTTP request was forbidden with client authentication scheme 'Anonymous'.
The HTTP request was forbidden with client authentication scheme 'Anonymous'. => The remote server returned an error: (403) Forbidden.
Unable to Login to Dynamics CRM

 

Am I missing some configuration? Why is it using anonymous ??

Thanks!

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    If you're using a Service principal, make sure that you have given the App Registration the correct permissions within Azure Active Directory (portal.azure.com). Additionally, make sure the server url is the Power platforms url (org.crm.dynamics.com), and theTenant ID refers to the Azure tenant ID -  not the power platform environment instance.

     

    We were able to successfully set this up last week after some troubleshooting

  • diegochb Profile Picture
    19 on at

    Thanks @Anonymous ! 

    Yes, its the ....dynamics.com url, and the tenant id was created with the powershell script provided by MS.

    I will check the permissions on the azure portal, thanks a lot!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @diegochb The application user associated with the application ID also needs a D365 security role that would allow it to export.

  • Verified answer
    diegochb Profile Picture
    19 on at

    Thanks! Yes, apparently I was missing creating a user application with the same application ID previously created.

    Then assigning the system admin role, all withing the <env>.crm.dynamics.com url under security settings.

     

    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 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard