Azure New-AzureManagedCache错误:值不能为null

时间:2014-05-15 01:38:45

标签: caching azure

我正在使用Azure PowerShell创建缓存,我使用New-AzureManagedCache -Name test -Location "East Asia" -Sku Standard -Memory 1GB来调用。 shell已呈现错误Value cannot be null

PS C:\> New-AzureManagedCache -Name test -Location "East Asia" -Sku Standard -Memory 1GB
New-AzureManagedCache : Value cannot be null.
Parameter name: subscriptionId
At line:1 char:1
+ New-AzureManagedCache -Name test -Location "East Asia" -Sku Standard -Memory 1GB
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureManagedCache], ArgumentNullException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ManagedCache.NewAzureManagedCache

然后我尝试使用New-AzureManagedCache发现错误发生在-Location变量中。

PS C:\> New-AzureManagedCache

cmdlet New-AzureManagedCache at command pipeline position 1
Supply values for the following parameters:
Name: test
Location: "East Asia"
New-AzureManagedCache : Value cannot be null.
Parameter name: subscriptionId
At line:1 char:1
+ New-AzureManagedCache
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureManagedCache], ArgumentNullException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ManagedCache.NewAzureManagedCache

我可以输入什么样的价值。 谢谢!

0 个答案:

没有答案