repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
azure-services-runbook.mdMarkdown96 lines3.7 KiBsource raw download

title: "Azure Services - Runbook and Automation" section: "Cloud" sectionSlug: "cloud" sourcePath: "docs/cloud/azure/azure-services-runbook.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/cloud/azure/azure-services-runbook.md" sha: "203bb0c0b290" isIndex: false#

Azure Services - Runbook and Automation#

Runbook#

Runbook must be SAVED and PUBLISHED before running it.

List the Runbooks#

Get-AzAutomationAccount | Get-AzAutomationRunbook

Create a Runbook#

Automation Account#

List Automation Accounts#

Azure Automation provides a way to automate the repetitive tasks you perform in your Azure environment.

Get-AzAutomationAccount

Get Automation Credentials#

Get-AzAutomationAccount | Get-AzAutomationCredential
Get-AzAutomationAccount | Get-AzAutomationConnection
Get-AzAutomationAccount | Get-AzAutomationCertificate
Get-AzAutomationAccount | Get-AzAutomationVariable

Persistence via Automation Accounts#

Desired State Configuration#

List the DSC#

Get-AzAutomationAccount | Get-AzAutomationDscConfiguration

Export the configuration#

$DSCName = ${dscToExport}
Get-AzAutomationAccount | Get-AzAutomationDscConfiguration | where {$_.name -match $DSCName} | Export-AzAutomationDscConfiguration -OutputFolder (get-location) -Debug

References#