How to fix Server failed to authenticate the request on DevContainer with Azure Functions

Tsuyoshi Ushio
1 min readMay 5, 2020

--

I use DevContainer for developing Java Functions. However, when I start the Azure Functions I encounter this error.

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

I just create the storage account, so it should not be an expire. When I research on the internet, I found there is several reason for it.

In my case, I found the timestamp of the docker container looks wrong.

time stamp problem

If you use Docker for Windows, it could happen when your PC sleeps.

The solution is, stop the sleep. If not, just restart the DockerVM. I restrat the Docker for Windows, then the problem has gone. I found this post. They also restart the Docker VM.

Happy DevContainer life!

--

--