0

I was calling a data source in side terraform code.

data "azurerm_private_dns_zone" "acr_service" {
  name                = "privatelink.azurecr.io"
  resource_group_name = "it-aue1-cor-arg-privatedns"

This resource and resource group already exist in the cloud. still i am getting resource not found error.

Afril
  • 1
  • 2
    Can you add the error to the question as well? – Marko E Jul 01 '22 at 07:09
  • 1
    Hai, I figured out the issue. I was trying to call data source from another subscription and the provider alias of that subscription was not provided. Now I added it and it worked. – Afril Jul 02 '22 at 09:10
  • Could you post an example? I added provider alias to data source but still getting the error. – Alex Langer Jan 19 '23 at 15:04

0 Answers0