How would we go about being notified that storage account replication is failing or has excessive delays? I see that it's possible to query the date time stamp via powershell, but how do we translate that into an emailed alert?
$lastSyncTime = $(Get-AzStorageAccount -ResourceGroupName <resource-group> -Name <storage-account>
-IncludeGeoReplicationStats).GeoReplicationStats.LastSyncTime
https://docs.microsoft.com/en-us/azure/storage/common/last-sync-time-get?tabs=azure-powershell