Azure / Azure/bicep-registry-modules

[AVM Module Issue]: unable to create a `container-registry/registry` with actually using `credentialSets` and `cacheRules`

Open
#3,837 10 comments 1 reaction 1 assignee Claimed by @JPEasier View on GitHub
Class: Resource Module :package: Status: Looking For Assistance :duck: Type: AVM :a: :v: :m: Type: Feature Request :heavy_plus_sign:
Dominant language
Bicep
Stars
736
Forks
564
Avg merge
3d 15h
Merged PRs (30d)
30

Description

### Check for previous/existing GitHub issues

- [x] I have checked for previous/existing GitHub issues

### Issue Type?

Feature Request

### Module Name

avm/res/container-registry/registry

### (Optional) Module Version

0.6.0

### Description

I'm unable to make a container registry that has cacheRules but also a credentialSets properly configured with just using the module itself.

As a user i want to use a single module to do **"everything"** for me. (me having to first precreate a keyvault is fine and acceptable)

i **DONT** want to:
- make a ACR first
- create a credentialSet manually
- and then still have to also manually setup the cacheRules

```
cacheRules: [
{
credentialSetResourceId: '' <<< how do i get this from my credentialSets input down below????
name: 'customRule'
sourceRepository: 'docker.io/library/hello-world'
targetRepository: 'cached-docker-hub/hello-world'
}
]
credentialSets: [
{
<<< i dont want to have to create this inside some other hacky resource\module reference that also requires me to have a already existing ACR
authCredentials: [
{
name: 'Credential1'
passwordSecretIdentifier: ''
usernameSecretIdentifier: ''
}
]
loginServer: 'docker.io'
managedIdentities: {
systemAssigned: true
}
name: 'default'
}
]
```

### (Optional) Correlation Id

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.