title: Azure Powershell Cmdlets and Certificate Expiry
body: <p>I am writing an Azure Deployment tool in Powershell using the PowerShell CmdLets that are provided from Microsoft.</p>
  
  <p>In order to use the Azure Management CmdLets you must first associate a certificate to your subscription - typically by using the Get-AzurePublishSettingsFile command to download a pre-baked file from Azure.</p>
  
  <p>This certificate has an expiry date - what happens after the expiry date?
  I <strong>assume</strong> the CmdLets will stop working until the Certificate is refreshed.</p>
  
  <p>My question is:</p>
  
  <p><em>How</em> will the CmdLets respond when the certificate as expired?
  <em>How</em> will I be able to detect this in my Powershell script?</p>
  
  <p>I'm finding this hard to test.</p>
  
  <p>Many Thanks</p>