Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

credentialSets does not support creation of 'UserAssigned' resource identity #790

Open
tobiasholzner-whiteduck opened this issue Nov 10, 2024 · 1 comment
Assignees
Labels

Comments

@tobiasholzner-whiteduck

Describe the bug
I want to create a credentialSets resource with a UserAssigned identity using Bicep.

Bicep template: https://learn.microsoft.com/en-us/azure/templates/microsoft.containerregistry/registries/credentialsets?pivots=deployment-language-bicep

Error:

Resource type 'Microsoft.ContainerRegistry/registries/credentialSets' does not support creation of 'UserAssigned' resource identity. The supported types are 'SystemAssigned'

To Reproduce

resource dockerHubCredentialSetResource 'Microsoft.ContainerRegistry/registries/credentialSets@2023-01-01-preview' = {
  name: 'dockerhub'
  parent: acrResource
  identity: {
    type: 'UserAssigned'
    userAssignedIdentities: {
      'XXXX': {}
    }
  }
  properties: {
    authCredentials: [
      {
        name: 'dockerhub'
        passwordSecretIdentifier: 'https://XXXX'
        usernameSecretIdentifier: 'https://XXXX'
      }
    ]
    loginServer: 'docker.io'
  }
}

Expected behavior
The resource gets created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants