Update: I used Azure Automation per BenV\'s suggestion below and it worked! More info can be found here.
I have a PowerShell script that need
Azure PowerShell is not currently supported from the sandbox in which WebJobs runs. There are a variety of factors:
Factor #2 is the biggest blocker. We'd like to get to a point where this is possible, but right now it is tricky.
One potential workaround is to do ARM requests directly, though that's a bit more work (and you still need to auth using Service Principal). You could also write C# code to make the calls.