0

I am trying to use ARM TTK and i am selecting my tests.

One of the tests that i want to run is apiVersions Should Be Recent Now in my ARM template i have a resource block of type "Microsoft.DevTestLab/schedules". The latest API version for this resource as per the link API Versions is 2018-09-15. This is more than 2 years old and my test is failing as it is not fulfilling one of the conditions. So how to tackle such kind of API versions if there is no current version available which is within 2 years. Any help is appreciated

learn.microsoft.comlearn.microsoft.com Template test cases for test toolkit - Azure Resource Manager Describes the template tests that are run by the Azure Resource Manager template test toolkit.

learn.microsoft.comlearn.microsoft.com Microsoft.DevTestLab/schedules - Bicep & ARM template reference Azure Microsoft.DevTestLab/schedules syntax and properties to use in Azure Resource Manager templates for deploying the resource. API version latest

Pallab
  • 1,915
  • 2
  • 19
  • 46

1 Answers1

0

The issue still available in a arm ttk issue & arm ttk issue2

To get a API Version for the specific Resource type use below PowerShell script.

((Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Web).ResourceTypes | Where-Object ResourceTypeName -eq sites).ApiVersions

Refer for azure ARM schema generation azure-resource-manager-schemas

Refer for additional Steps https://stackoverflow.com/a/45066194/15997690

Solution is available if the latest version of API available check here in your case No latest version available for DevTestLab.

enter image description here

Please raise a support ticket and MS Q&A here

Delliganesh Sevanesan
  • 4,146
  • 1
  • 5
  • 15