Search code examples
azureazure-devopsazure-blob-storage

Copy ARM template from REPO to BLOB task fails "unable to download content"


Problem

Azure Dev Ops (visualstudio.com) release fails due to "Copy ARM template from REPO to BLOB" task fails after working for many years.

Release Task that fails

enter image description here

Error

"unable to download deployment contents from https://blob.core.windows/net"

enter image description here

The tasks seems to be stripping the '?' when accessing the blob container, and now doesn't need the added '/' before the blob name.


Solution

  • Solution

    Removal seems to have done the trick. For some reason '?' in the path is now being stripped when accessing the blob container, and now doesn't need the added '/' before the blob name.

    From

    $(LinkedTemplateUri)/APIAppServicePlan.json$(ContainerSasToken)

    To

    $(LinkedTemplateUri)APIAppServicePlan.json?$(ContainerSasToken)

    Got 100s of release definitions to update unfortunately.

    Hope that helps someone.