Hi VATIKA SAXENA,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
I understand that you want to connect the vm with local domain after s2s VPN connection
1.Join the Domain:
- Log into the Azure VM using an account with local administrator privileges.
- Open the System Properties:
- Right-click on ‘This PC’ on the desktop or in File Explorer and select 'Properties'.
- Click on 'Advanced system settings', then go to the 'Computer Name' tab.
- Click 'Change' to join the domain.
- Enter the domain name and provide credentials for a domain account with permissions to join computers to the domain.
2.Verify Domain Join:
- After the VM restarts, log in using domain credentials to verify that the machine is correctly joined to the domain.
- I hope it helps.
If you have any further queries, do let us know.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.