Skip to content

Instantly share code, notes, and snippets.

@cf-rdegregory
cf-rdegregory / Update-AzAppServiceContainerImageVersion.ps1
Created April 22, 2024 20:40
Force an Azure App Service Web App for Containers to pull the latest manifest of a given container image tag.
<#
.SYNOPSIS
Force Azure App Service to pull the latest manifest of a given container image tag.
.EXAMPLE
PS> Update-AzAppServiceContainerImageVersion.ps1 -WebhookURL 'https://$<App Service name>:<password>@<App Service name>.scm.azurewebsites.net/api/registry/webhook'
.NOTES
https://learn.microsoft.com/en-us/azure/app-service/deploy-ci-cd-custom-container
#>
[CmdletBinding()]
param (