question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False positive for template validations with extendedLocation property

See original GitHub issue
{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {},
    "functions": [],
    "variables": {},
    "resources": [
        {
            "name": "publicIPAddress1",
            "type": "Microsoft.Network/publicIPAddresses",
            "apiVersion": "2020-11-01",
            "location": "[resourceGroup().location]",
            "tags": {
                "displayName": "publicIPAddress1"
            },
            "extendedLocation": {
                "name": "abc",
                "type": "EdgeZone"
            },
            "properties": {
                "publicIPAllocationMethod": "Dynamic",
                "dnsSettings": {
                    "domainNameLabel": "dnsname1"
                }
            }
        }
    ],
    "outputs": {}
}

Template validation error:

Template validation failed: Could not find member 'extendedLocation' on object of type 'TemplateResource'. Path 'resources[0].extendedLocation', line 16, position 31.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
StephenWeatherfordcommented, Jan 6, 2022

We need upvotes from anyone who’s affected by this in order to push getting this fixed.

0reactions
JunchenZcommented, Mar 24, 2022

@alex-frankel it’s may be unrelated to this, could ignore

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve template validation or template format errors in ... - AWS
Confirm that resource logical IDs and parameters are defined in your template. In the following JSON and YAML templates, test is referenced for ......
Read more >
azure-native.storage.StorageAccount - Pulumi
Documentation for the azure-native.storage.StorageAccount resource with examples, input properties, output properties, lookup functions, and supporting ...
Read more >
Chapter 11. Validating forms - Angular Development with ...
We'll start exploring built-in validators by using a reactive form and then move to a template-driven one. Get Angular Development with Typescript, Second ......
Read more >
User Guide for Cisco Security Manager 4.23 - Viewing Events [Cisco ...
Frequently, event action filters are a better way of dealing with false positives than editing the actual signature. For more information, see Tips...
Read more >
Invalid template errors - Azure Resource Manager
Describes how to resolve invalid template errors when deploying Bicep ... Code=InvalidTemplate Message=Deployment template validation failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found