https://pulumi.com logo
Title
p

polite-shoe-79877

03/22/2021, 7:12 AM
How do i create an azure subscription. Iam using this: https://www.pulumi.com/docs/reference/pkg/azure/core/subscription/ when i try
const subscription = new Subscription("subscription", 
{
        subscriptionName: "subscription"
})
i get the following error: error: azure:core/subscription:Subscription resource 'sub' has a problem: "subscription_id": one of
billing_scope_id,subscription_id
must be specified
when i try to specify with either subscription_id or billing_scope_id it must be specified with an already exisiting subscription id.
t

tall-librarian-49374

03/22/2021, 7:19 AM
I think you need to specify the billingScopeId.
p

polite-shoe-79877

03/22/2021, 7:27 AM
which form should the billingScopeId have? i have found a few different examples
w

wet-noon-14291

03/22/2021, 9:13 AM
@tall-librarian-49374 is there a difference if we do this for a private or enterprise account on azure?
t

tall-librarian-49374

03/22/2021, 9:13 AM
I don’t know to be honest - it could be