在 AZ CLI 逻辑扩展中如何使用集成服务环境参数
In AZ CLI logic extension how to use integration service environment parameter
我们有一种情况想要自动创建和更新逻辑应用程序。我们正在编写一个 powershell 来自动化部署。
我们正在尝试在我们的集成服务环境中部署逻辑应用。
我们如何使用 --integration-service-environment 参数?
我们在网络上找不到任何示例,也找不到有用的文档。
在我们的 powershell 中,最后一行如下:
az logic workflow create --resource-group $resgrp --integration-service-environment $iseName --location $location --name $logicappname --definition $appTemplatePath --state $state
这让我们 usage error: --integration-service-environment [KEY=VALUE ...]
帮忙?
您应该使用 'id= <Resource id>'
作为 --integration-service-environment
的参数值
资源 ID 通常在门户中找到。
试试下面的代码片段
#Your resource id will be in this format
$ise = 'id= /subscriptions/<SUB_ID>/resourceGroups/<RESOURCEgroup>/providers/Microsoft.Logic/integrationServiceEnvironments/<ISE_NAME>'
#your earlier command with modification of the ise value.
az logic workflow create --resource-group $resgrp --name $logicappname --definition $appTemplatePath --location $location --integration-service-environment $ise
注:
确保逻辑应用程序和 ise 的位置相同。
我们有一种情况想要自动创建和更新逻辑应用程序。我们正在编写一个 powershell 来自动化部署。
我们正在尝试在我们的集成服务环境中部署逻辑应用。
我们如何使用 --integration-service-environment 参数? 我们在网络上找不到任何示例,也找不到有用的文档。
在我们的 powershell 中,最后一行如下:
az logic workflow create --resource-group $resgrp --integration-service-environment $iseName --location $location --name $logicappname --definition $appTemplatePath --state $state
这让我们 usage error: --integration-service-environment [KEY=VALUE ...]
帮忙?
您应该使用 'id= <Resource id>'
作为 --integration-service-environment
资源 ID 通常在门户中找到。
试试下面的代码片段
#Your resource id will be in this format
$ise = 'id= /subscriptions/<SUB_ID>/resourceGroups/<RESOURCEgroup>/providers/Microsoft.Logic/integrationServiceEnvironments/<ISE_NAME>'
#your earlier command with modification of the ise value.
az logic workflow create --resource-group $resgrp --name $logicappname --definition $appTemplatePath --location $location --integration-service-environment $ise
注:
确保逻辑应用程序和 ise 的位置相同。