Skip to content
No results
  • Home
  • Tech
    • Cloud Services
    • Phones
    • Software
    • Gov & Updates
  • OS
    • Windows
    • Mac
    • Linux
  • FinTech
    • Banks & Cards
    • Insurance
  • MS Tips
    • BI Tools
    • DBA
    • Windows Server
    • Azure
  • Courses
    • MySQL
Kingfisher Tech Tips
  • Home
  • Tech
    • Cloud Services
    • Phones
    • Software
    • Gov & Updates
  • OS
    • Windows
    • Mac
    • Linux
  • FinTech
    • Banks & Cards
    • Insurance
  • MS Tips
    • BI Tools
    • DBA
    • Windows Server
    • Azure
  • Courses
    • MySQL
Kingfisher Tech Tips
Home MS Tips Login With AAD: Securely Login to Azure VMs and RDP with AAD, Domain, or Microsoft Account Integration

Login With AAD: Securely Login to Azure VMs and RDP with AAD, Domain, or Microsoft Account Integration

  • Vickey RajpootVickey Rajpoot
  • June 28, 2023
Login With AAD

Login With AAD: In this article we will see how we will join out company or work account to an azure VM’s. Remember to follow all the steps clearly and carefully because it is a bit tricky. Now this is not permanent fix for the issue, but in this article, we will show how to manage you Domain account into your Azure VM’s or RDP.

Steps to login with AAD?

We will split this into 2 steps as show below:

  1. After logging into VM with default account, we will create one local admin account.
  2. We will setup our domain/AD account to sign in to VM’s

Step 1: Now, in my case if you can see below, I have RDP file downloaded, and this will be my main point to connect with VM. If you have any other tools/applications such as Modern RDP and Remote Desktop, then also you can follow the same steps.

Login With AAD

Note: If you’re using it for Microsoft internal workspace, then you will be aware that we can’t create any user/set password for the VM’s. So there is problem logging with Microsoft account with the default created username and password.

Step 2: Open this RDP and connect it with default created user-id and password, as mentioned in the step 1 that we can’t change the default user-id and password. So first we will create one new user with known username and password.

Login With AAD

Step 3: After logging to my Azure VM, you can see that my default account is working now.”

Login With AAD

Step 4: Now we will create one new admin local user, so that we can connect independently without the default username and password (SQLRepro).


I have one more article where I have guided how can we create “Local User Account” to login to VM’s, Follow the below article and create local user account first then proceed to step 5.

—>>>https://kingfishertechtips.in/create-local-user-account-local-admin-user/


Step 5: Once created the account will look like this. Now “vickey” is my new local admin account. Now we will log in with this “vickey” account.

Login With AAD

Note: Please use the pcname\usercreated (WIN11\vickey) as user name while connecting to RDP. If you’re not sure then you can open cmd and type “whoami” and see the pcname.

Step 6: If you could see below, I am using my newly created user and logging into VM.

Login With AAD
Note: For more about accout creation and login visit this site: https://support.microsoft.com/en-us/windows/create-a-user-account-in-windows-4fac6fd5-74c0-9737-69b8-6e77e00422dc

Step 7: After logging in we can see that, I have logged into this Azure VM using my newly created user-id and password.

Login With AAD

Step 8: we are good to use our Domain/Microsoft account to sign-in to this VM. In the Settings App, choose Accounts ->> Access work or school (NOT Email & accounts) and click on connect.

Login With AAD

Step 9: Choose “Add a Work or School Account” in your Azure VM and proceed further.

Login With AAD

Note: First click on “Join the device to Azure Active Directory” and then enter your Microsoft credentials

Step 10:  Authenticate with Microsoft Authenticator app. Once complete you will be presented with a confirmation screen. Click Join and final confirmation screen will be presented.

Login With AAD

Step 11: Please give 10 minutes of time so that all Azure AD policies to be applied and software installed in the background. Meanwhile you can check status by clicking on the account. Note: This is not mandatory step, if you still see the local admin user account even after joining it to AAD then you can go to step 12, because if you wait for 10 or 20 minutes this will not show that your account is connected in this VM.

Login With AAD

Step 12: This is mandatory step to do if not your AAD account will not function properly.

Login With AAD

Step 13: Once you “sign-out“, RDP will get disconnected and then again, we will login with our AAD/Domain/Microsoft account to sign-in.

Login With AAD

Step 14: Once logged into the VM, just go to accounts and you can see that my VM is connect to AAD and showing the domain name as well.

Login With AAD

Caution: Please don’t reset your VM password or try to do any other manipulation on the AAD Joined VM, otherwise it will malfunction.

Remember this is not permanent fixes, as time passes new updates and security features takes place. So, it might not function after some time, so we have to look for some other workaround.

SQL Bi Links:

  1. Could Not Load Folder Contents In Portal URLs – SSRSPBIRS (kingfishertechtips.in)
  2. Capture Fiddler Trace for Debugging the Network Traffic (kingfishertechtips.in)
  3. On-Premises Gateway: Configure/Map SQL DB To Power Bi (kingfishertechtips.in)
  4. Fixed Column/Row Header Make Visible In Any Report (kingfishertechtips.in)
  5. Self-Signed Certificate: Configure SSRS/PBIRS With SSL (kingfishertechtips.in)
  6. Run As Different User Option Not Showing, Enable In Windows (kingfishertechtips.in)
  7. Create Local User Account/Local Admin User In Windows 10/11 (kingfishertechtips.in)
Vickey Rajpoot

Vickey Rajpoot

Hello there! I'm dedicated Microsoft Data & AI Engineer at LTIMindtree, where I thrive technology into actionable insights. Dive into my world by visiting my YouTube channel & Website, "Kingfisher Tech Tips"

Azure Analysis Services
Previous Post Unlocking the Power of AAS: A Comprehensive Guide to Servers, Gateways, Projects, and SSMS
Next Post Get Started with SQL Server 2022: Download, Installation, and Seamless Connection with SSMS Tool
sql server install

Leave a ReplyCancel Reply

Your email address will not be published. Required fields are marked *

Latest Posts!

  • Calculation Items Errors Out In Analysis Services | Out Of Memory Error
  • Add Node To Analysis Services Failover (FCI-2)
  • Configure Analysis Services Failover Cluster (FCI-1)
  • Reporting Services License Change/Update In Easy!
  • OnePlus 13T/13 Mini | Best Phone In 2025!

Categories!

  • Courses (1)
  • FinTech (33)
  • MS Tips (78)
  • OS (4)
  • Tech (28)
  • Home
  • About
  • Contact
  • Privacy Policy

Copyright © 2023-2025 Kingfisher Tech Tips