Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

PowerApps BuildTools: Export Solution - MFA Problem

(1) ShareShare
ReportReport
Posted on by

Hey guys, 

 

we had a security update, which forces us to us MFA on all of our accounts. Since then our build pipeline for D365 CRM Solutions isn't working anymore. 

 

##[error]Failed to connect to instance: [...] Please verify your credentials for *** and instance url.
ERROR REQUESTING Token FROM THE Authentication context
ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000007-0000-0000-c000-000000000000'.
 
Any advise on how to solve this MFA Problem?
  • MarcosGarcia Profile Picture
    7 on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    This issue is related to a sign-in considered "Risky", changing the account security status accordingly. (Check on Azure AD > Monitoring > Sign-in logs)
    Probably caused by an unsuccessful login attempt, denied MFA, or a login from an unauthorized device. Doing this lets you build your project but it won't be a good long-term fix.

    Solution:
    Go to Azure > (search) Azure Active Directory > Properties (left pane) > Manage Security Defaults on the bottom > Turn to "No".

    MarcosGarcia_0-1661735064718.png

     

  • manishsg Profile Picture
    37 on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    Hi 

     

    Facing similar issue for the Export Solution. Is there a way to setup similar to the PowerChecker Solution task (Service Principal and Service Principal Key) in Azure AD for the Service Connection ?

     

    Thanks

    Manish

  • Community Power Platform Member Profile Picture
    on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    @Anonymous see if you can use app-passwords for your MFA account as mentioned here.

     

    https://support.office.com/en-us/article/Create-an-app-password-for-Office-365-3e7c860f-bda4-4441-a618-b53953ee1183

  • VijayD Profile Picture
    on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    Hi Kris,

     

    Is support for MFA planned in PowerApps Build Tools?

     

    Thank you,

    Vijay

  • v-xida-msft Profile Picture
    on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    Hi @Anonymous ,

    Based on the error message that you mentioned, it seems to tell that your O365 Administrator has made some changes to your account or your account has been moved a different location.

     

    I agree with @Menik1 's thought almost. Please check if you have enabled MFA Authentication option for your account, if ture, please consider disable the MFA Authentication or ask your Administrator to bypass the MFA server for your account.

     

    Best regards,

  • Mathias_BL Profile Picture
    20 on at
    Re: PowerApps BuildTools: Export Solution - MFA Problem

    If you use a personal user to authenticate, you can generate an app password and use this to authenticate.

    If you use a service user, you should ask your O365 admin to enable bypass MFA for this service user.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard