Azure / Azure/azure-quickstart-templates
listKeys() executed right away with dependency specified
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
### Issue Details
In my case I have root template with external links to nested templates, I am trying to deploy storage account and then pass storage account key to the function app. So I am tryng to call listKeys(storageaccount_resourceId) in root template with dependsOn linked to this nested storage deployment. The actual behavior is that listKeys function is executed right away after start of the deployment (even when dependsOn specified), and failing with ResourceNotFound error.
I am not sure is that expected behavior or not, but it looks very strange that listKeys() is not waiting all dependencies.
You can see example template here:
https://raw.githubusercontent.com/faceless7171/arm-template-bug/master/bug.json
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked bug.json template and reproduce the deployment involving the nested storage deployment, its dependsOn entry, and listKeys(storageaccount_resourceId). Compare the observed ResourceNotFound failure with the intended dependency behavior; done should be a confirmed explanation and a documented or implemented resolution, if this repository owns one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100