Azure / Azure/ResourceModules

Add parent object and child array as outputs to all modules

Open
#624 8 comments 0 reactions 0 assignees View on GitHub
blocked enhancement
Dominant language
PowerShell
Stars
737
Forks
436
Avg merge
10d 7h
Merged PRs (30d)
1

Description

## Description

Output values should return info about parents and children, allowing for outputs something like
- deployedResource.parent.resourceGroup.name
- deployedResource.parent.subscription.id
- deployedResource.fileShares[0].name

Suggestion on parent
``` bicep
output parent object = {
'resourceGroup': resourceGroup()
'subscription' : subscription()
//'managementGroup' : managementGroup() // Depending on the scope
//'tenant' : tenant()
}
```

Suggestion on children:
``` bicep
@description('A list of all the objects.')
output array = ::
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.