{"title":"Use Microsoft Entra authentication for Business Central on-premises installations","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-aad-auth-onprem/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-aad-auth-onprem, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-aad-auth-onprem","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Using Microsoft Entra ID as authentication on on-premises installations and containers for Business Central for debugging and other purposes","date":"2024-01-03","meta":{"topic":"article"},"outline":[{"level":1,"title":"Use Microsoft Entra authentication for Business Central on-premises installations","slug":"use-microsoft-entra-authentication-for-business-central-on-premises-installations","at":0,"chars":1720},{"level":2,"title":"Related information","slug":"related-information","at":1435,"chars":285}],"text":"# Use Microsoft Entra authentication for Business Central on-premises installations\nIn addition to using Windows and NavUserPassword authentication, you can use Microsoft Entra ID to authenticate and publish in on-premises installations and containers from Visual Studio Code. Using Microsoft Entra ID makes it possible to mimic application lifecycle operations in an on-premises environment, while keeping the cloud-based Microsoft Entra authentication.\nTo enable Microsoft Entra authentication, make sure to do as follows:\n Use the primaryTenantDomain setting in the launch.json file to specify the URL of the Microsoft Entra organization or company associated with the Microsoft Entra tenant. Learn more in, see Find tenant ID, domain name, user object ID<https://learn.microsoft.com/partner-center/find-ids-and-domain-names> and devenv-json-files.\n On the NST, you must ensure that the server is set up to use Microsoft Entra ID as authentication mechanism. See User Authentication with Microsoft Entra ID for Single Sign-on<../administration/authenticating-users-with-azure-active-directory>.\n If the `Allowed Extension Target Level` setting is set to Cloud, set the server setting ForceExtensionAllowedTargetLevel to true. If the `Allowed Extension Target Level` setting is set to OnPrem, you don't need to set ForceExtensionAllowedTargetLevel. See Configure Business Central Server<../administration/configure-server-instance>.\n## Related information\ndevenv-json-files\nUser Authentication with Microsoft Entra ID for Single Sign-on<../administration/authenticating-users-with-azure-active-directory>\nFind tenant ID, domain name, user object ID<https://learn.microsoft.com/partner-center/find-ids-and-domain-names>"}