I am working with azure powershell to spin up HDInsight Clusters. I have 2 subscriptions to work with, call them foo-bar and kitty-ipsum.
If I call
New-AzureRmHdInsightCluster -parameters
A new cluster will show up in the foo-bar subscription. If I want to set one up in the kitty-ipsum subscription, I need to change the default or current subscription.
Select-AzureSubscription "kitty-ipsum"
New-AzureRmHdInsightCluster -parameters
should change the current subscription to kitty-ipsum , yet this still produces a cluster in foo-bar.
What I need to know is how to create a new cluster with this other subscription.
Looking into the issue, I found that there is work to make the subscription a parameter on New-AzureRmHdinsightCluster https://github.com/Azure/azure-powershell/issues/1102 . This update might not be released for a while.