Skip to content

Commit

Permalink
Fix PSRule Tests for ACR
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoussef-insight committed Jun 19, 2024
1 parent 40fa2b6 commit 513ed36
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions src/infrastructure/acr/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@ resource acrResource 'Microsoft.ContainerRegistry/registries@2021-06-01-preview'
}
properties: {
adminUserEnabled: true
policies: acrSku == 'Premium' ? {
quarantinePolicy: {
status: 'enabled'
}
trustPolicy: {
status: 'enabled'
type: 'Notary'
}
retentionPolicy: {
status: 'enabled'
days: 30
}
} : {}
publicNetworkAccess: 'Disabled'
networkRuleSet: acrSku == 'Premium' ? {
defaultAction: 'Deny'
} : null
policies: acrSku == 'Premium'
? {
quarantinePolicy: {
status: 'enabled'
}
trustPolicy: {
status: 'enabled'
type: 'Notary'
}
retentionPolicy: {
status: 'enabled'
days: 30
}
}
: {}
}
}

Expand Down

0 comments on commit 513ed36

Please sign in to comment.