无法使用 Azure Release Pipeline 通过 Azure CLI 命令更新逻辑应用 JSON 文件
我使用 PowerShell 脚本通过 Azure CLI 命令更新逻辑应用 Json 文件,但当我运行本地计算机 PowerShell 脚本时更新有效,但当我在 Azure 管道上运行相同命令时更新无效。
我使用的 Azure CLI 命令:
$ResourceGropName = "devResourceGroup"
$LogicAppName = "logicapps"
$LogicAppFilePath = "C:\test\data\test\logicapps.json"
az logic workflow create --resource-group $ResourceGropName --location "westus" --name
$LogicAppName --definition $LogicAppFilePath
当我通过 auzre 输出管道运行以下 azure cli 查询时,出现此错误。
错误:该命令需要扩展逻辑。由于 tty 不可用,无法确认扩展安装。启用“az config set extension.use_dynamic_install = yes_without_prompt”并允许立即安装扩展。
让任何人知道如何解决此问题。
I update the Logic Apps Json file with the Azure CLI command using the PowerShell script, but the update works when I run the local machine PowerShell script, but it does not work when I run the same command on the Azure pipeline.
The Azure CLI command I used:
$ResourceGropName = "devResourceGroup"
$LogicAppName = "logicapps"
$LogicAppFilePath = "C:\test\data\test\logicapps.json"
az logic workflow create --resource-group $ResourceGropName --location "westus" --name
$LogicAppName --definition $LogicAppFilePath
I get this error when I run the following azure cli query through auzre output pipeline.
Error: The command requires extension logic. Unable to confirm extension installation due to unavailability of tty. Enable 'az config set extension.use_dynamic_install = yes_without_prompt' and allow extensions to be installed immediately.
Let anyone know how to solve this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我过去也遇到过类似的问题。它导致azure cli扩展无法安装(默认安装方法是交互式)。
要解决此问题,需要在 Azure CLI 中添加命令,以在使用 Azure Pipeline 时启用动态安装而无需提示。
例如:
I got similar issues in the past. It causes the azure cli extension to fail to install(The default installation method is interactive).
To solve this issue, you need to add the command in Azure CLI to enable dynamic install without a prompt when you use Azure Pipeline.
For example: