azure-storage-rest-postman icon indicating copy to clipboard operation
azure-storage-rest-postman copied to clipboard

Construct CanonicalizedResource needs a pm.variable.replaceIn() to apply replaceIn to parameterized container

Open watmough opened this issue 1 year ago • 0 comments

If you use a parameterized resource, such as {{azure_container}} in the URL, then this must be populated. See the change to line 57 below, to add pm.variables.replaceIn() when building the account/container header line. Failure to make this change means that authentication fails,

// Construct CanonicalizedResource
const canonicalResourceParts = [
    `/${pm.variables.get("azure_storage_account")}${pm.variables.replaceIn(pm.request.url.getPath())}`

Thanks for this super helpful piece of code!

watmough avatar Feb 12 '24 05:02 watmough