Skip to content

Instantly share code, notes, and snippets.

@mikedizzle
mikedizzle / Backup-AzureAPIM.ps1
Last active May 9, 2019 21:36 — forked from andreasbotsikas/Backup-AzureAPIM.ps1
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.