Hello All, how we can use python in azure to build or automate things ? Replies appreciated.

Saurabh Dhande 21 Reputation points
2021-02-26T14:25:19.963+00:00

Hello All,
Started learning Python and I want to know how can I use Python to build automate Azure infra, basically IAAS services.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,440 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,178 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vaibhav Chaudhari 38,671 Reputation points
    2021-02-26T14:53:24.09+00:00

    You can write python code in runbook and schedule them in Azure automation service. This way, you can automate some processes such as turn off the VM during weekend and turn on Monday morning.

    Be aware that, for automation work, PowerShell is more preferred language. But python is good too to learn.

    See below document and also refer index page on the left to see various scenarios for automation

    https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-python2

    ----------

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. amon 121 Reputation points Microsoft Employee
    2021-02-26T14:47:32.553+00:00

    Hi @Saurabh Dhande

    For running your code server less, your options are Azure automation or Azure functions
    If your trying to define the infrastructure of your account I would take a closer look at: Azure Blueprints, Azure policies and ARM templates

    0 comments No comments