Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
watmough opened this issue Feb 12, 2024 · 0 comments

Comments

@watmough
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant