Windows Azure VM Role - Handling Error : The expiry time is invalid. A parameter was incorrect. Details: The expiry time is invalid

Once
you have VM role enabled with your subscription, you can start working on VM
Role using the step by step guide provided as below:

http://msdn.microsoft.com/en-us/WAZPlatformTrainingCourse_VMRoleLab

After
finished creating your VHD for VMRole, and uploading using CSUPLOAD script, you
may encounter following error:

 

C:\Program Files\Windows Azure SDK\v1.3>csupload add-vmimage -Connection

"SubscriptionID=*********************************************;CertificateThumbprint=********************************************" -LiteralPath C:\Applications\Azure\baseimage.vhd -Name baseimage.vhd

Windows(R) Azure(TM) Upload Tool 1.3.0.0

for Microsoft(R) .NET Framework 3.5

Copyright (c) Microsoft Corporation. All rights reserved.

Using temporary directory C:\Applications\Azure...

Found previously prepared data for VHD C:\Applications\Azure\baseimage.vhd.

Found previously created VM image.

Name : baseimage.vhd

Label : baseimage.vhd

Description : baseimage.vhd

Status : Pending

Uuid : 8fd4e45a-3245-1789-ae34-2gf634a235c2

Timestamp : 2011-01-03T11:12:21Z

MountSizeInBytes : 32212254720

CompressedSizeInBytes : 5517869568

Recovering from an unexpected error: A parameter was incorrect. Details: The expiry time is invalid.

Waiting before continuing with upload...

Waiting before continuing with upload...

Waiting before continuing with upload...

Waiting before continuing with upload...

 

Reason:

It is possible that your machine time clock is not synchronized
correctly. A wrong time on your host machine where CSUPLOAD tool is executing, could
cause this error.

Solution:

To solve this problem, please update your machine clock
time correctly depend on your geographical location and then rerun the CSUPLOAD
tool.