繁体   English   中英

Microsoft Azure Powershell错误-register-AzureProvider

[英]Microsoft Azure Powershell error - register-AzureProvider

这是-> register-AzureProvider的错误

PS C:\\> register-AzureProvider -ProviderNamespace Microsoft.DevTestLab

register-AzureProvider:术语“ register-AzureProvider”未被识别为cmdlet,函数,脚本文件或可运行程序的名称。 检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。 在第1行:char:1 + register-AzureProvider -ProviderNamespace Microsoft.DevTestLab + ~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo:ObjectNotFound:(register-AzureProvider:String )[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException

如果使用的是Azure PowerShell Cmdlet 0.9.8版(或更早版本),则需要首先执行以下操作:

Switch-AzureMode AzureResourceManager

请在此处参考有关Using Azure PowerShell with Azure Resource Manager的文档: https : //azure.microsoft.com/en-in/documentation/articles/powershell-azure-resource-manager/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM