Skip to content

Conversation

@LuBu0505
Copy link

need add the "#" for the $schema url.

if no #, will met Location / scope error.

the error message as below:

{
"code": "InvalidTemplate",
"message": "Deployment template validation failed: 'The template resource 'Enforce-Monitoring-KeyVault-Assignment' at line '139' and column '9' is not valid: The language expression property 'location' doesn't exist, available properties are 'name, tags, properties'.. Please see https://aka.ms/arm-functions for usage details.'."
}

{
"code": "InvalidPolicyUri",
"message": "The policy request scope '/subscriptions/xxxxxxx-xxx-xxx-xxxxxx/resourcegroups/xxxxx_rg' should be '/', '/subscriptions/id' or '/providers/Microsoft.Management/managementGroups/id'."
}

need add the "#" for the $schema url. 

if no #, will met Location / scope error.

the error message as below:

{
  "code": "InvalidTemplate",
  "message": "Deployment template validation failed: 'The template resource 'Enforce-Monitoring-KeyVault-Assignment' at line '139' and column '9' is not valid: The language expression property 'location' doesn't exist, available properties are 'name, tags, properties'.. Please see https://aka.ms/arm-functions for usage details.'."
}

{
  "code": "InvalidPolicyUri",
  "message": "The policy request scope '/subscriptions/xxxxxxx-xxx-xxx-xxxxxx/resourcegroups/xxxxx_rg' should be '/', '/subscriptions/id' or '/providers/Microsoft.Management/managementGroups/id'."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant