Azure App Gateway 502- Bad Gateway Error for all websites in IIS - Authentication and Authorization failed in IIS

Raghava Sai Akula 406 Reputation points
2023-01-03T03:23:36.883+00:00

Hi ,

I am migrating my applications to AZURE

I am using a id(test@keyman .com) in IIS to authenticate and authorize my application , it was working fine until last week ,But suddenly now authentication and authorization failed for all applications
Error:
The trust relationship between this workstation and the primary domain failed. (Exception from HRESULT: 0x800706FD

I am using Azure File share(My physical location of code in the UNC path)

275532-image.png

Below is the file permissions screenshot of my folder(Physical path) in Azure File share ,Here my Ids are shown with a different name starting with S-1-5-21-42....... as shown below. I think its forgetting the Ids
275505-image.png

Note :

I am using Azure Active Directory and my VMs are domain joined

I added respective IDs and permissions in the for respective folder of physical path and also C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files folder and made sure to UNCHECK Include inheritable permissions from this object's parent.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
Windows development | Internet Information Services
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. JimmySalian-2011 44,721 Reputation points
    2023-01-03T07:17:09.583+00:00

    Hi,

    It seems you are losing connection to the Azure ADDS , can you check if you can resolve the Domain Name, Ping, Nslookup the domain name. Check the event logs and also DNS resolution should be working without any issues. Check the Network ports between the DC and the VM, NSG rules, Local firewall.

    I suspect a DNS issue but validate via the logs and connectivity tests, try to remove the server from the domain and rejoin the ADDS.

    Hope this helps.
    JS

    ==
    Please Accept the answer if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.