automation accounts: Invalid interpreter executable path

Pranay 291 Reputation points
2021-05-28T18:44:21.487+00:00

HI,

I am using Hybrid worker in Automation Accounts python 3 runbook. Although the powershell command works, but the python3 runbook doesn't.

It's a known issue, which is also mentioned in the documentation: https://learn.microsoft.com/en-us/azure/automation/automation-runbook-types

Does anyone have a workaround?

Thank you

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,175 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,416 Reputation points
    2021-06-01T08:14:12.413+00:00

    Hi @Pranay ,

    Please find the below update:

    This known issue is only applicable to Cloud jobs. Hybrid jobs should work without any issues.

    If you might not have set the correct environment variables then please do it and try out.

    1. Create a new environmental variable called PYTHON_3_PATH and specify the installation folder. For example, if the installation folder is C:\Python3, then this path needs to be added to the variable.
    2. Do not forget to restart the machine/hybrid worker after setting the environment variable.