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
- In the Azure portal, navigate to Microsoft Entra ID > Security > Conditional Access > Named locations
- Open the Named Location intended for use with Knocknoc
- Copy the GUID from the browser URL (the segment after
/named/) - 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
- In the same portal blade, verify the Directory ID (tenant) is the same as the Tenant ID configured on the Knocknoc backend
- 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:
- In Named locations, click + IP ranges location
- Tick Mark as trusted location if the Conditional Access policy depends on the trusted-location flag
- 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 - 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.