azuredevopslabs
azuredevopslabs copied to clipboard
Validation failed: API Deprecated
{"code":"InvalidContentLink","message":"Unable to download deployment content from 'https://gallery.azure.com/artifact/20161101/Microsoft.CustomScriptExtension-arm.2.0.50/Artifacts/MainTemplate.json'. The tracking Id is 'aecd1ab5-a90a-46f1-9ab3-e0e6de95ec16'. Please see https://aka.ms/arm-deploy for usage details."}
Hi @m05tr0-DevOps ,
Could you please provide more details about the issue like in which lab you faced this issue, step details etc?
Thanks
Selenium template is a good example of this, hit this today.
master/labs/vstsextend/selenium/armtemplate/azuredeploy.json
Appears related to the custom script extension: https://gallery.azure.com/artifact/20161101/Microsoft.CustomScriptExtension-arm.2.0.50/Artifacts/MainTemplate.json
Which is deprecated.
Just to tack on a little more information....
Step 2 of the lab ask the user to deploy the following template to Azure
https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FMicrosoft%2Falmvm%2Fmaster%2Flabs%2Fvstsextend%2Fselenium%2Farmtemplate%2Fazuredeploy.json
which is the azure template found in this repository ... https://github.com/microsoft/azuredevopslabs/blob/master/labs/vstsextend/selenium/armtemplate/azuredeploy.json
Line 81 has the following uri https://gallery.azure.com/artifact/20161101/Microsoft.CustomScriptExtension-arm.2.0.50/Artifacts/MainTemplate.json
Which will report a 410 - Gone with the following message "This API is deprecated. Please contact [email protected] for more details."
If a mirror can be found for that file and line 81 replaced, things should be back to normal.
Hi all,
We have updated the template. Please let me know if still issue exists.
Thanks
Others labs have the same issue due to gallery depreciation. Another example is https://github.com/MicrosoftLearning/AZ400-DesigningandImplementingMicrosoftDevOpsSolutions/blob/master/Instructions/Labs/AZ400_M14_Deploying_apps_with_Chef_on_Azure.md Lab is using gallery to get chef automate.... Any workaround/Fixes??