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

Quickstart 201-web-app-docker-acr does not give app service permission to read from ACR #235

Open
1 task done
jakereifer opened this issue Jun 30, 2023 · 2 comments
Open
1 task done
Labels
bug Something isn't working example

Comments

@jakereifer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Example Name

201-web-app-docker-acr

Terraform Version

1.4.6

Current Behavior

The App service is given a permission to the App Service Plan (not the ACR)

Expected Behavior

The App service is given a permission to the ACR

Steps To Reproduce

Screenshot 2023-06-30 at 5 15 00 PM

Anything else?

No response

@jakereifer jakereifer added bug Something isn't working example labels Jun 30, 2023
@Huili-Zheng
Copy link

Hi Jakereifer, I have the same issue. Do you fix it?

@jakereifer
Copy link
Author

Hi Jakereifer, I have the same issue. Do you fix it?

I think this worked (a web app pulling from an acr)

resource "azurerm_role_assignment" "pull_role_assignment" {
  principal_id                                           = azurerm_linux_web_app.example_web_app.identity[0].principal_id
  role_definition_name                           = "AcrPull"
  scope                                                    = var.acr_id # the id of the acr you want to pull from
  skip_service_principal_aad_check    = true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working example
Projects
None yet
Development

No branches or pull requests

2 participants