Skip to content

Instantly share code, notes, and snippets.

View garfoot's full-sized avatar

Rob Garfoot garfoot

View GitHub Profile
@garfoot
garfoot / Renew-AzureRmSslCerts.ps1
Created June 7, 2017 11:33
Powershell script to renew all web apps' SSL certs that match the given domain
param(
[string] $Domain,
[string] $CertFile,
[string] $CertPassword
)
# This could all be done with a single PS line but it wasn't pretty!
$ProgressPreference = "SilentlyContinue"
Write-Host Downloading web app details -ForegroundColor Green
$apps = Get-AzureRMWebApp