You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(attack-range-py3.12) bash-5.2$ python3 attack_range.py build
...
...
│ Error: subscription_id is a required provider property when performing a plan/apply operation
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 4, in provider "azurerm":
│ 4: provider "azurerm" {
│
╵
2024-09-27 16:42:19,677 - INFO - attack_range - [action] > show
...
The subject error is given on a recent config and build. I looked around and found that there is a new issue with Terraform, that they are working, but the work around in the below link, adding subscription_id to the azurerm block of Main.tf worked for me... this may help someone else, until they fix it and this attack_range project may need to adjust how it is calling terraform, not sure.
This is indeed a problem with the newer AzureRM Terraform Providers. I was able to get around it by updating the main.tf config for Azure to use an older version of the AzureRM Provider. In my case, 3.6.0 works great.
There is no need to hardcode the subscription_id yourself...unless you really want to :)
Filepath: terraform\azure\main.tf
Replace the contents of that file with the following:
OS: MacOS Ventura 13.6.9
Azure terraform scripts
Latest code clone
(attack-range-py3.12) bash-5.2$ python3 attack_range.py build
...
...
│ Error:
subscription_id
is a required provider property when performing a plan/apply operation│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 4, in provider "azurerm":
│ 4: provider "azurerm" {
│
╵
2024-09-27 16:42:19,677 - INFO - attack_range - [action] > show
...
The subject error is given on a recent config and build. I looked around and found that there is a new issue with Terraform, that they are working, but the work around in the below link, adding subscription_id to the azurerm block of Main.tf worked for me... this may help someone else, until they fix it and this attack_range project may need to adjust how it is calling terraform, not sure.
hashicorp/terraform-provider-azurerm#27423
The text was updated successfully, but these errors were encountered: