将Azure CLI脚本转换为Azure Powershell CLI函数

Wei

因为Azure-CLI doesn't support runbook, function, logics,只有天蓝色的powershell可以做到。
因此,如果我要将我的Azure CLI脚本上载到azure,则只需要将azure cli转换为azure powershell。

是否有任何cli函数可以将azure cli脚本转换为azure powershell?例如:
输入somefunction convert-cli-to-powershell 'az group list'
oupout:Get-AzManagementGroup

输入:somefunction convert-cli-to-powershell 'az group show --resource-group system'
oupout:Get-AzManagementGroup -GroupName system

脚本很大时,这是一项繁重的工作。

我尝试过的方法:
现在,我用一只手将cli转换为powershell。

恐怕该工具不存在。您只能手动执行。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

将Powershell Azure命令转换为CLI

在Azure Powershell函数中使用Azure CLI

使用 Azure CLI 命令将本地 bash 脚本迁移到 Azure DevOps 中的 Azure Powershell 任务

Azure CLI vs Powershell?

如何使用Azure CLI将vnet ID转换为变量

Powershell 计数 azure CLI 结果

在PowerShell脚本中使用JSON对象更新Azure Cli变量

Azure CLI可以上传/更新由azure cli和powershell编写的脚本吗?

在Azure Powershell任务中使用Azure CLI

安排Azure CLI脚本

Azure函数CLI中的ServiceBusTrigger?

使用PowerShell和Azure CLI将代码从GitLab存储库部署到Azure Web App

Azure逻辑应用程序:如何运行Powershell脚本或Azure CLI?

如何对Azure CLI使用Powershell splatting

在Powershell中使用Azure CLI创建CosmosDB

Azure CLI\Powershell 如何排除需求

如何通过 Azure powershell 或 Azure CLI 将 html 文件从 Azure VM 传输到本地计算机

通过Azure CLI调用Azure函数

Azure CLI 中用于图像复制扩展扩展的 powershell 中的等效脚本是什么

是否可以将Azure函数转换为Azure Webjob

如何将布尔值传递给 Azure Cli 中的开关参数(如在 powershell 中)?

如何将Powershell Azure函数连接到DocumentDB / CosmosDB

将凭据传递给函数 Azure Powershell 的问题

通过HttpTrigger将值/参数传递给Azure Powershell函数

Azure函数-引用与CLI相同的库

如何从Ansible调用Azure CLI函数

将PowerShell脚本转换为exe

将Shell脚本转换为PowerShell

将PowerShell命令转换为脚本