This was a long time ago, but have answered here: How to create Azure Subscription and deploy into it in same stream