I am unable to create cosmos DB account in azure using terraform. I have tried many different configuration in order to make the resource compliant with the limits and policies. I even created the cosmos DB account manually, then import it in terraform, after that I extracted the configuration, and tried to recreate it with the exported configuration. But still I am facing 403 forbidden as the deployment is denied by some policy.
Kindly help me to create azure cosmos DB account using terraform.
Hi @crazylinux,
Have you worked on any labs in KodeKloud Labs or KKE? If yes, please share the lab links or the Azure level and task name from KKE.
Hi @raymond.baoly
I am trying to create it in azure playground. It is not part of any lab or course.
“22159d88-0023-4d07-8b22-cd1769968b1c” - is the policy ID that is denying the deployment of cosmos DB using terraform. As I have said earlier also, creating the resource manually and extracting the configuration using terraform import and terraform show, and then re-creating the cosmos DB account is also not working. This policy kicks in to deny the cosmos DB account deployment with terraform.
please help me on this.
Hi @crazylinux,
Please share your Terraform code so I can check why it’s having a permission issue.
I’ve forwared this valid issue to the team.
Hello @raymond.baoly , Thanks for your quick action on this. please let me know once you have any update.
1 Like