Open sahuroshan opened 1 week ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
@sahuroshan thank you for reporting this issue! We will take a look as soon as we can.
I tried to investigate from service side log for the request.
The error happened on a GET
request which seems to try to download the template. Azure storage service received request with SAS token look like: sv=2023-08-03&se=2024-10-15T10%253A06%253A18Z
, which seems was encoded twice. The correct SAS token should look like sv=2023-08-03&se=2024-10-15T10%3A06%3A18Z
.
Could you have a try with remove the invoking of encodeURIComponent
in code line 22?
Hi @sahuroshan. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Describe the bug Hi , I am trying to deploy an ARM template stored in storage account by generating a URL . I am following this guide to generate URL - https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-azure-button#template-stored-in-azure-storage-account
But I am facing intermitent issues while deploying the template . Sometimes it works but sometimes it fails. We have tested it on multilple machines .We receive the following error.
If we open the URL in above screenshot , in a browser . we see this error - RestError: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
AuthenticationFailed
To Reproduce Steps to reproduce the behavior:
Expected behavior The upload template should work each time.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Sharing the code for reference - We see this intermitent issue in line number 18 and line 22
https://${accountName}.blob.core.windows.net/${containerName}/${blobName}?${sasToken}
;${opener} ${deployToAzureUrl}
); }