How to fix 
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.



2020-05-04T17:56:01.1809950Z + provider.null v2.1.1
2020-05-04T17:56:01.1810262Z + provider.random v2.2.1
2020-05-04T17:56:01.1810570Z + provider.template v2.1.1
2020-05-04T17:56:01.4777786Z ##[debug]Env:INPUT_ARGUMENTS: 'init -backend=false'
2020-05-04T17:56:01.6332761Z ##[debug]Env:INPUT_PLANPATH (empty)
2020-05-04T17:56:01.6466394Z ##[debug]Entering Invoke-VstsTool.
2020-05-04T17:56:01.6559641Z ##[debug] FileName: 'terraform'
2020-05-04T17:56:01.6574379Z ##[debug] Arguments: 'init -backend=false -input=false -no-color'
2020-05-04T17:56:01.6634488Z ##[command]"terraform" init -backend=false -input=false -no-color
2020-05-04T17:56:02.6636763Z 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.
2020-05-04T17:56:02.6639513Z RequestId:503b803c-901e-0043-6b3d-22b3a1000000
2020-05-04T17:56:02.6642533Z Time:2020-05-04T17:56:02.5578452Z, RequestInitiated=Mon, 04 May 2020 17:56:02 GMT, RequestId=503b803c-901e-0043-6b3d-22b3a1000000, API Version=, QueryParameterName=, QueryParameterValue=
2020-05-04T17:56:02.6783889Z ##[debug]Exit code: 1
2020-05-04T17:56:02.6809885Z ##[debug]Leaving Invoke-VstsTool.
2020-05-04T17:56:02.6875910Z ##[error] Terraform failed to execute. Error: 
2020-05-04T17:56:02.6885328Z ##[debug]Processed: ##vso[task.logissue type=error;] Terraform failed to execute. Error: 
2020-05-04T17:56:02.6948466Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-05-04T17:56:02.6948874Z End of Task Terraform
2020-05-04T17:56:02.6982218Z 
2020-05-04T17:56:02.6982594Z 
2020-05-04T17:56:02.7114964Z ##[section]Finishing: Terraform init -backend=false


Resolution:-

Try to delete local .terraform folder. Your Issue will fix.

Thanks. 

Comments

Popular posts from this blog

How to use Custom Script Extensions for windows using Azure PowerShell - AZ CLI and from Terraform

How to create a Resource group in Azure using Terraform Part -1

Error inspecting states in the "azurerm" backend: storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed