Azure Dev Ops:术语“Publish-AzWebApp”未被识别为托管VS2017的cmdlet的名称 [英] Azure Dev Ops: The term 'Publish-AzWebApp' is not recognized as the name of a cmdlet Hosted VS2017

查看:71
本文介绍了Azure Dev Ops:术语“Publish-AzWebApp”未被识别为托管VS2017的cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Guys,

   在azure dev ops中,我正在创建一个使用VS2017和Az模块(不是AzureRM)的发布管道。 除了Publish-AzWebApp,我可以使用我需要的所有命令。 它声明它不被识别为cmdlet的名称,但是
它确实允许我使用Remove-AzWebApp,Get-AzWebApp等。 

    In azure dev ops, I'm creating a release pipeline that uses VS2017 and the Az modules (not AzureRM).  I can use all the commands I need except Publish-AzWebApp.  It states that its not recognized as the name of a cmdlet, but it does let me use Remove-AzWebApp, Get-AzWebApp, etc. 

   我需要使用此命令,因为我们无法从任务内部将变量写回到作业,我们正在使用动态名称来启动这些计算机。 

    I need to use this command because we can't write back variables to a job from inside a task, and we're spinning these machines up with dynamic names. 

   我正在使用Hosted VS2017代理,因为这似乎是唯一允许我们使用Az模块的池。

    I'm using the Hosted VS2017 agents, since this seems to be the only pool which allows us to use the Az modules.

   这里有什么解决方案?我试图避免在构建过程中设置FTP,然后通过ftp手动复制工件。 

    What is the solution here? I'm trying to avoid setting up FTP during the build process, then manually copying the artifacts over through ftp. 

推荐答案

为此延迟道歉!您可以分享-verbose日志来获取有关错误的更多详细信息吗?此外,您可以使用

自定义代理商
,看看这是否有助于您的要求。

Apologies for the delay here! Could you please share the -verbose logs to fetch more details on the error? Also, you could leverage custom agents and see if that helps your requirement.


这篇关于Azure Dev Ops:术语“Publish-AzWebApp”未被识别为托管VS2017的cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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