/AzureAutomation-PythonExamples

Python example runbooks for Azure automation

Primary LanguagePythonMIT LicenseMIT

AzureAutomation-PythonExamples

Python example runbooks for Azure Automation

To report an issue or request an example please open an issue.

Built-in Azure SDK

The Azure Python2 SDK is build into Azure Automation. To use any of the Azure module simply import them from your runbooks like so :

from azure.common.credentials import UserPassCredentials
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.storage import StorageManagementClient
from azure.storage import CloudStorageAccount
from azure.storage.blob.models import ContentSettings, PublicAccess
...

Reference : Azure Python SDK Documentation

Runbook examples

Automation assets

Automation runbook parameter

RunAs (Azure service principal)

Reference