azure-logic-apps

Azure API Management vs Logic Apps

久未见 提交于 2020-03-03 11:43:46
问题 New to Azure and would like to know what the difference between Azure API Management and Logic Apps is. Some pros and cons would be nice. Also what the costing for each of these is like. Thanks 回答1: Seems you want to know about Azure API Management and Azure Logic Apps Well let me help you what that actually are... Azure API Management Azure API Management allows organizations to publish APIs more securely, reliably, and at scale. Use API Management to drive API consumption among internal

how to create new json object using compose connector in logic app without change in order?

你说的曾经没有我的故事 提交于 2020-02-02 17:44:12
问题 I have logic app and created a json payload into compose connector but after save it is coming as asc order How can I maintain a order original json is - { "mainId":"2323", "address":"DC" } But after save this it automatically coming it as - { "address":"DC", "mainId":"2323" } 回答1: If you just compose the data, it will show asc order cause JavaScript JSON libraries default to alphabetical ordering of properties. So this is an expected behaviour that shouldn't have side effects if you stick to

how to create new json object using compose connector in logic app without change in order?

ε祈祈猫儿з 提交于 2020-02-02 17:43:08
问题 I have logic app and created a json payload into compose connector but after save it is coming as asc order How can I maintain a order original json is - { "mainId":"2323", "address":"DC" } But after save this it automatically coming it as - { "address":"DC", "mainId":"2323" } 回答1: If you just compose the data, it will show asc order cause JavaScript JSON libraries default to alphabetical ordering of properties. So this is an expected behaviour that shouldn't have side effects if you stick to

how to create new json object using compose connector in logic app without change in order?

拟墨画扇 提交于 2020-02-02 17:41:12
问题 I have logic app and created a json payload into compose connector but after save it is coming as asc order How can I maintain a order original json is - { "mainId":"2323", "address":"DC" } But after save this it automatically coming it as - { "address":"DC", "mainId":"2323" } 回答1: If you just compose the data, it will show asc order cause JavaScript JSON libraries default to alphabetical ordering of properties. So this is an expected behaviour that shouldn't have side effects if you stick to

Azure Logic Apps: how to run Powershell script or Azure CLI?

懵懂的女人 提交于 2020-01-30 08:05:26
问题 I'm building my Azure Logic Apps worklow which is supposed to check some conditions and run following Powershell: Stop-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob Start-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob -JobType Continuous The question is: what's the easiest way to invoke such script in Azure Logic Apps? It seems like there's no built in block/connector for Powershell so I'd like to know what are the possibilites. Or perhaps it might be easier to run az CLI command with

How to store all Azure AD user group members in an array using a logic app

孤者浪人 提交于 2020-01-25 08:16:14
问题 I am working on a logic app that will create users in third party applications based on AAD group membership. To avoid issues when the group has more than 999 users I have implemented paging. I first get the first 50 users, and a NextLink that I call to get the next 50. This loop runs fine. Snippet of logic app When no more nextlink is found, the loop exits. During the loop iterations, I need to store the user information (first name, lastname, UPN etc) in an array so i can process everyone

Nested replace of strings with double quotes in Javascript

寵の児 提交于 2020-01-24 21:51:18
问题 In Logic Apps I have this function which replaces double double quotes with a zero for some strings. How can I replicate this in Javascript? replace(replace(replace(replace(replace(body('HTTP_2'),'"PR_RENT":""','"PR_RENT":0'),'"PR_ID":""','"PR_ID":0'),'"PR_USUM":""','"PR_USUM":0'),'"PR_LEAS":""','"PR_LEAS":0'),'"PR_USER8":""','"PR_USER8":0') I tried this code. ``` var json = workflowContext.actions.HTTP_2.outputs.body if (json.PR_RENT=="\"\"") { json.PR_RENT=0 } if (json.PR_ID=="\"\"") { json

Nested replace of strings with double quotes in Javascript

依然范特西╮ 提交于 2020-01-24 21:50:07
问题 In Logic Apps I have this function which replaces double double quotes with a zero for some strings. How can I replicate this in Javascript? replace(replace(replace(replace(replace(body('HTTP_2'),'"PR_RENT":""','"PR_RENT":0'),'"PR_ID":""','"PR_ID":0'),'"PR_USUM":""','"PR_USUM":0'),'"PR_LEAS":""','"PR_LEAS":0'),'"PR_USER8":""','"PR_USER8":0') I tried this code. ``` var json = workflowContext.actions.HTTP_2.outputs.body if (json.PR_RENT=="\"\"") { json.PR_RENT=0 } if (json.PR_ID=="\"\"") { json

How to find Audience field for Active Directory OAuth Authentication? (How to send a post request to DevOps from Azure Logic App?)

被刻印的时光 ゝ 提交于 2020-01-24 09:38:24
问题 Please help me with this problem. I'm trying to send a post request from Azure Logic App to the DevOps to create a release. I created an http action in my Logic App, This is the uri for creating a release: https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases?api-version=5.0 I'm using Active Directory OAuth for authentication, which I need to provide tenant, client id, audience and secret. I'm using tenant, client id and secret of my application in Azure Active Directory,

Trigger Azure Function by inserting (adding) new row into table, SQL Server Database

非 Y 不嫁゛ 提交于 2020-01-24 09:34:27
问题 Is it possible to trigger Azure Function by inserting new row into table (using SQL Server Database). Or, is it possible create Logic App to inform us, in case of new record has been added into table, SQL Server database (e.g once the new record is added to send new info email) 回答1: You can use Azure Event Grid as stated on this article "Extend existing workflows by triggering a Logic App once there is a new record in your database". You can also create a Logic App to poll the table and add