使用IIS托管的Azure网站执行PowerShell时出错

时间:2016-08-24 10:29:42

标签: powershell azure-powershell

我正在为PowerShell

执行以下Azure命令
Get-AzureRmStorageAccountNameAvailability -Name '@Name' 

来自IIS下托管的网站,但收到此错误。

The 'Get-AzureRmStorageAccountNameAvailability' command was found in the module 
'AzureRM.Storage', but the module could not be loaded. For more information, 
run 'Import-Module AzureRM.Storage'."

我也在类的构造函数中运行Import-Module但它仍然失败。我的IIS应用程序池具有管理员权限。

0 个答案:

没有答案