Open LukasAuSc opened 1 week ago
Hi @LukasAuSc, Could you clarify what you mean by “deploy again”? Did you destroy the previous deployment and start over, or did you simply modify the parameters and re-run the Terraform template? Thanks
Hi @chkp-natanelm, thank you for the quick response.
deploy again really just meaning, run the same apply command than before, not even modifying the parameters.
First it recognizes something as changed in the parameter_values
, which looks like this
# azurerm_managed_application.nva will be updated in-place
~ resource "azurerm_managed_application" "nva" {
id = "***************"
name = "***************"
~ parameter_values = (sensitive value)
tags = {}
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
(shortened for readability), and then when running it, it fails with the above mentioned error.
And when I delete the role assignment, I can redeploy without issue. It looks to me like the role assignment is recreated with every apply step, even if it was created before. If it would be terraform code, I would say it has not been saved in the state, but I do not know how the managed application works.
Hi @LukasAuSc, Thank you for the feedback. We will investigate it, and update the issue with the progress.
Hi,
firstly thank you for the implementations for different cloud providers and languages. I am currently struggling with an strange issue for deploying the terraform integration on azure, nva-into-existing-hub.
The first deployment works perfectly fine, in under 10 min, but afterwards it tries to deploy again, and fails with the following error:
What I was able to figure out, is that with the first deployment the automatic created UAI
vwan-managed-identity
, is being created and assigned asManaged Application Operator Role
to the NVA. With the second deployment, the above error comes up and the deployment fails after >15min. When I delete the role assignment, the deployment works again smoothly, but if deploying it again, same error.If you can help me or point me in the right direction, I would greatly appreciate it. Since I can not see into the application, unfortuantely I am stuck here.