Skip to content

Commit

Permalink
place ACR tasks into explicit region (#957)
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle authored Dec 10, 2024
1 parent e4f974f commit 419ca9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dev-infrastructure/configurations/acr-ocp.tmpl.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ param purgeJobs = [
]

param keyVaultName = '{{ .serviceKeyVault.name }}'

param location = '{{ .global.region }}'
2 changes: 2 additions & 0 deletions dev-infrastructure/configurations/acr-svc.tmpl.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ param purgeJobs = [
]

param keyVaultName = '{{ .serviceKeyVault.name }}'

param location = '{{ .global.region }}'
4 changes: 3 additions & 1 deletion dev-infrastructure/templates/dev-acr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ param purgeJobs array = []
@description('Name of the global key vault.')
param keyVaultName string = ''

param location string = resourceGroup().location

resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: keyVaultName
}
Expand Down Expand Up @@ -76,7 +78,7 @@ resource secretAccessPermission 'Microsoft.Authorization/roleAssignments@2022-04
resource purgeCached 'Microsoft.ContainerRegistry/registries/tasks@2019-04-01' = [
for purgeJob in purgeJobs: {
name: '${purgeJob.name}'
location: resourceGroup().location
location: location
parent: acrResource
properties: {
agentConfiguration: {
Expand Down

0 comments on commit 419ca9c

Please sign in to comment.