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

Give warning if it looks like the $schema is incorrect for the resources being used #1055

Closed
StephenWeatherford opened this issue Oct 16, 2020 · 2 comments · Fixed by #1102
Closed

Comments

@StephenWeatherford
Copy link
Contributor

... For example, if trying to use a resourceGroup resource inside a deploymentParameters.json# deployment.

@StephenWeatherford
Copy link
Contributor Author

Here's another example:

{
    "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "resources": [
      {
        "name": "name",
        "type": "Microsoft.Subscription/aliases",
        "apiVersion": "2020-09-01",
        "properties": {
          "workLoad": "workLoad",
          "displayName": "displayName",
          "billingScope": "billingScope",
          "managementGroupId": "[tenantResourceId('Microsoft.Management/managementGroups/', parameters('targetManagementGroupId'))]"
        }
      }
    ]
  }

@StephenWeatherford
Copy link
Contributor Author

... and this error (from #1060):

Template validation failed: The template resource 'mgname-test' at line '14' and column '5' is not valid: The language expression property 'location' doesn't exist, available properties are 'name, properties'.. Please see https://aka.ms/arm-template-expressions for usage details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant