Azure AD Domain Service and File Share

%3CLINGO-SUB%20id%3D%22lingo-sub-1385115%22%20slang%3D%22en-US%22%3EAzure%20AD%20Domain%20Service%20and%20File%20Share%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1385115%22%20slang%3D%22en-US%22%3E%3CP%3EI%20created%20a%20Azure%20File%20Share%20and%20Azure%20Domain%20Service.%20Created%20a%20VM%20and%20made%20the%20VM%20as%20a%20member%20of%20the%20Domain%20service%20created.%20I%20am%20able%20to%20map%20the%20file%20share%20to%20Network%20drive.%20Also%20able%20to%20access%20through%20Windows%20Explorer.%20But%20When%20I%20tried%20to%20access%20the%20File%20Share%20from%20a%20Windows%20service%20in%20our%20application%2C%20it%20is%20not%20accessible%20and%20access%20denied%20error%20is%20thrown.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help%20on%20this%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1385115%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1385825%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Domain%20Service%20and%20File%20Share%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1385825%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665795%22%20target%3D%22_blank%22%3E%40Nithiya27%3C%2FA%3E%26nbsp%3BI'm%20sure%20you%20would%20have%20review%20the%20deployment%20at%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Ffiles%2Fstorage-files-identity-auth-active-directory-domain-service-enable%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Ffiles%2Fstorage-files-identity-auth-active-directory-domain-service-enable%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20the%20windows%20service%20running%20using%20a%20service%20account%20%3F%20and%20that%20service%20account%20is%20hosted%20on%20AADS%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I created a Azure File Share and Azure Domain Service. Created a VM and made the VM as a member of the Domain service created. I am able to map the file share to Network drive. Also able to access through Windows Explorer. But When I tried to access the File Share from a Windows service in our application, it is not accessible and access denied error is thrown.

 

Please help on this 

1 Reply

@Nithiya27 I'm sure you would have review the deployment at: https://docs.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-active-directory-do...

 

Is the windows service running using a service account ? and that service account is hosted on AADS ?