46,355 questions
Yes, this is possible.
When you create the script, you will need to run it locally and test then confirm if it is working. So you can isolate the issue, then you can troubleshoot Azure. Do u have any specific errors wehn connecting to Azure??
See: https://learn.microsoft.com/en-us/azure/developer/python/get-started?source=recommendations