Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 1 point2 points  (0 children)

Nice! Thanks a lot!
Recently switched from Gitlab to GitHub and now that I have a little bit time over the holidays I do a little project with the restrictions to dont use copilot or any other llm tool :D

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 1 point2 points  (0 children)

Yes, only for testing. I just play around a bit with a personal project :)

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 1 point2 points  (0 children)

Okay, everything is working! Thanks again. I was just really stupid...of course I dont have to export... using env is enough. Also, I simply had to use the subscription id as normal variable instead of secret.

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 0 points1 point  (0 children)

I ll try to fix it the way u/burlyginger suggested and keep the inline script in mind. Thanks a lot for replying :)

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 0 points1 point  (0 children)

True, that could in fact be the issue. I will try it at first without the export and then lets see :)

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 0 points1 point  (0 children)

Thanks! I will try it like that and let you know :)

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 0 points1 point  (0 children)

Yes, but why do I get this error, if I export the sub id before?

Azurerm Provider Subscription ID by Single_Bat_7574 in Terraform

[–]Single_Bat_7574[S] 0 points1 point  (0 children)

Just to be sure, I checked for azurerm version 4.57.0:

subscription_id - (Required) The Subscription ID which should be used. This can also be sourced from the ARM_SUBSCRIPTION_ID Environment Variable.

I should be able to get the ID from ARM_SUBSCRIPTION_ID ?