I am working on writing a function in python azure automation runbook, where the basic gist of what I'm trying to accomplish is shown in the code below. But, I'm perplexed as when I take the code out of the function and run the code as is it all works as expected. But, when the function is used I see the output for Start & End but I don't see the function getting executed. I'm not clear the piece I miss for this to not work.
Python:
import sys
import requests
print ("Start")
def myFunction():
# do something
print("This is my function doing something")
myFunction()
print ("End")


