Azure / Azure/azure-quickstart-templates

\"InvalidContentLink\",\r\n \"message\": \"Unable to download deployment content from 'https://catalogartifact.azureedge.net/publicartifacts/cisco.cisco-csr-tvnet-autoscaler-preview-50f5a9e3-23cc-4f8a-b4b6-6f94b2fe183d-test-autoscaler/Autoscaler/autoscaler.json'

Open
#6,894 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

I am trying to deploy a solution using ARM templates. Recently updated the base URL to Artifactlocation and artifactsastoken but it fails saying "Unable to download deployment content from 'https://catalogartifact.azureedge.net/publicartifacts/cisco.cisco-csr-tvnet-autoscaler-preview-50f5a9e3-23cc-4f8a-b4b6-6f94b2fe183d-test-autoscaler/Autoscaler/autoscaler.json"

maintemplate.json snippet
"_artifactsLocation": {
"type": "string",
"metadata": {
"artifactsBaseUrl": "",
"description": "URL to acquire other templates"
},
"defaultValue": "[deployment().properties.templateLink.uri]"
},
"_artifactsLocationSasToken": {
"type": "securestring",
"metadata": {
"description": "The sasToken required to access _artifactsLocation."
},
"defaultValue": ""

variable definition:
"autoscalerUri": "[uri(parameters('_artifactsLocation'), concat('Autoscaler/autoscaler.json', parameters('_artifactsLocationSasToken')))]",

"type": "Microsoft.Resources/deployments",
"apiVersion": "2019-05-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('autoscalerUri')]",
"contentVersion": "1.0.0.0"
},

**Deployment Error:**
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"InvalidContentLink\",\r\n \"message\": \"Unable to download deployment content from 'https://catalogartifact.azureedge.net/publicartifacts/cisco.cisco-csr-tvnet-autoscaler-preview-50f5a9e3-23cc-4f8a-b4b6-6f94b2fe183d-test-autoscaler/Autoscaler/autoscaler.json'. The tracking Id is 'b17d67cb-d368-4be6-a416-b103e389036e'. Please see https://aka.ms/arm-deploy for usage details.\"\r\n }\r\n}"}]}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the maintemplate.json snippets, especially _artifactsLocation, _artifactsLocationSasToken, autoscalerUri, and the nested deployment's templateLink. Verify how the artifact URL and SAS token are assembled, then confirm that an ARM deployment can download Autoscaler/autoscaler.json successfully without the InvalidContentLink error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.