我正在使用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
我可以输入什么样的价值。 谢谢!