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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

data.azurerm_container_app cannot find system assigned identity #25987

Open
1 task done
yavuzkaymak opened this issue May 16, 2024 · 1 comment
Open
1 task done

data.azurerm_container_app cannot find system assigned identity #25987

yavuzkaymak opened this issue May 16, 2024 · 1 comment

Comments

@yavuzkaymak
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.3

AzureRM Provider Version

3.100.0

Affected Resource(s)/Data Source(s)

data.azurerm_container_app

Terraform Configuration Files

data "azurerm_container_app" "this" {
  name                = "my-ca"
  resource_group_name = "my-rg"
}

Debug Output/Panic Output

identity = []

Expected Behaviour

should find the system assigned identity

Actual Behaviour

returns empty list

Steps to Reproduce

data "azurerm_container_app" "this" {
name = "my-ca"
resource_group_name = "my-rg"
}

output "identity" { value = data,azurerm_container_app.identity[0].principal_id }

Important Factoids

No response

References

No response

@Chambras
Copy link
Contributor

Hi @yavuzkaymak could you share how are you creating the container app as well?

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

No branches or pull requests

2 participants