Skip to main content

ENTRA052 - Entra Named Location Not Found

Agent error code #ENTRA052 indicates that Microsoft Graph returned HTTP 404 for the configured Named Location ID. The Knocknoc backend points at a Named Location that no longer exists in the tenant.

Common causes include:

  • The Named Location was deleted in the Azure portal
  • The wrong ID was copied into the Knocknoc backend configuration when the Knoc was set up
  • The Knoc was migrated from a different tenant and the old ID was retained
  • The Knocknoc app registration is scoped to a different tenant than the one holding the Named Location

Steps to Resolve

Locate the Correct Named Location

  1. In the Azure portal, navigate to Microsoft Entra ID > Security > Conditional Access > Named locations
  2. Open the Named Location intended for use with Knocknoc
  3. Copy the GUID from the browser URL (the segment after /named/)
  4. Paste it into the Named Location ID field of the Knocknoc backend configuration

For the full setup, see the Microsoft Entra ID setup guide.

Confirm the Tenant Matches

  1. In the same portal blade, verify the Directory ID (tenant) is the same as the Tenant ID configured on the Knocknoc backend
  2. If the tenants differ, either point the Knoc at the right tenant or recreate the app registration in the correct tenant

Create a New Named Location

If the original Named Location was deliberately deleted:

  1. In Named locations, click + IP ranges location
  2. Tick Mark as trusted location if the Conditional Access policy depends on the trusted-location flag
  3. Add at least one sentinel range (e.g. 192.0.2.0/32) so the create succeeds. Knocknoc replaces this list on the next grant
  4. Save and copy the new ID into the Knocknoc backend configuration

Still Having Issues?

We can help you out, contact us at support@knocknoc.io.