Parent resource name missing in the name property of exported resources

Open
#738 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, powershell

Research direction

Start by reproducing the AzOps pull and template-validation flow described in the issue, focusing on the four listed nested resource types. Trace the export path that builds each resource's name and verify that the parent name is included; done means the generated JSON matches the corrected example and validation succeeds.

Written by the indexing model from the issue text.

Description

bug resource-provider

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

Dominant language
PowerShell
Stars
420
Forks
174
Avg merge
16d 18h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/AzOps

All issues in Azure/AzOps

Similar issues

More Cloud issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.