Another good day to you!
This time I want to talk about an error we will see more and more if the move towards cloud will keep going as steady as it is now.
Azure has options called Automation scripts. These can be used to execute scripts over the Azure platform (within the customers confinements) to different end.
Examples of these are scripts that automatically shut down or start up VM's at specific times.
If you make use of these Automation scripts however, you will notice (mostly after a year) that they might suddenly just stop working.
When looking in the job however you will find an error trying to call out an account with the message that the key and/or thumbprint are expired.
(All upcoming images will have some white squares due to me having to white out certain numbers/names)
If you have only just started using Azure, this might come as a strange and unknown error because you coded every correctly right?
Yes, you probably did. However, all Automation scripts require an Automation account to run.
But you created an Automation account and you can find that under the "All resources" (recognizable by the fact that in the "type" column it shows as Automation account) right?
Yes, you probably also did that. However, for the account to work it requires a certificate and sadly that certificate has a lifecycle of 1 year and does not automatically refresh.
So when you click on the Automation account there is a good chance you might find this error. Click on the error to continue.
This is where you will see the certificates that the Automation-account uses. There is a good chance that one of them is expired.
Luckily it is a very easy fix, all that needs to happen is a single press on the renew button.
After a few seconds it will tell you the certificate has been renewed and the date will have moved away 1 year from the renewal.
Once this has happened, all your Automation scripts will be able to do whatever they were doing again.
Hoping this will save some people from trying to have a useful support call with Microsoft.
Categories: Azure, Automation, Troubleshooting
Patrick Berger AKA Powershellder.
[ i ] Parallax section below. Click on the section below to upload image. Don't worry if it looks weird in the Weebly editor. It'll look normal on your published site.
To edit or delete your image, press the "toggle" button below. Then, hover over your image until a popup appears with the "edit" and "delete" options. If you don't want a white content section, leave it blank. It will disappear on your live website.