Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gives up after first failure of use-recent-api-version with each resource type #662

Open
StephenWeatherford opened this issue Jul 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@StephenWeatherford
Copy link
Contributor

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {},
    "functions": [],
    "resources": [
        {
            "name": "res1",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2020-05-26-privatepreview"
        },
        {
            "name": "res2",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2020-05-26-preview"
        },
        {
            "name": "res3",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2020-05-26-beta"
        },
        {
            "name": "res4",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2020-05-26-alpha"
        },
        {
            "name": "res5",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2019-07-01-privatepreview"
        },
        {
            "name": "res6",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2019-07-01-preview"
        },
        {
            "name": "res7",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2019-07-01-beta"
        },
        {
            "name": "res8",
            "type": "Microsoft.VSOnline/registeredSubscriptions",
            "apiVersion": "2019-07-01-alpha"
        }


    ],
    "outputs": {}
}

Actual:

  apiVersions Should Be Recent                                                                                          
    [-] apiVersions Should Be Recent (94 ms)                                                                            
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-05-26-preview of Microsoft.VSOnline/registeredSubscriptions is 772 days old Line: 15, Column: 14
        Valid Api Versions:                                                                                             
        2020-05-26-beta                                                                                                 
        2020-05-26-privatepreview   

Expected: multiple errors

@ghost ghost added the Needs: triage 🔍 label Jul 7, 2022
@bmoore-msft bmoore-msft added bug Something isn't working and removed Needs: triage 🔍 labels Jul 27, 2022
@bmoore-msft
Copy link
Contributor

@StartAutomating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants