Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (13.1k points)

I have created a backend file for terraform in Azure Storage and suddenly it stopped working, I tried to recycled my passwords but nothing happens. It throws an error :

terraform init

Initializing the backend...

Successfully configured the backend "azurerm"! Terraform will automatically use this backend unless the backend configuration changes.

Error refreshing state: storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:665e0067-b01e-007a-6084-97da67000000

Time:2018-12-19T10:18:18.7148241Z, RequestInitiated=Wed, 19 Dec 2018 10:18:18 GMT, RequestId=665e0067-b01e-007a-6084-97da67000000, API Version=, QueryParameterName=, QueryParameterValue=

Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

So basically, this will happens because your WSL lost their time sync, you need to provide an appropriate time in WSL using :

sudo hwclock -s

and then, you need to restart the WSL.

This will solve the issue.

I hope this will help.

Want to become an Azure expert? join azure architect training now!!

Browse Categories