我正在尝试从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'。
答案 0 :(得分:0)
通过更改订阅,我可以设法解决此问题