azure - Enable System managed identity for ACR integration - Stack Overflow

currently In my container app i am using sp based authentication with ACR by providing the usernamepas

currently In my container app i am using sp based authentication with ACR by providing the username/password like below.

  registry {
    server               = var.acr_registry_name
    username             = var.acr_sp_id
    password_secret_name = "acr-pass"
  }

Now wanted to use the Managed identity authentication. I have code like below. With this getting error

"message":"Failed
to provision revision for container app 'container-app-dev'.
Error details: The following field(s) are either invalid or missing. Field
'configuration.Registries.devacr.azurecr.io.Identity' is
invalid with details: 'Invalid value: \"SystemAssigned\": Managed Identity
does not exist';.."},"startTime":"2025-03-26T11:46:32.5140204"}

It works perfectly well with manual setup but not with terraform code. Any open BUGS or am i missing something.

currently In my container app i am using sp based authentication with ACR by providing the username/password like below.

  registry {
    server               = var.acr_registry_name
    username             = var.acr_sp_id
    password_secret_name = "acr-pass"
  }

Now wanted to use the Managed identity authentication. I have code like below. With this getting error

"message":"Failed
to provision revision for container app 'container-app-dev'.
Error details: The following field(s) are either invalid or missing. Field
'configuration.Registries.devacr.azurecr.io.Identity' is
invalid with details: 'Invalid value: \"SystemAssigned\": Managed Identity
does not exist';.."},"startTime":"2025-03-26T11:46:32.5140204"}

It works perfectly well with manual setup but not with terraform code. Any open BUGS or am i missing something.

Share Improve this question edited Mar 28 at 3:38 Vinay B 2,7512 gold badges3 silver badges12 bronze badges Recognized by Microsoft Azure Collective asked Mar 26 at 12:38 CoderCoder 17112 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 0

After updating code like below, it's started working fine.

  registry {
    server               = var.acr_registry_name
    identity             = "system"
  }

If proper documentation were provided from hashicorp would been better.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744144693a4560366.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信