You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Specifying scope by accessing a resource collection by hard-coded index produces invalid template. The produced template has copyIndex() without a corresponding copy loop.
To Reproduce
Steps to reproduce the behavior (from existing test):
// extension of a single resource in a collectionresourceextendSingleResourceInCollection'Microsoft.Authorization/locks@2016-09-01' = {
name: 'one-resource-collection-item-lock'properties: {
level: 'ReadOnly'
}
scope: storageAccounts[index % 2]
}
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Bicep version
Latest in
main
.Describe the bug
Specifying scope by accessing a resource collection by hard-coded index produces invalid template. The produced template has
copyIndex()
without a corresponding copy loop.To Reproduce
Steps to reproduce the behavior (from existing test):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: