title: Azure KeyVault Secret near expiry list to email as a notification
body: <p>I'm try to send List of secrets that are expired and about to expired to email ID .
  But i cant able to see Secrets that are near about to expire.
  is anybody help how to get near about to expiry secrets of azure keyVault?</p>
  
  <p>i'm using below code :</p>
  
  <pre><code>    if ($secret.Expires) {
          $secretExpiration = Get-date $secret.Expires -Format yyyyMMdd
          if ($ExpirationDate -gt $secretExpiration) {
              if ($CurrentDate -lt $secretExpiration) {
                  $NearExpirationSecrets += New-Object PSObject -Property @{
                      Name           = $secret.Name;
                      Category       = 'SecretNearExpiration';
                      KeyVaultName   = $KeyVault.VaultName;
                      ExpirationDate = $secret.Expires;
                  }
              }
  </code></pre>