Skip to content

Instantly share code, notes, and snippets.

View gist:705b293bcc80c4b450cca12c5bb60db9
$TenantID = "123456abc-123abc-123abc-123abc-123456abc"
$SpokeSubscription = "123456abc-123abc-123abc-123abc-123456abc"
Connect-AzAccount -TenantId $TenantID -Subscription $SpokeSubscription
$rgName="rg-name"
$appgwName="appgw-name"
$gw=Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgName
Foreach ($listeners IN $gw.HttpListeners)
{
View gist:98eb0c43e8205b88c10ffb25c3f994c6
annotations = {
"kubernetes.io/ingress.class" = "azure/application-gateway"
"appgw.ingress.kubernetes.io/appgw-ssl-certificate" = "cert-name"
}
View gist:c83608ff180b77fab1a3f12ba4b34370
lifecycle {
ignore_changes = [frontend_port,backend_address_pool,backend_http_settings,http_listener,request_routing_rule,probe,tags]
}