Azure / Azure/HubAndSpokeResearchEnclave
Add support for custom region names in resource names
- Dominant language
- Bicep
- Stars
- 18
- Forks
- 18
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 3
Description
### Design
- Add a regionNameMap.sample.json file.
File structure (with sample data):
```json
{
"eastus": "eu1",
"westus:" "we1"
}
```
- Load the file contents into a `regionNameMap` variable.
- Create a `locationName` variable as follows:
```bicep
var locationName = contains(regionNameMap, location) ? regionNameMap[location] : location
```
This ensures that an overridden location name will be used, but if the location name isn't overridden, the default (Azure common region name) will be used.
- When the naming convention is turned into a naming structure, replace the `{loc}` placeholder with the `locationName` variable instead of the `location` parameter.
- When the location is sent to the valid resource name module, set an override `shortRegionName` parameter.
- Add exception for regionNameMap.json file in .gitignore.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.