azuredevopslabs icon indicating copy to clipboard operation
azuredevopslabs copied to clipboard

Validation failed: API Deprecated

Open mdf-ido opened this issue 4 years ago • 5 comments

{"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."}

mdf-ido avatar Feb 25 '21 21:02 mdf-ido

Hi @m05tr0-DevOps ,

Could you please provide more details about the issue like in which lab you faced this issue, step details etc?

Thanks

sriramdasbalaji avatar Mar 01 '21 06:03 sriramdasbalaji

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.

scrunter avatar Mar 03 '21 13:03 scrunter

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.

robfoulkrod avatar Mar 04 '21 01:03 robfoulkrod

Hi all,

We have updated the template. Please let me know if still issue exists.

Thanks

sriramdasbalaji avatar Mar 09 '21 13:03 sriramdasbalaji

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??

Crusty91 avatar Mar 11 '21 17:03 Crusty91