Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output added to resourceGroup module. #194

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions infra-as-code/bicep/modules/resourceGroup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ The module requires the following inputs:

The module will generate the following outputs:

| Output | Type | Example |
| ------ | ---- | ------- |
| Output | Type | Example |
| --------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| outResourceGroupName | string | corp-hubservices-rg |
| outResourceGroupId | string | /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxx/resourceGroups/corp-hubservices-rg |

## Deployment

Expand Down
8 changes: 6 additions & 2 deletions infra-as-code/bicep/modules/resourceGroup/resourceGroup.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ SUMMARY: Module to deploy a resource group to the subscription specified.
DESCRIPTION: The following components will be required parameters in this deployment
parLocation
parResourceGroupName
AUTHOR/S: aultt
VERSION: 1.0.0
AUTHOR/S: aultt, KiZach
VERSION: 1.0.1
- added outputs to make depends-on support better for sub modules deploying into the created resource group.
*/

targetScope = 'subscription'
Expand Down Expand Up @@ -34,3 +35,6 @@ module modCustomerUsageAttribution '../../CRML/customerUsageAttribution/cuaIdSub
name: 'pid-${varCuaid}-${uniqueString(subscription().subscriptionId, parResourceGroupName)}'
params: {}
}

output outResourceGroupName string = resResourceGroup.name
output outResourceGroupId string = resResourceGroup.id