Skip to content

Parent resource name missing in the name property of exported resources #738

@Poekiee12

Description

@Poekiee12

Describe the bug
When exporting a resource through AzOps, the template validation fails because the name of the parent resource is not included in the name property.

This bug applies to the following types:

"type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
"type": "Microsoft.Sql/servers/databases",
"type": "Microsoft.Cdn/profiles/endpoints",
"type": "Microsoft.Network/dnsResolvers/inboundEndpoints",

Wrong JSON

"type": "Microsoft.Sql/servers/databases",
"name": "databasename",

Correct JSON

"type": "Microsoft.Sql/servers/databases",
"name": "sqlservername/databasename",

Steps to reproduce

  1. Pull Azure environment with AzOps
  2. Validate pulled resource templates
  3. Error appears in the name property of the JSON file

Screenshots
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingresource-providerissue with resource schema for pulled resources

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions