important-holiday-25047
09/09/2021, 4:44 PMconst blobSAS = storage.listStorageAccountServiceSAS({
accountName: storageAccountName,
protocols: storage.HttpProtocol.Https,
sharedAccessStartTime: "2021-08-08",//new Date(nowDate.getTime() - 60 * 60000).toISOString(),
sharedAccessExpiryTime: "2021-10-10",//new Date(nowDate.getTime() + 600 * 60000).toISOString(),
resource: storage.SignedResource.C,
resourceGroupName: resourceGroupName,
permissions: storage.Permissions.R + storage.Permissions.W + storage.Permissions.D + storage.Permissions.L + storage.Permissions.A + storage.Permissions.C + storage.Permissions.U,
canonicalizedResource: "/blob/" + storageAccountName + "/" + storageContainerName,
});
return pulumi.interpolate `https://${storageAccountName}.<http://blob.core.windows.net/${storageContainerName}/?${blobSAS.then(x|blob.core.windows.net/${storageContainerName}/?${blobSAS.then(x> => x.serviceSasToken)}`;
I assume it's a problem with the canonicalizedResource, though I am not sure what value could be correct there, as it only allows a value starting with /blob/
When I compare a SAS Token created via azure storage directly and the one i get here I see that the Api Versions are very different:
Azure Version: 2020-08-04
Pulumi Version: 2015-04-05
Also the used keywords seem to differ in these version so much that I can't compare them properly
Thank in advancetall-librarian-49374
09/09/2021, 7:08 PMpulumi.interpolate
for result but not for canonicalizedResource
storageAccountName
and/or storageContainerName
outputs?important-holiday-25047
09/09/2021, 10:06 PM