Relative Content

Tag Archive for terraform-provider-azure

unexpected status 404 (404 Not Found) with error: SubscriptionNotFound

Just wondering if can someone able to assist to share some insights and lead me where to troubleshoot and fix the error below I just came across when I ran my Terraform Apply. I have TF code where the variable is set to default: “00000000-0000-0000-0000-000000000000”. The intention is, If specified, identifies the landing zone resource deployment and correct placement in the Management Group hierarchy in our Azure environment.

Terraform – How to configure azurerm_role_management_policy at resource scope?

I have created different Terraform modules to manage scope at 3 different levels. Subscription, Resource Group and Resource. The first two are working fine since they are quite generic in nature. However for the last one I am facing problem with the scope. Can someone please suggest what should be the way to configure the scope at a specific resource level for allowing me to configure azurerm_role_management_policy rules?

Terraform how to use a resource from subscription A in subscription B

I have created an azurerm_data_protection_backup_vault in subscription A and when I create storage accounts in subscription B, I would like to enable the backup vault’s principal id to be the storage account backup contributor. I have created in subscription B a second provider block, an alias provider block like this: