Azure / Azure-Lighthouse-samples

Provide samples for understanding managed service solutions
MIT License
286 stars 289 forks source link

How to onboard multiple subscription which is present in the same tenant in azure lighthouse ? #101

Closed ajaywayal2 closed 3 years ago

ajaywayal2 commented 3 years ago

Trying to onboard multiple subscription which is present in the same tenant in azure light house. Not able to find such ARM template.

decker78 commented 3 years ago

I'm looking for the same. I however don't see a way to feed the templed an array with subscriptions. Tried with a main template in tenant scoped and linked template for lighthouse delegation, bit there is no way to loop through an array setting the subscriptionid for that linked deployment

azurenative commented 3 years ago

i dont know if you are using azure pipelines, but i have used that to deploy the arm template to multiple subscriptions. here is a reference link : https://adatum.no/azure/multi-subscription-deployment-with-devops-and-azure-lighthouse

decker78 commented 3 years ago

Thanks for the reference. But I'm looking to enable customers (without an azure pipeline) to onboard multiple subscriptions using one template instead of having them to run the template once for each subscription. But that seems not possible.

decker78 commented 3 years ago

Ah this just works when starting with a tenant deployment and use a linked template for the delegation using a copy loop in the subscriptionid

serenaz commented 3 years ago

Glad you found a solution!