Hi,
Help me please find the way how to create Azure susbcription:
resource "azurerm_subscription" "example" {
subscription_name = "My Example EA Subscription"
billing_scope_id = data.azurerm_billing_enrollment_account_scope.example.id
}
and be able to deploy resources into this sub.
What I tried, was to use alias but of course sub id is not known yeat, at that stage.
provider "azurerm" {
alias = "onboarded"
features {}
subscription_id = data.azurerm_subscription.sub.subscription_id
}
Any suggestions please? thanks much