How can use Entra Domain Services and Intune

Greg Bonk 86 Reputation points
2024-01-08T21:56:11.0733333+00:00

I want to be able to automatically mount an Azure Storage Account file share over SMB. This is with windows 10 images that I'm building.

The way I know how to do it is to use a Domain Service, which I'm attempting with Entra Domain Services.

My Storage account is connected to for File shares has Microsoft Entra Domain Services enabled.

I am also Domain Joining my VM ( to Microsoft Entra Domain Services as well ) when I create it.

This combination works great. I Remote Desktop in, and the mappings for the azure file shares can connect automatically without any interaction by me.

BUT..... I am also trying to use Microsoft Intune so I can apply the multi app Kiosk mode. To use intune, I have to have my devices register in Microsoft Entra ID, which means I can't connect to use the Entra Domain Services.

If I register my VMs with Entra Domain Services, then Intune can not see my devices because they are not AAD Joined.

I'm hoping to get the best of both worlds here. The Entra Domain Services authentication integration AND device registration and using Intune to apply the multi-app Kiosk mode.

I've been looking at 'Device Writeback' options like "Entra Sync' and 'cloud sync' but they seem to have limited ability or be primarily for on premise active directory.

My Preference is how do I AUTOMATICALLY register a domain joined VM into Entra ID?

Alternatively, can I have a powershell script run in the background when a user logs in to an Entra ID (AAD) joined device and be able to auto mount the remote shares WITHOUT any user interaction?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2024-01-09T03:39:59.24+00:00

    @Greg Bonk, Thanks for posting in Q&A. From your description, it seems you want to enroll Windows 10 virtual machine into Intune. In General, Intune supports managing virtual machines running Windows 10 Enterprise with certain limitations. For example, it is not recommended to use Intune to manage on-demand, session-host virtual machines and etc. Here are some links for your reference.

    https://learn.microsoft.com/en-us/mem/intune/fundamentals/windows-10-virtual-machines

    https://learn.microsoft.com/en-us/mem/intune/fundamentals/azure-virtual-desktop

    You can check if your virtual machine belongs to the above situations.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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