Hello @Benoy Mammen Mathew
Unfortunately you cannot start RDP session to your Windows VM using Logic Apps.
You can connect to Windows VM using Logic App + Powershell + WinRM
https://learn.microsoft.com/en-us/powershell/module/microsoft.wsman.management/connect-wsman?view=powershell-7.3
https://stackoverflow.com/questions/53414671/azure-logic-apps-how-to-run-powershell-script-or-azure-cli
I believe that you only need to run Python script on Windows VM starup.
You can achieve it multiple ways:
- Using Windows Service https://stackoverflow.com/questions/32404/how-do-you-run-a-python-script-as-a-service-in-windows
- Using Windows TaskScheduler https://stackoverflow.com/questions/44727232/scheduling-a-py-file-on-task-scheduler-in-windows-10