Azure / Azure/bicep

[Bicep Visualizer] Different nested resources with same symbol name are shown as one

Open
#2,678 5 comments 0 reactions 1 assignee Claimed by @shenglol View on GitHub
bug story: visualizer
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

**Bicep version**
v0.3.539

**Describe the bug**
We have 2 secrets (each secret for one key vault), but on diagram only one is shown:
![image](https://user-images.githubusercontent.com/7921224/118359427-a6e06880-b583-11eb-9269-171bb26f8a49.png)

**To Reproduce**:
```
@secure()
param secretValue string
@secure()
param secretValue2 string

resource keyVault 'Microsoft.KeyVault/vaults@2021-04-01-preview' = {
name: 'kv-${uniqueString(resourceGroup().id)}'
location: location
properties: {
enableRbacAuthorization: true
sku: {
name: 'standard'
family: 'A'
}
tenantId: subscription().tenantId
}
resource secret 'secrets' = {
name: 'mySuperSecret'
properties: {
value: secretValue
}
}
}

resource keyVault2 'Microsoft.KeyVault/vaults@2021-04-01-preview' existing = {
name: 'kv-${uniqueString(resourceGroup().id)}-sys'
resource secret 'secrets' = {
name: 'mySuperSecret'
properties: {
value: secretValue2
}
}
}
```

**Additional context**
Additionally, arrows should point in the other direction - from parent resource to the child to indicate the deployment flow (first parent, then child).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.