创建一个vpn Azure

时间:2017-02-15 21:15:38

标签: azure vpn azure-powershell

当我在这行代码中输入相应的信息时出现问题。我的目的是创建一个vpn

$rgName = "<your new resource group name >"
$locName = "<the location of your new resource group>"
$saName = "<storage account name>"
New-AzureRMStorageAccount -Name $saName -ResourceGroupName $rgName -Type
Standard_LRS -lOCATION $locName 
  

New-AzureRmStorageAccount:缺少参数的参数   &#39; SkuName&#39 ;.指定类型为&#39; System.String&#39;的参数。然后再试一次。   在行:4 char:68   + ... -AzureRMStorageAccount -Name $ saName -ResourceGroupName $ rgName -Type   + ~~~~~       + CategoryInfo:InvalidArgument:(:) [New-AzureRmStorageAccount],ParameterBindingException       + FullyQualifiedErrorId:MissingArgument,Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand

     

Standard_LRS:术语&#39; Standard_LRS&#39;不被识别为名称   cmdlet,函数,脚本文件或可操作程序。检查   拼写名称,或者如果包含路径,请验证路径   是正确的,然后再试一次。在行:5 char:1   + Standard_LRS -lOCATION $ locName   + ~~~~~~~~~~~~       + CategoryInfo:ObjectNotFound:(Standard_LRS:String)[],CommandNotFoundException       + FullyQualifiedErrorId:CommandNotFoundException

1 个答案:

答案 0 :(得分:0)

根据错误消息,请尝试使用&#34;&#34;,如

PS C:\>New-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount" -Location "US West" -Type "Standard_GRS"

更多信息请参阅link