Skip to content

Commit

Permalink
feat: Add output 'endpoint' in Configuration Store Module - `avm/res/…
Browse files Browse the repository at this point in the history
…app-configuration/configuration-store` (#2586)

## Description
Fixes #1323
<!--
>Thank you for your contribution !
> Please include a summary of the change and which issue is fixed.
> Please also include the context.
> List any dependencies that are required for this change.

Fixes #123
Fixes #456
Closes #123
Closes #456
-->

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.app-configuration.configuration-store](https://github.com/NanaXiong00/bicep-registry-modules/actions/workflows/avm.res.app-configuration.configuration-store.yml/badge.svg?branch=fix%2F1323&event=workflow_dispatch)](https://github.com/NanaXiong00/bicep-registry-modules/actions/workflows/avm.res.app-configuration.configuration-store.yml)
|

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [ ] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

<!-- Please keep up to date with the contribution guide at
https://aka.ms/avm/contribute/bicep -->
@jongio - for notification.

---------

Co-authored-by: JFolberth <johnfolberth@gmail.com>
  • Loading branch information
NanaXiong00 and JFolberth authored Jul 2, 2024
1 parent 9eff9a6 commit a6f8493
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions avm/res/app-configuration/configuration-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,7 @@ Tags of the resource.

| Output | Type | Description |
| :-- | :-- | :-- |
| `endpoint` | string | The endpoint of the app configuration. |
| `location` | string | The location the resource was deployed into. |
| `name` | string | The name of the app configuration. |
| `resourceGroupName` | string | The resource group the app configuration store was deployed into. |
Expand Down
3 changes: 3 additions & 0 deletions avm/res/app-configuration/configuration-store/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ output systemAssignedMIPrincipalId string = configurationStore.?identity.?princi
@description('The location the resource was deployed into.')
output location string = configurationStore.location

@description('The endpoint of the app configuration.')
output endpoint string = configurationStore.properties.endpoint

// =============== //
// Definitions //
// =============== //
Expand Down
19 changes: 13 additions & 6 deletions avm/res/app-configuration/configuration-store/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.170.59819",
"templateHash": "10235230031944796617"
"version": "0.28.1.47646",
"templateHash": "5605182857227977981"
},
"name": "App Configuration Stores",
"description": "This module deploys an App Configuration Store.",
Expand Down Expand Up @@ -801,8 +801,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.170.59819",
"templateHash": "4987655092014889247"
"version": "0.28.1.47646",
"templateHash": "1895784594394176994"
},
"name": "App Configuration Stores Key Values",
"description": "This module deploys an App Configuration Store Key Value.",
Expand Down Expand Up @@ -922,8 +922,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.170.59819",
"templateHash": "3867721314598368740"
"version": "0.28.1.47646",
"templateHash": "15490063653423076927"
},
"name": "App Configuration Replicas",
"description": "This module deploys an App Configuration Replica.",
Expand Down Expand Up @@ -1686,6 +1686,13 @@
"description": "The location the resource was deployed into."
},
"value": "[reference('configurationStore', '2023-03-01', 'full').location]"
},
"endpoint": {
"type": "string",
"metadata": {
"description": "The endpoint of the app configuration."
},
"value": "[reference('configurationStore').endpoint]"
}
}
}

0 comments on commit a6f8493

Please sign in to comment.