Unable to download blob using AZ CLI in Pipeline - SAS value getting removed from SAS token

Viewed 541

I'm using az cli task in the pipeline and trying to download zip from Storage blob with SAS token using below command, however during the execution the %2 and %3 getting removed from the token which then fails with an error "invalid token" Any help?

az storage blob download --container-name testcontainer --name new.zip --file C:\Test\new.zip --account-name mansing --sas-token "sv=2019-03-28&si=test-v1.0.0&sr=b&sig=uityesfggjXAxG2tvNs7y88K%2FnKPMsO8iuKPGurEJtS4%3D"

I believe SAS token is encoded already, so I can not encode or use escape char.

1 Answers
Related