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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "1.10-experimental",
"contentVersion": "1.0.0.0",
"metadata": {
"_EXPERIMENTAL_WARNING": "Symbolic name support in ARM is experimental, and should be enabled for testing purposes only. Do not enable this setting for any production usage, or you may be unexpectedly broken at any time!",
"_generator": {
"name": "bicep",
"version": "0.16.1.55165",
"templateHash": "12852337686590580900"
}
},
"resources": {
"foo1": {
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "foo"
},
"foo2": {
"existing": true,
"type": "Microsoft.Authorization/roleAssignments",
"apiVersion": "2022-04-01",
"scope": "[format('Microsoft.Storage/storageAccounts/{0}', 'foo')]",
"name": "blah",
"dependsOn": [
"foo1"
]
},
"foo3": {
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "foo3",
"properties": {
"accessTier": "[reference('foo2').updatedBy]"
},
"dependsOn": [
"foo1"
]
}
}
}
My expectation is for foo3's dependsOn to reference foo2 rather than foo1.
The text was updated successfully, but these errors were encountered:
Wouldn't the [reference('foo2').updatedBy] expression create an implicit dependency? I would think the dependsOn property in foo3 is redundant since a by-name reference to foo2 is used.
Repro:
Generates:
My expectation is for
foo3
'sdependsOn
to referencefoo2
rather thanfoo1
.The text was updated successfully, but these errors were encountered: