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

Missing resource needed to build AKS with ACR #1935

Closed
JimPaine opened this issue Mar 19, 2021 · 1 comment
Closed

Missing resource needed to build AKS with ACR #1935

JimPaine opened this issue Mar 19, 2021 · 1 comment

Comments

@JimPaine
Copy link
Contributor

Bicep version
Bicep CLI version 0.3.1 (d0f5c9b)

Describe the bug
The VSCode extension shows that the resource type "Microsoft.ContainerRegistry/registries/providers/roleAssignments@2017-09-01" is not available and the compiler gives a warning " Warning BCP081: Resource type "Microsoft.ContainerRegistry/registries/providers/roleAssignments@2017-09-01" does not have types available."

To Reproduce
Build an AKS cluster with ACR and add a role assignment to allow ACRPull

...
resource acrrole 'Microsoft.ContainerRegistry/registries/providers/roleAssignments@2017-09-01' = {
  name: '${acr.name}/Microsoft.Authorization/${guid(acr.id, 'AcrPull')}'
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '7f951dda-4ed3-4680-a7ca-43fe172d538d')
    principalId: reference(aks.id).identityProfile.kubeletidentity.objectId
    principalType: 'ServicePrincipal'
  }
}
...

Additional context
While the above works if you ignore the errors, not having the type available in the extension or compiler makes it hard to consume and build out a valid environment

@JimPaine
Copy link
Contributor Author

Covered by #870

@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant