" New-AzureRmWebApp“在TFS“天蓝色电源外壳"中无法正常工作任务 [英] " New-AzureRmWebApp " is not working in TFS "azure power shell" task

查看:134
本文介绍了" New-AzureRmWebApp“在TFS“天蓝色电源外壳"中无法正常工作任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我们正在使用脚本"New-AzureRmWebApp"来自"AzureRM.Websites"当我们从Powershell控件执行时,module.it工作正常.但是当我尝试执行"New-AzureRmWebApp"时,从 TFS使用azure powershell任务,出现以下错误.

" ## [错误]未找到方法:'System.String Microsoft.Azure.Management.WebSites.Models.Site.get_ResourceGroup()'."

在此先感谢

Hi all,
we are using script "New-AzureRmWebApp" from "AzureRM.Websites" module.it is working fine when we are executing from powershell control.but when i am trying to execute "New-AzureRmWebApp" from TFS using azure powershell task ,i am getting the below error .

"##[error]Method not found: 'System.String Microsoft.Azure.Management.WebSites.Models.Site.get_ResourceGroup()'."

Thanks in advance

推荐答案

Make sure you have installed the all modules of Azure and AzureRm. You can run Get-Module -ListAvailable to get this information. If all modules not installed, you can try below commands to uninstall and reinstall the modules. See if this helps.

uninstall-module AzureRM

  uninstall-module Azure

  install-module Azure

  (Choose ALL)

  install-module AzureRM

  (Choose ALL)

------------------------- -------------------------------------------------- --------------------

如果此答案有帮助,请单击标记为答案"或投票.要提供有关您的论坛体验的其他反馈,请单击

这篇关于" New-AzureRmWebApp“在TFS“天蓝色电源外壳"中无法正常工作任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆