在多个订阅中找不到HDInsight存储

时间:2015-08-07 12:39:07

标签: powershell azure hdinsight

我正在尝试从PowerShell运行Azure HDInsight群集,并在从我的azure帐户获取存储密钥时出错:

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:找不到存储帐户'bigdatajs1'。

1 个答案:

答案 0 :(得分:0)

通过更改订阅,我可以设法解决此问题