How to create Azure Subscription and deploy into it in same stream

Help me please find the way how to create Azure susbcription:

resource "azurerm_subscription" "example" {
  subscription_name = "My Example EA Subscription"
  billing_scope_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