New AzureRM version 4 Provider no subscription IDs for the now required subscription_id

I’ve upgraded to the new 4.0.1 AzureRM Provider. The provider block requires subscription_id to be set, but if I don’t have any subscriptions what would I set a
subscription_id to ?

I totally agree with the subscription_id being required. I almost always set it to be explicit in my code, but now when I’m creating a new subscription it seems to be an issue.

1 Like

Ah, yes. The azurerm issue page directs questions to be asked here. This forum is the place for us all to scream into the void because nobody will hear you.

I am having this exact issue. I have an “empty” tenant and want to bootstrap up my subscription. I am currently looking for guidance on the proper way to do this. My current workaround is to set the undocumented environment variable ARM_PROVIDER_ENHANCED_VALIDATION to false and to use subscription_id = "00000000-0000-0000-0000-000000000000" in the provider block.

This solution works but is super janky. I would like some official guidance on how to properly do this. If this is the “proper” way of doing it, it needs to be well documented.

provider "azurerm" {
  features {}

  subscription_id                 = "00000000-0000-0000-0000-000000000000"
  resource_provider_registrations = "none"
}