Skip to content

Commit

Permalink
feat: added domainverificationid output (#4491)
Browse files Browse the repository at this point in the history
## Added domainVerificationId to module output

Fixes #4490
Closes #4490

## Pipeline Reference

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

| Pipeline |
| -------- |
|
[![avm.res.app.managed-environment](https://github.com/cmezach/bicep-registry-modules/actions/workflows/avm.res.app.managed-environment.yml/badge.svg)](https://github.com/cmezach/bicep-registry-modules/actions/workflows/avm.res.app.managed-environment.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`:
- [x] 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.
- [x] 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 -->

---------

Co-authored-by: Collin Mezach <[email protected]>
Co-authored-by: hundredacres <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2025
1 parent 7da7599 commit 749ec54
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions avm/res/app/managed-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,7 @@ Whether or not this Managed Environment is zone-redundant.
| Output | Type | Description |
| :-- | :-- | :-- |
| `defaultDomain` | string | The Default domain of the Managed Environment. |
| `domainVerificationId` | string | The domain verification id for custom domains. |
| `location` | string | The location the resource was deployed into. |
| `name` | string | The name of the Managed Environment. |
| `resourceGroupName` | string | The name of the resource group the Managed Environment was deployed into. |
Expand Down
3 changes: 3 additions & 0 deletions avm/res/app/managed-environment/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ output defaultDomain string = managedEnvironment.properties.defaultDomain
@description('The IP address of the Managed Environment.')
output staticIp string = managedEnvironment.properties.staticIp

@description('The domain verification id for custom domains.')
output domainVerificationId string = managedEnvironment.properties.customDomainConfiguration.customDomainVerificationId

// =============== //
// Definitions //
// =============== //
Expand Down
11 changes: 9 additions & 2 deletions avm/res/app/managed-environment/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.33.13.18514",
"templateHash": "4503904336969657185"
"version": "0.33.93.31351",
"templateHash": "10342722837469174682"
},
"name": "App ManagedEnvironments",
"description": "This module deploys an App Managed Environment (also known as a Container App Environment)."
Expand Down Expand Up @@ -575,6 +575,13 @@
"description": "The IP address of the Managed Environment."
},
"value": "[reference('managedEnvironment').staticIp]"
},
"domainVerificationId": {
"type": "string",
"metadata": {
"description": "The domain verification id for custom domains."
},
"value": "[reference('managedEnvironment').customDomainConfiguration.customDomainVerificationId]"
}
}
}
2 changes: 1 addition & 1 deletion avm/res/app/managed-environment/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"pathFilters": [
"./main.json"
]
}
}

0 comments on commit 749ec54

Please sign in to comment.