DEV Community

Cover image for InvalidContentLink error in ARM deployments
Frans
Frans

Posted on

InvalidContentLink error in ARM deployments

What am I talking about? Well, if you’re using ARM deployments for your Azure resources, you might or will have encountered this unexpected error:

##[error]InvalidContentLink: Unable to download deployment content from 'https://xxxxx.blob.core.windows.net/xxx/xxx/xxxx.template.jsonsv=2023-08-03&se=2024-08-05T16%3A02%3A23Z&sr=c&sp=rwdl&sig=***Sanitized Azure Storage Account Shared Access Signature***'
Enter fullscreen mode Exit fullscreen mode

Why is this happening to me? It was working fine last week!

Well, let’s zoom in on that error:

xxxx.template.jsonsv=2023-08-03&se=2024-08-05T16%3A02%3A23
Enter fullscreen mode Exit fullscreen mode

Did you notice that there no ‘?’ after the json filename anymore?

Microsoft has decided, in their wisdom, that they no longer return a SAS key with a ‘?’ prefix. So you will need to modify all your templates to insert this important character! Yikes.

It’s not hard to do this, but if you have many templates containing these links, it could take some time. You could do a global replace action in your preferred editor, or go through them line by line.

Cheerio!

Top comments (0)