Skip to content

Files

Latest commit

b23e27f · Mar 28, 2022

History

History
45 lines (28 loc) · 2.01 KB

troubleshoot-error-404.md

File metadata and controls

45 lines (28 loc) · 2.01 KB
title titleSuffix description ms.service author ms.author ms.topic ms.date
Troubleshoot failed service request: Error 404 (Sub-Domain not found)
Azure Digital Twins
Learn how to diagnose and resolve error 404 (Sub-Domain not found) status responses from Azure Digital Twins.
digital-twins
baanders
baanders
troubleshooting
02/22/2022

Troubleshoot failed service request: Error 404 (Sub-Domain not found)

This article describes causes and resolution steps for receiving a 404 error from service requests to Azure Digital Twins.

Symptoms

This error may occur when accessing an Azure Digital Twins instance using a service principal or user account that belongs to a different Azure Active Directory (Azure AD) tenant from the instance. The correct roles seem to be assigned to the identity, but API requests fail with an error status of 404 Sub-Domain not found.

Causes

Cause #1

Azure Digital Twins requires that all authenticating users belong to the same Azure AD tenant as the Azure Digital Twins instance.

[!INCLUDE digital-twins-tenant-limitation]

Solutions

Solution #1

You can resolve this issue by having each federated identity from another tenant request a token from the Azure Digital Twins instance's "home" tenant.

[!INCLUDE digital-twins-tenant-solution-1]

Solution #2

If you're using the DefaultAzureCredential class in your code and you continue encountering this issue after getting a token, you can specify the home tenant in the DefaultAzureCredential options to clarify the tenant even when authentication defaults down to another type.

[!INCLUDE digital-twins-tenant-solution-2]

Next steps

Read more about security and permissions on Azure Digital Twins: