Automating Architecture in Azure - amitbhilagude/userfullinks GitHub Wiki
Azure Automation Service
Service to automate the Tasks, and Processes in Azure and On-Prem.
It is supported by Cross cloud(Azure, AWS, etc.), Cross Environment(Azure, On-Prem, Hybrid), Cross Platform(Windows, Linux), Cross Language(Powershell, Python, Bash)
Step to create this service is to create an Automation account first. It is a top-level resource. Account should be closer to or same region as other Azure resources. This account will be as classic(This type will use ASM APIs) or Run as(This type will use ARM APIs)
Azure Automation service can be used to update the IaaS activity e.g. VM patches
Azure Automation Runbook
Host the scripts like Powershell can schedule it.
It can have parent-child relationships
Assets
Shared artifacts can be used across Runbook
Credential and Certificates
Keep the credentials and Certificates to be used by Runbook for integrating with another service
Connections
Used to create a connection with another service e.g. Any other Azure resource will have a connection created using a Service Principal
Webhooks
Can be triggered based on HTTP endpoint.
you can also trigger a runbook using Webhook by configuring it in certain alert conditions.
Desired State Configuration(DSC)
Script can be hosted here which will pull by cloud or on-prem. The server will have The DSC needs a local agent, also known as a local configuration manager (LCM).
Pricing
There is no cost for Azure Automation if no runbooks are executed on it. The cost of
Azure Automation is charged per minute for execution of runbook jobs. This means
that if the total number of runbook execution minutes is 10,000, the cost of Azure
Automation would be $0.002 per minute multiplied by 9,500, as the first 500 minutes
are free.
There are other costs involved in Azure Automation depending on features consumed.
For example, a DSC pull server does not cost anything within Azure Automation; neither
does onboarding Azure VMs on to the pull server. However, if non-Azure servers are
onboarded, typically from other clouds or on-premises, then the first five servers are
free and anything on top of that costs $6 per server per month in the West US region