gpt4 book ai didi

azure - 使用 Azure DevOps 管道自动将 Azure 逻辑工作流迁移到空逻辑应用

转载 作者:行者123 更新时间:2023-12-03 01:58:40 25 4
gpt4 key购买 nike

在我的 Azure 门户中,我在美国东部地区创建了一个空逻辑应用。我创建了一个示例逻辑应用程序工作流程,其中包含 http 请求触发器并初始化变量操作。然后将其下载为 json 文件并删除此逻辑应用程序。现在我的要求是在 azure git repo 中,我必须使用此工作流 json 文件作为源,然后使用 Azure Devops 管道需要部署到该空的逻辑应用程序。在 azure 门户中成功部署后,空逻辑应用应该具有此工作流程。在我的 azure devops 中,我创建了名为 Demo repo 的 git repo 并上传了示例工作流程 json 文件。之后我面临着如何配置管道来实现我的要求的问题。

我最终尝试了什么,

创建了空的logicapp区域,美国东部

使用以下内容创建了 Azure DevOps:敏捷流程并创建演示存储库和上传的示例工作流程。杰森。 enter image description here

将感谢详细的解决方案。谢谢。

enter image description here

enter image description here

enter image description here

最佳答案

After this I am facing issue like how to configure pipeline to achieve my requirement.

为了在 Azure 门户中部署逻辑应用程序文件,您可以在发布管道中使用 ARM 模板部署任务,并选择包含逻辑应用程序工作流程的 LogicApp.json 文件和包含逻辑应用程序工作流程的 LogicApp.parameters.json 文件应用程序参数如下:-

enter image description here

通过单击 ... 3 个点和存储库的正确路径来选择 LogicApp.json 和 LogicApp.parameters.json 文件。在覆盖参数中写入现有逻辑应用程序的名称及其在值中的位置,如下所示:-

覆盖模板参数:-

-logicAppName valleyLA87 -logicAppLocation australiaeast

enter image description here

输出:-

enter image description here

enter image description here

enter image description here

更新:-

我的 Azure 存储库:-

enter image description here

我已从发布管道 ARM 模板部署任务的模板部分中的存储库中选择了上述 LogicApp.json,并在模板参数部分中选择了 LogicApp.parameters.json。

我建议使用发布管道而不是 CI 构建管道,但是您也可以在构建管道中使用以下 YAML 代码 -

trigger:
- master

pool:
vmImage: ubuntu-latest

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- task: AzureResourceManagerTemplateDeployment@3
displayName: 'ARM Template deployment: Resource Group scope'
inputs:
azureResourceManagerConnection: 'SID subscription(xxxxx6e97cb2a7)'
subscriptionId: 'xxxxx-e2b6e97cb2a7'
resourceGroupName: siliconrg54
location: 'Australia East'
csmFile: '$(System.DefaultWorkingDirectory)/_AzureResourceGroup5/AzureResourceGroup5/LogicApp.json'
csmParametersFile: '$(System.DefaultWorkingDirectory)/_AzureResourceGroup5/AzureResourceGroup5/LogicApp.parameters.json'
overrideParameters: '-logicAppName valleyLA87 -logicAppLocation australiaeast'

关于azure - 使用 Azure DevOps 管道自动将 Azure 逻辑工作流迁移到空逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77250036/

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