Skip to content

Commit

Permalink
feat: private dns module-add gov and dod regions (Azure#3953)
Browse files Browse the repository at this point in the history
## Description

Adds us gov and dod region/geo-codes

## Pipeline Reference

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

| Pipeline |
| -------- |
|
[![avm.ptn.network.private-link-private-dns-zones](https://github.com/oZakari/bicep-registry-modules/actions/workflows/avm.ptn.network.private-link-private-dns-zones.yml/badge.svg?branch=gov-regions)](https://github.com/oZakari/bicep-registry-modules/actions/workflows/avm.ptn.network.private-link-private-dns-zones.yml)
|

## Type of Change

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

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [ ] 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.
- [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 -->
  • Loading branch information
oZakari authored Dec 18, 2024
1 parent 01be40b commit ec4aabf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
10 changes: 10 additions & 0 deletions avm/ptn/network/private-link-private-dns-zones/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ var azureRegionGeoCodeShortNameAsKey = {
chilecentral: 'clc'
westus: 'wus'
swedensouth: 'sds'
usgovvirginia: 'ugv'
usgovtexas: 'ugt'
usgovarizona: 'uga'
usdodeast: 'ude'
usdodcentral: 'udc'
}

var azureRegionShortNameDisplayNameAsKey = {
Expand Down Expand Up @@ -243,6 +248,11 @@ var azureRegionShortNameDisplayNameAsKey = {
'west us 3': 'westus3'
'taiwan north': 'taiwannorth'
'sweden central': 'swedencentral'
'usgov virginia': 'usgovvirginia'
'usgov texas': 'usgovtexas'
'usgov arizona': 'usgovarizona'
'usdod east': 'usdodeast'
'usdod central': 'usdodcentral'
}

var locationLowered = toLower(location)
Expand Down
18 changes: 14 additions & 4 deletions avm/ptn/network/private-link-private-dns-zones/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6071389975562170906"
"version": "0.32.4.45862",
"templateHash": "92251714130346832"
},
"name": "avm/ptn/network/private-link-private-dns-zones",
"description": "Private Link Private DNS Zones",
Expand Down Expand Up @@ -234,7 +234,12 @@
"eastasia": "ea",
"chilecentral": "clc",
"westus": "wus",
"swedensouth": "sds"
"swedensouth": "sds",
"usgovvirginia": "ugv",
"usgovtexas": "ugt",
"usgovarizona": "uga",
"usdodeast": "ude",
"usdodcentral": "udc"
},
"azureRegionShortNameDisplayNameAsKey": {
"australia southeast": "australiasoutheast",
Expand Down Expand Up @@ -293,7 +298,12 @@
"south africa west": "southafricawest",
"west us 3": "westus3",
"taiwan north": "taiwannorth",
"sweden central": "swedencentral"
"sweden central": "swedencentral",
"usgov virginia": "usgovvirginia",
"usgov texas": "usgovtexas",
"usgov arizona": "usgovarizona",
"usdod east": "usdodeast",
"usdod central": "usdodcentral"
},
"locationLowered": "[toLower(parameters('location'))]",
"locationLoweredAndSpacesRemoved": "[if(contains(variables('locationLowered'), ' '), variables('azureRegionShortNameDisplayNameAsKey')[variables('locationLowered')], variables('locationLowered'))]",
Expand Down
4 changes: 2 additions & 2 deletions avm/ptn/network/private-link-private-dns-zones/version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.2",
"version": "0.3",
"pathFilters": [
"./main.json"
]
}
}

0 comments on commit ec4aabf

Please sign in to comment.