Forum Topic

Thanks for your participation and contribution.


Back to Azure

Azure CLI

Post a reply
128 views
i90runner1
i90runner1

Application Gateway Check SSL Expiration date

$publiccert=`az network application-gateway ssl-cert show -g MyResourceGroup --gateway-name MyAppGateway --name mywebsite.com --query publicCertData -o tsv`|echo -e "-----BEGIN CERTIFICATE-----\n$publiccert\n-----END CERTIFICATE-----" | fold -w 64 | openssl pkcs7 -print_certs | openssl x509 -noout -enddate

Purge Front Door cache

for frontdoors in frontdoor1   frontdoor2 frontdoor3 
do 
echo "Purging frontdoor cache for " $frontdoors 
echo "------------------------------------------------------------ "
echo "                                                              "
echo 'az network  --content-paths "/*"  --name '$frontdoors  '--resource-group  your-resource-group' 
done 

Last updated

1-1 of 1

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.