-
Notifications
You must be signed in to change notification settings - Fork 809
Open
Labels
Milestone
Description
Bicep version
Latest in main.
Describe the bug
Type checking of property values when the property expects an object type by specifying a reference to a property of another resource does not work correctly.
To Reproduce
Steps to reproduce the behavior (comments indicates the bug):
resource bp 'Microsoft.Blueprint/blueprintAssignments@2018-11-01-preview' = {
name: 't'
location: resourceGroup().location
identity: {
type: 'None'
}
properties: {
parameters: {
'foo': {
reference: {
keyVault: {
id: 's'
}
secretName: 's'
}
}
}
resourceGroups: {
'bar': {
name: 's'
location: 's'
}
}
}
}
resource bp2 'Microsoft.Blueprint/blueprintAssignments@2018-11-01-preview' = {
name: 't2'
location: resourceGroup().location
identity: {
type: 'None'
}
properties: {
// BUG: the type of RG does not match the property type - independent of "additionalProperties"
locks: bp.properties.resourceGroups.bar
parameters: {
's': {
// BUG: type of RG does not match KV reference
reference: bp.properties.resourceGroups.bar
}
}
resourceGroups: {
}
}
}Additional context
Originally discovered via #3084 but issue is independent of additionalProperties.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo