简体   繁体   中英

Azure Powershell Cmdlets and Certificate Expiry

I am writing an Azure Deployment tool in Powershell using the PowerShell CmdLets that are provided from Microsoft.

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.

This certificate has an expiry date - what happens after the expiry date? I assume the CmdLets will stop working until the Certificate is refreshed.

My question is:

How will the CmdLets respond when the certificate as expired? How will I be able to detect this in my Powershell script?

I'm finding this hard to test.

Many Thanks

Based on the documentation here: http://msdn.microsoft.com/en-us/library/windowsazure/ee460782 , Service Management API does not check for certificate expiry. From this site itself:

The Service Management API does not verify that a certificate is still valid. Authentication will succeed against an expired certificate.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM