Azure / Azure/bicep

Auto-complete not working with Custom-tagged union data type

Open
#15,829 0 comments 0 reactions 1 assignee Claimed by @jeskew View on GitHub
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

```bicep

@discriminator('type')
type virtualNetwork = existingVirtualNetwork | newVirtualNetwork

type existingVirtualNetwork = {
type: 'existing'
virtualNetworkId: string
nextHopIpAddress: string?
}

type newVirtualNetwork = {
type: 'new'
customName: string?
customVirtualNetworkPeeringName: string?
addressSpace: string[]
dnsServers: string[]?
existingVirtulNetworkHubId: string?
nextHopIpAddress: string?
}

param virtualNetwork = {
type: 'new'
addressSpace: [
'10.10.0.0/16'
]

}
```

I expect dat ik kan use complete when filling in the property, but it does not.

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.