Managing external identities to enable secure access for partners, customers, and other non-employees
Hello !
Thank you for posting on MS Learn Q&A.
This looks like a device registration or PRT problem not an Azure Files or UK South storage problem yet.
So try to re-register a Microsoft Entra registered device, run dsregcmd /forcerecovery for a Microsoft Entra joined device or dsregcmd /leave for hybrid joined devices.
Since your new VM shows:
- AzureAdJoined : YES
- DeviceAuthStatus : SUCCESS
the current VM device object is valid which means that the device is present and enabled in Microsoft Entra ID.
https://learn.microsoft.com/en-us/entra/identity/devices/troubleshoot-device-dsregcmd
The remaining suspect is the user Windows/Web Account Manager/CloudAP token state. A PRT is issued through Windows CloudAP/WAM components and is device bound and WAM and CloudAP are key Windows components for PRT issuance and use and the PRT as a secure artifact used for SSO.
https://learn.microsoft.com/en-us/entra/identity/devices/concept-primary-refresh-token
Start with the machine where the web-account RDP sign-in is being initiated, not only on the Azure VM, check the user’s Entra registration state:
dsregcmd /status
If that client is Microsoft Entra joined, run:
dsregcmd /forcerecovery
Then sign in again when prompted, sign out, and sign back in. That is the supported recovery path for an Entra joined device whose referenced device object was deleted.
If the client is only Microsoft Entra registered / workplace joined, remove the account from:
Settings > Accounts > Access work or school
Then disconnect the work/school account and register it again. That is the supported path for Entra registered devices.
You need also to check more than just the normal All devices blade and use Microsoft Graph to list devices linked to the user:
GET https://graph.microsoft.com/v1.0/users/{user-id}/registeredDevices
GET https://graph.microsoft.com/v1.0/users/{user-id}/ownedDevices
If an old/deleted/superseded VM registration still appears there, remove the bad device object or recreate the user/device registration cleanly. If it no longer appears anywhere, then the reference is probably not a visible directory object anymore, but stale local token-broker state.
Revoking sign-in sessions is still the right step, but it is not always sufficient by itself. Microsoft Graph revokeSignInSessions invalidates refresh tokens and browser session cookies by resetting the usersignInSessionsValidFromDateTime but there can be a delay before revocation takes effect.
https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0
A password reset can help force fresh authentication but I would not treat it as the authoritative fix for 700003 error.