Close Menu
Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    Facebook X (Twitter) Instagram
    Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    • Home
    • Intune
    • Windows
      • Modern Workplace
    • macOS
    • Android
    • iOS
    • Automation
      • Logic Apps
      • Intune Monitoring
      • GitHub
    • Security
      • Passwordless
      • Security
    • Speaking
    • About me
    Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    Home»Microsoft365»Azure AD Connect setup error
    Microsoft365

    Azure AD Connect setup error

    Peter KlapwijkBy Peter KlapwijkJanuary 4, 2024Updated:January 4, 20243 Mins Read

    I was configuring a Microsoft 365 lab environment to write this blog post recently. As I needed some hybrid user identities, I needed to configure good old Azure AD Connect. When I entered all the needed information in the configuration wizard, I already saw that it took a very long time to set up the AAD Connect configuration and eventually I received an error:
    Unable to create the synchronization service account for Azure Active Directory. Retrying this operation may help resolve the issue.

    The log file, that is found in C:\ProgramData\AADConnect, showed a repeated error;

    GetServiceAccount: service account authorization failed for Sync_xx@xx.onmicrosoft.com. Waiting for account to be provisioned. Details: AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access ‘00000002-0000-0000-c000-000000000000’.

    00000002-0000-0000-c000-000000000000 looks like an ID of an Azure Enterprise application or Azure App registration to me. I guess this account is hitting one of my Conditional Access policies.

    To verify this, we need to check the Azure portal. Browse to Enterprise applications and set the application type filter to All applications (because currently, the app type is unknown). Enter a part or the whole ID we found in the Application ID starts with filter.
    And indeed, we see this is the ID of an application in Azure, Windows Azure Active Directory.

    So, we need to make sure this application is excluded from the CA policy that is hit, or the sync account is excluded from the policy that requires Multi-factor Authentication (MFA).

    In my case, I have simply targeted a CA policy to all users and all cloud apps, that is hit.

    I’m unable to exclude the app Windows Azure Active Directory (At least via the Azure portal, I didn’t check MS Graph). So I excluded the Directory Role Directory Synchronization Accounts from which the sync account is part.

    After configuring this exclusion, the Azure AD Connect configuration was successful.

    For my lab tenant, this solution was fine, so I could move on with my setup. In a production environment, you need to make proper decisions on how to exclude the sync account from your CA MFA policy.
    Another note is that the above-seen error is not particularly related to the Windows Azure Active Directory app, but the error can also be seen as related to other apps that are protected by a CA policy that requires MFA.

    Thanks for reading, I hope it saved you some time for troubleshooting,

    Azure AD Identity Management Security Windows
    Share. Facebook Twitter LinkedIn Email WhatsApp
    Peter Klapwijk
    • Website
    • X (Twitter)
    • LinkedIn

    Peter is a Security (Intune) MVP since 2020 and is working as Modern Workplace Engineer at Wortell in The Netherlands. He has more than 15 years of experience in IT, with a strong focus on Microsoft technologies like Microsoft Intune, Windows, and (low-code) automation.

    Related Posts

    Automatically inform your users on outdated Windows devices

    May 8, 2024

    Use Azure Key Vault to secure your Graph API connection in Power Automate

    February 14, 2021

    Conditional Access in the new Azure portal

    December 22, 2016
    Add A Comment
    Leave A Reply Cancel Reply

    Peter Klapwijk

    Hi! Welcome to my blog post.
    I hope you enjoy reading my articles.

    Hit the About Me button to get in contact with me or leave a comment.

    Awards
    Sponsor
    Latest Posts

    Hide the “Turn on an ad privacy feature” pop-up in Chrome with Microsoft Intune

    April 19, 2025

    How to set Google as default search provider with Microsoft Intune

    April 18, 2025

    Using Windows Autopilot device preparation with Windows 365 Frontline shared cloud PCs

    April 13, 2025

    Using Visual Studio with Microsoft Endpoint Privilege Management, some notes

    April 8, 2025
    follow me
    • Twitter 4.8K
    • LinkedIn 6.1K
    • YouTube
    Tags
    Administrative Templates Android Automation Autopilot Azure Azure AD Browser Conditional Access Edge EMS Exchange Online Feitian FIDO2 Flow Google Chrome Graph Graph API Identity Management Intune Intune Monitoring iOS KIOSK Logic Apps macOS MEM MEMMonitoring Microsoft 365 Microsoft Edge Microsoft Endpoint Manager Modern Workplace Office 365 OneDrive for Business Outlook Passwordless PowerApps Power Automate Security SharePoint Online Teams Windows Windows 10 Windows10 Windows 11 Windows Autopilot Windows Update
    Copy right

    This information is provided “AS IS” with no warranties, confers no rights and is not supported by the authors, or In The Cloud 24-7.

     

    Copyright © 2025 by In The Cloud 24-7/ Peter Klapwijk. All rights reserved, No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

    Shorthand; Don’t pass off my work as yours, it’s not nice.

    Recent Comments
    • Peter Klapwijk on Using Windows Autopilot device preparation with Windows 365 Frontline shared cloud PCs
    • John M on Using Windows Autopilot device preparation with Windows 365 Frontline shared cloud PCs
    • Christoffer Jakobsen on Connect to Azure file shares with Microsoft Entra Private Access
    • Ludo on How to block Bluetooth file transfer with Microsoft Intune
    • RCharles on Automatically configure the time zone (during Autopilot enrollment)
    most popular

    Application installation issues; Download pending

    October 1, 2024

    Restrict which users can logon into a Windows 10 device with Microsoft Intune

    April 11, 2020

    How to change the Windows 11 language with Intune

    November 11, 2022

    Update Microsoft Edge during Windows Autopilot enrollments

    July 9, 2024
    Peter Klapwijk – In The Cloud 24-7
    X (Twitter) LinkedIn YouTube RSS
    © 2025 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.

    Manage Cookie Consent
    To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
    View preferences
    {title} {title} {title}