Run a Python Runbook on a Linux virtual machine during Azure Recovery Site failover
Hello everyone,
I'm currently trying Azure Site Recovery to replicate a VMware virtual machine into Azure.
I've done the test failover successfully but now I'm trying to execute a Python script onto my replicate VM during the failover phase.
I tried to use the Recovery Plans feature so i created an Automation account, i created a Runbook with Python-3.8 as Runtime environment. After that, I went to customize my Recovery plan to add a Failover post-action configured to run my Runbook as below:
When i start a Test failover, my Recovery Job looks as below:
and the error i get from Post Steps:
I thought the script where only executed on my replicate Linux VM so i don't understand why he is searching for python library on a windows environment.
How can i execute my Python script on my replicate VM during/after a failover?