Jayasri, I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.
Issue: Customer unable to access the Azure storage account and facing authentication failure issues.
Error Message:
"Authentication Failed
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature".
Solution: After modifying the string-to-sign format as below, the issue got mitigated.
const stringToSign = accountName + "\n" +
permissions + "\n" +
'bf' + "\n" +
'sco' + "\n" +
startTimeIsoString + "\n" +
expiryTimeIsoString + "\n" +
'' + "\n" + //signedIP
'https' + "\n" +
'2022-11-02' + "\n" +
'' + "\n"; //signedEncryptionScope