Skip to content

Instantly share code, notes, and snippets.

@andreasbotsikas
andreasbotsikas / Backup-AzureAPIM.ps1
Last active May 10, 2019 14:01
Azure API Management backup automation
<#
.SYNOPSIS
This Azure Automation runbook automates Azure API Management backup to Blob storage and deletes old backups from blob storage.
.DESCRIPTION
You should use this Runbook if you want manage Azure API Management backups in Blob storage.
This is a PowerShell runbook, as opposed to a PowerShell Workflow runbook.
It requires AzureRM.ApiManagement module to be installed.
The script uses the AzureRunAsConnection connection to login and perform the backup.