简体   繁体   中英

In AZ CLI logic extension how to use integration service environment parameter

We have a situation where we want to automate the logic app creation and update. We are writing a powershell to automate the deployment.

We are trying to deploy the logic app in our integration service environment.

How do we use the --integration-service-environment parameter? we cannot find any example on the web nor useful documentation.

In our powershell, we have the last line as follow:

az logic workflow create --resource-group $resgrp --integration-service-environment $iseName --location $location --name $logicappname --definition $appTemplatePath --state $state

This gets us usage error: --integration-service-environment [KEY=VALUE...]

Help?

You should use 'id= <Resource id>' as the parameter value for --integration-service-environment

The resource id is usually found in the portal.

在此处输入图像描述

Try the below snippet

#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

Note:

Ensure,location of the logic app and ise are the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM