0
votes

I am trying to run Azure HDInsight Cluster from PowerShell and getting error while getting storage key from my azure account :

Get-AzureSubscription -Default

$subid = (Get-AzureSubscription -Current).SubscriptionId
$clustername = "bigdatajs1"
$storagename = "bigdatajs1"
$containername = "bigdatajs1"

$creds = Get-Credential

#get storage for key
$key1 = (Get-AzureStorageKey $storagename).Primary

PS C:\Users\milind.chavan> $key1 = (Get-AzureStorageKey $storagename).Primary Get-AzureStorageKey : ResourceNotFound: The storage account 'bigdatajs1' was not found.

1
What do you want help with? The error looks quite self explanatory to mearco444
I had two subscriptions, I had to change my subscription to get default one.Milind Chavan

1 Answers

0
votes

By changing the subscription I can manage to get ride of this issue