Azure / azure-resource-manager-schemas

Schemas used to author and validate Resource Manager Templates. These schemas power the intellisense and syntax completion in our ARM Tools VSCode extension, as well as the Export Template API
MIT License
609 stars 516 forks source link

error: resourceGroup value does not match pattern #3139

Open AlexanderStohr opened 1 month ago

AlexanderStohr commented 1 month ago

https://learn.microsoft.com/en-us/azure/virtual-network-manager/create-virtual-network-manager-template

  "type": "Microsoft.Resources/deployments",
  "apiVersion": "2022-09-01",
  "name": "vnet-hub",
  "resourceGroup": "[parameters('resourceGroupName')]",

for the last line with "resourceGroup" there is those message popping up:

[{ "resource": "//Properties/ServiceDependencies/MetricCrawler - Zip Deploy/profile.arm.json", "owner": "_generated_diagnostic_collectionname#1", "severity": 4, "message": "String does not match the pattern of \"^[-\w\._\(\)]+$\".", "startLineNumber": 47, "startColumn": 24, "endLineNumber": 47, "endColumn": 59 }]