Azure / Azure/bicep

Extract param/type: dependsOn should be object?, not object

Open
#15,263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

```bicep
module stgModule './storageAccount.bicep' = {
name: 'storageDeploy'
params: {
storagePrefix: namePrefix
location: location
}
}
```
Extract entire resource as param. Get error in default value because dependsOn should be object? but is declared as object:
![image](https://github.com/user-attachments/assets/ecc05443-5bdc-4b37-a170-d785806f5da9)

Contributor guide

Open the contributing guide

Research direction

Start with the module extraction example in the issue and reproduce the reported default-value error for dependsOn. Trace the extraction and parameter type handling involved; done means extracting the resource no longer reports a mismatch between object? and object.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.