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.windo…


This content originally appeared on DEV Community and was authored by Frans

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***'

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

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!


This content originally appeared on DEV Community and was authored by Frans


Print Share Comment Cite Upload Translate Updates
APA

Frans | Sciencx (2024-10-20T15:19:08+00:00) InvalidContentLink error in ARM deployments. Retrieved from https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/

MLA
" » InvalidContentLink error in ARM deployments." Frans | Sciencx - Sunday October 20, 2024, https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/
HARVARD
Frans | Sciencx Sunday October 20, 2024 » InvalidContentLink error in ARM deployments., viewed ,<https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/>
VANCOUVER
Frans | Sciencx - » InvalidContentLink error in ARM deployments. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/
CHICAGO
" » InvalidContentLink error in ARM deployments." Frans | Sciencx - Accessed . https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/
IEEE
" » InvalidContentLink error in ARM deployments." Frans | Sciencx [Online]. Available: https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/. [Accessed: ]
rf:citation
» InvalidContentLink error in ARM deployments | Frans | Sciencx | https://www.scien.cx/2024/10/20/invalidcontentlink-error-in-arm-deployments/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.