microsoft / azuredevopslabs

Learn how you can plan smartly, collaborate better, and ship faster with a set of modern development services with Azure DevOps.
https://www.azuredevopslabs.com
MIT License
826 stars 920 forks source link

Validation failed: API Deprecated #518

Open mdf-ido opened 3 years ago

mdf-ido commented 3 years ago

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

sriramdasbalaji commented 3 years ago

Hi @m05tr0-DevOps ,

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

Thanks

scrunter commented 3 years ago

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.

robfoulkrod commented 3 years ago

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 gallerydeprecation@microsoft.com for more details."

If a mirror can be found for that file and line 81 replaced, things should be back to normal.

sriramdasbalaji commented 3 years ago

Hi all,

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

Thanks

Crusty91 commented 3 years ago

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