Intellipaat Back

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

I was trying to create a fileshare in Azure using Azure CLI but it is throwing an error:

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

ErrorCode: AuthenticationFailed AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:42b399c2-701a-006f-4630-1d9aad000000 Time:2020-04-28T07:39:27.0899771ZThe MAC signature found in the HTTP request 'QVn0bi79ZIhaO+LS3w/VzaiI5cAMfJiVRav6RbgfbtA=' is not the same as any computed signature. Server used following string to sign: 'PUT'

Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

To rectify this error, firstly you need to retrieve the key with a right format, and to do that use this command:

$key1 = az storage account keys list --account-name storeactjan --query "[0].value" | tr -d '"'

After that, create your file share.

az storage share create --account-name storeactjan --name filesharejan --account-key $key1

I hope this will helps.

Want to become an Azure expert? Join Azure certification now!!

Want to know more about Azure storage? Watch this tutorial on What is Azure Storage and Storage security:

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...