Skip to content

Commit 48ec9ae

Browse files
authored
feat: avm/ptn/ai-platform/baseline - Add container replication (#6513)
## Description <!-- >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 Closes #123 --> Closes #6370 Add geo-replication to container registry, so WAF test passes validation. ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | |[![avm.ptn.ai-platform.baseline](https://github.com/cecheta/bicep-registry-modules/actions/workflows/avm.ptn.ai-platform.baseline.yml/badge.svg?branch=ai-platform)](https://github.com/cecheta/bicep-registry-modules/actions/workflows/avm.ptn.ai-platform.baseline.yml)| ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [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 - [ ] Update to CI Environment or utilities (Non-module affecting changes) ## 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. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings - [x] I have updated the module's CHANGELOG.md file with an entry for the next version <!-- Please keep up to date with the contribution guide at https://aka.ms/avm/contribute/bicep -->
1 parent 076ad3d commit 48ec9ae

File tree

6 files changed

+1971
-765
lines changed

6 files changed

+1971
-765
lines changed

avm/ptn/ai-platform/baseline/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
The latest version of the changelog can be found [here](https://github.com/Azure/bicep-registry-modules/blob/main/avm/ptn/ai-platform/baseline/CHANGELOG.md).
44

5+
## 0.8.0
6+
7+
### Changes
8+
9+
- Add replications to Container Registry
10+
11+
### Breaking Changes
12+
13+
- None
14+
515
## 0.7.1
616

717
### Changes

avm/ptn/ai-platform/baseline/README.md

Lines changed: 98 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ For examples, please refer to the [Usage Examples](#usage-examples) section.
3232
| `Microsoft.Compute/virtualMachines/extensions` | 2022-11-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.compute_virtualmachines_extensions.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Compute/2022-11-01/virtualMachines/extensions)</li></ul> |
3333
| `Microsoft.ContainerRegistry/registries` | 2023-06-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-06-01-preview/registries)</li></ul> |
3434
| `Microsoft.ContainerRegistry/registries/cacheRules` | 2023-06-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries_cacherules.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-06-01-preview/registries/cacheRules)</li></ul> |
35+
| `Microsoft.ContainerRegistry/registries/credentialSets` | 2023-11-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries_credentialsets.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-11-01-preview/registries/credentialSets)</li></ul> |
3536
| `Microsoft.ContainerRegistry/registries/replications` | 2023-06-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries_replications.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-06-01-preview/registries/replications)</li></ul> |
37+
| `Microsoft.ContainerRegistry/registries/scopeMaps` | 2023-06-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries_scopemaps.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-06-01-preview/registries/scopeMaps)</li></ul> |
3638
| `Microsoft.ContainerRegistry/registries/webhooks` | 2023-06-01-preview | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.containerregistry_registries_webhooks.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerRegistry/2023-06-01-preview/registries/webhooks)</li></ul> |
3739
| `Microsoft.DevTestLab/schedules` | 2018-09-15 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.devtestlab_schedules.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DevTestLab/2018-09-15/schedules)</li></ul> |
3840
| `Microsoft.GuestConfiguration/guestConfigurationAssignments` | 2020-06-25 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.guestconfiguration_guestconfigurationassignments.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.GuestConfiguration/2020-06-25/guestConfigurationAssignments)</li></ul> |
@@ -59,10 +61,12 @@ For examples, please refer to the [Usage Examples](#usage-examples) section.
5961
| `Microsoft.Network/privateDnsZones/SRV` | 2020-06-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privatednszones_srv.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2020-06-01/privateDnsZones/SRV)</li></ul> |
6062
| `Microsoft.Network/privateDnsZones/TXT` | 2020-06-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privatednszones_txt.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2020-06-01/privateDnsZones/TXT)</li></ul> |
6163
| `Microsoft.Network/privateDnsZones/virtualNetworkLinks` | 2020-06-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privatednszones_virtualnetworklinks.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2020-06-01/privateDnsZones/virtualNetworkLinks)</li></ul> |
62-
| `Microsoft.Network/privateEndpoints` | 2023-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints)</li></ul> |
6364
| `Microsoft.Network/privateEndpoints` | 2023-11-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-11-01/privateEndpoints)</li></ul> |
64-
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | 2023-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints_privatednszonegroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints/privateDnsZoneGroups)</li></ul> |
65+
| `Microsoft.Network/privateEndpoints` | 2023-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints)</li></ul> |
66+
| `Microsoft.Network/privateEndpoints` | 2024-05-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2024-05-01/privateEndpoints)</li></ul> |
67+
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | 2024-05-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints_privatednszonegroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2024-05-01/privateEndpoints/privateDnsZoneGroups)</li></ul> |
6568
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | 2023-11-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints_privatednszonegroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-11-01/privateEndpoints/privateDnsZoneGroups)</li></ul> |
69+
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | 2023-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_privateendpoints_privatednszonegroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints/privateDnsZoneGroups)</li></ul> |
6670
| `Microsoft.Network/publicIPAddresses` | 2023-09-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_publicipaddresses.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-09-01/publicIPAddresses)</li></ul> |
6771
| `Microsoft.Network/virtualNetworks` | 2024-01-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_virtualnetworks.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2024-01-01/virtualNetworks)</li></ul> |
6872
| `Microsoft.Network/virtualNetworks/subnets` | 2024-01-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.network_virtualnetworks_subnets.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2024-01-01/virtualNetworks/subnets)</li></ul> |
@@ -726,6 +730,14 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
726730
// Required parameters
727731
name: '<name>'
728732
// Non-required parameters
733+
containerRegistryConfiguration: {
734+
replications: [
735+
{
736+
location: '<location>'
737+
name: '<name>'
738+
}
739+
]
740+
}
729741
managedIdentityName: '<managedIdentityName>'
730742
tags: {
731743
Env: 'test'
@@ -774,6 +786,16 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
774786
"value": "<name>"
775787
},
776788
// Non-required parameters
789+
"containerRegistryConfiguration": {
790+
"value": {
791+
"replications": [
792+
{
793+
"location": "<location>",
794+
"name": "<name>"
795+
}
796+
]
797+
}
798+
},
777799
"managedIdentityName": {
778800
"value": "<managedIdentityName>"
779801
},
@@ -826,6 +848,14 @@ using 'br/public:avm/ptn/ai-platform/baseline:<version>'
826848
// Required parameters
827849
param name = '<name>'
828850
// Non-required parameters
851+
param containerRegistryConfiguration = {
852+
replications: [
853+
{
854+
location: '<location>'
855+
name: '<name>'
856+
}
857+
]
858+
}
829859
param managedIdentityName = '<managedIdentityName>'
830860
param tags = {
831861
Env: 'test'
@@ -1030,6 +1060,7 @@ Configuration for the container registry.
10301060
| Parameter | Type | Description |
10311061
| :-- | :-- | :-- |
10321062
| [`name`](#parameter-containerregistryconfigurationname) | string | The name of the container registry. |
1063+
| [`replications`](#parameter-containerregistryconfigurationreplications) | array | The list of container replications to create. |
10331064
| [`trustPolicyStatus`](#parameter-containerregistryconfigurationtrustpolicystatus) | string | Whether the trust policy is enabled for the container registry. Defaults to 'enabled'. |
10341065

10351066
### Parameter: `containerRegistryConfiguration.name`
@@ -1039,6 +1070,70 @@ The name of the container registry.
10391070
- Required: No
10401071
- Type: string
10411072

1073+
### Parameter: `containerRegistryConfiguration.replications`
1074+
1075+
The list of container replications to create.
1076+
1077+
- Required: No
1078+
- Type: array
1079+
1080+
**Required parameters**
1081+
1082+
| Parameter | Type | Description |
1083+
| :-- | :-- | :-- |
1084+
| [`name`](#parameter-containerregistryconfigurationreplicationsname) | string | The name of the replication. |
1085+
1086+
**Optional parameters**
1087+
1088+
| Parameter | Type | Description |
1089+
| :-- | :-- | :-- |
1090+
| [`location`](#parameter-containerregistryconfigurationreplicationslocation) | string | Location for all resources. |
1091+
| [`regionEndpointEnabled`](#parameter-containerregistryconfigurationreplicationsregionendpointenabled) | bool | Specifies whether the replication regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications. |
1092+
| [`tags`](#parameter-containerregistryconfigurationreplicationstags) | object | Tags of the resource. |
1093+
| [`zoneRedundancy`](#parameter-containerregistryconfigurationreplicationszoneredundancy) | string | Whether or not zone redundancy is enabled for this container registry. |
1094+
1095+
### Parameter: `containerRegistryConfiguration.replications.name`
1096+
1097+
The name of the replication.
1098+
1099+
- Required: Yes
1100+
- Type: string
1101+
1102+
### Parameter: `containerRegistryConfiguration.replications.location`
1103+
1104+
Location for all resources.
1105+
1106+
- Required: No
1107+
- Type: string
1108+
1109+
### Parameter: `containerRegistryConfiguration.replications.regionEndpointEnabled`
1110+
1111+
Specifies whether the replication regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
1112+
1113+
- Required: No
1114+
- Type: bool
1115+
1116+
### Parameter: `containerRegistryConfiguration.replications.tags`
1117+
1118+
Tags of the resource.
1119+
1120+
- Required: No
1121+
- Type: object
1122+
1123+
### Parameter: `containerRegistryConfiguration.replications.zoneRedundancy`
1124+
1125+
Whether or not zone redundancy is enabled for this container registry.
1126+
1127+
- Required: No
1128+
- Type: string
1129+
- Allowed:
1130+
```Bicep
1131+
[
1132+
'Disabled'
1133+
'Enabled'
1134+
]
1135+
```
1136+
10421137
### Parameter: `containerRegistryConfiguration.trustPolicyStatus`
10431138

10441139
Whether the trust policy is enabled for the container registry. Defaults to 'enabled'.
@@ -1914,7 +2009,7 @@ This section gives you an overview of all local-referenced module files (i.e., o
19142009
| Reference | Type |
19152010
| :-- | :-- |
19162011
| `br/public:avm/res/compute/virtual-machine:0.5.3` | Remote reference |
1917-
| `br/public:avm/res/container-registry/registry:0.3.1` | Remote reference |
2012+
| `br/public:avm/res/container-registry/registry:0.9.3` | Remote reference |
19182013
| `br/public:avm/res/insights/component:0.3.1` | Remote reference |
19192014
| `br/public:avm/res/key-vault/vault:0.6.2` | Remote reference |
19202015
| `br/public:avm/res/machine-learning-services/workspace:0.5.0` | Remote reference |

0 commit comments

Comments
 (0)