Skip to content

Commit

Permalink
Added Resource Group output (#200)
Browse files Browse the repository at this point in the history
* Added outputs

* Updated readme

* Updated version
  • Loading branch information
johnlokerse authored Apr 6, 2022
1 parent da35a05 commit ff088e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions infra-as-code/bicep/modules/resourceGroup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ The module will generate the following outputs:

| Output | Type | Example |
| ------ | ---- | ------- |
| outResourceGroupName | string | `Hub` |
| outResourceGroupId | string | `/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/Hub` |

## 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, johnlokerse
VERSION: 1.1.0
- Added outputs for resource group name and resource group id
*/

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

0 comments on commit ff088e3

Please sign in to comment.