gpt4 book ai didi

Azure 自动化 Powershell

转载 作者:行者123 更新时间:2023-12-02 23:46:17 29 4
gpt4 key购买 nike

我尝试从 azure 自动化 run book power shell 自动检索 azure SQL 数据库中的数据。我发现azure自动化帐户的模块中缺少SQL Server模块。我已经导入了该模块。但该命令仍然不起作用。

SQL Server 模块已导入到 Azure 自动化运行手册中。我已附上下面的模块图像。 enter image description here

但是当我从 azure 自动化运行手册测试 Pane 运行命令“Invoke-Sqlcmd”时,它会抛出以下错误。 https://imgur.com/xRzBQZe

最佳答案

如果我从模块库导入默认的 SqlServer 版本(21.0.17224),我也可以重现您提到的问题。

The term 'Invoke-Sqlcmd' is not recognized as the name of a cmdlet

请尝试使用SqlServer 21.0.17199 ,它在我这边工作正常。

enter image description here

关于Azure 自动化 Powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49484675/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com