logicapps | Azure Logic Apps labs , samples , and tools | Azure library
kandi X-RAY | logicapps Summary
kandi X-RAY | logicapps Summary
If you have questions about Logic Apps, please visit Microsoft Q&A. If you have feedback regarding Logic Apps, such as suggestions for features or other observations, please visit feedback.azure.com.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of logicapps
logicapps Key Features
logicapps Examples and Code Snippets
Community Discussions
Trending Discussions on logicapps
QUESTION
I am trying to enable diagnostic settings for all app services in a particular subscription but i am getting this error ERROR: Expecting value: line 1 column 2 (char 1)
. I am not sure this error is from a JSON response or something is wrong in my shell script.
ANSWER
Answered 2021-Jun-02 at 02:23According to my test, we need to remove the space. The son should be like $logs='[{\"category\":\"AppServiceAntivirusScanAuditLogs\",\"retentionPolicy\":{\"days\":0,\"enabled\":false},\"enabled\":true}]'
.
For example( I test in powershell)
QUESTION
What would be the best scenario to cleanup a (test) Azure Subscription on weekly basis? Deletion of Resource Groups entirely.
Could be DevOPS, LogicApps, PowerShell, other?
Is there an example out there?
Thank you!
...ANSWER
Answered 2021-May-07 at 07:56For this requirement, you can create an automation account in your azure. Then create a runbook and use the powershell like below to delete the resource groups:
QUESTION
Greeting for the day I am using Logicapps(preview) version and I want save my workflow's trigger history in a database table. So, is there any way to do that?
...ANSWER
Answered 2021-Mar-12 at 06:311. You can use this Rest API to get a list of workflow trigger histories, and then store them to Table.
https://docs.microsoft.com/en-us/rest/api/logic/workflowtriggerhistories/list
2. You can enable Diagnostic settings
select Diagnostic settings
> Add diagnostic setting
.
Send the running log of Azure logic app to storage.
Wait for about twenty minutes, you can get the corresponding log information in the container.
Finally, you can get the corresponding information from the container and save it to the database table.
QUESTION
There is limit of 1000 LogicApps workflows per region per subscription. Is the limit on the number of workflows we can create or the limit is on the number of running instances of the workflow?
...ANSWER
Answered 2021-Mar-11 at 06:461000 is the number of Azure logic apps
you can create instead of instances.
Because a single Azure Logic App Workflow
will have many instances running at the same time, it is unreasonable if only 1000 instances can be run at most.
QUESTION
I have a LogicApp that sends out an Approval Email. If there is no response within 24 hours I want to automatically approve it and continue with the workflow. The LogicApp currently stays stuck on the 'Send Approval Email' waiting for a reply.
How do I automatically approve the email after 24 hours within the LogicApps?
...ANSWER
Answered 2021-Jan-25 at 06:15As far as I know, Azure Logic App does not have actions that can automatically approve your approval email.
But you can handle the follow-up actions after 24 hours, regardless of whether the email is approved or not. One solution is to set the timeout for Send approval email
action.
You can first click ···
in the upper right corner, and then click Settings
:
The values you can use for this setting are a duration in ISO 8601 format. Below you can find some examples:
QUESTION
Is it possible to create a logicapp that monitors a specific vm and sends an e-mail notification on poweroff/poweron or CPU usage % for example?
I've read into Event Grid, but it seems to cater more towards resource creation/deletion notifications rather than specific vm signals.
I also understand it would be possible to just add an alert on the vm, however these alerts don't seem to be customizable and we need to be able to customize the e-mail to send, something I know is possible to do with logicapps.
Thanks in advance!
ANSWER
Answered 2021-Jan-08 at 01:34For this requirement, you can do it just by alert. But when you create action group in alert rule, do not chooose send email under "Notification" tab as below screenshot.
Instead, choose "Logic App" under "Actions" tab as below screenshot shown and choose a logic app which you already created(with "When a HTTP request is received" trigger).
The logic app with "When a HTTP request is received" trigger should be like: Then you can customize the email in logic app "Send an email(V2)" action
QUESTION
After one month of successful mapping our template gives different results with no change in the process. Xml fragment is as follows:
...ANSWER
Answered 2020-Jul-17 at 02:06It seems where Role
in liquid doesn't work. I'm not sure if it work in the past, but I usually convert the xml to json first and then convert json to json if I want to implement this requirement. I provide my solution below for your reference:
1. I initialize a variable named xmlString
to store the same xml as your xml data.
2. Then I initialize another variable named jsonString
and input an expression into its value box (to convert the xml to json).
3. After that, parse the jsonString
by "Parse JSON" action
4. At last, use "Transform JSON to JSON" to transform the jsonString
to the format you want.
My liquid map is:
QUESTION
I am facing issue of re-authentication and authorization issue into logic app deployment using ARM template. I have found several solutions but none of them worked for me. Actually my requirement is slightly different, which I am writing below.
Introduction
We are working for our client and our client do not have office365 complete subscription. We had introduced solution to my client with logic apps.
We have several logic apps in that we are using office365 connectors for notification and upload data on SharePoint, these connector are authenticated with my organization's credentials while this entire logic app is deployed at my client's Azure Cloud. In brief, these logic apps are hybrid logic apps which means logic apps have office365 connector of my company and this logic app deployed in client's Azure cloud environment.
Issue
We are facing issue whenever we deploy logic app's arm template, logic apps ask for the authentication for office365 steps.
I followed following documentations and solutions but didn't worked for me due to hybrid solution.
- https://www.bruttin.com/2017/06/13/deploy-logic-app-with-arm.html
- https://social.msdn.microsoft.com/Forums/en-US/7a9e8ebe-3438-4916-8041-2058fcdc1e31/arm-resource-manager-template-connection-parameters-for-oauth-googlesheet-managed-api?forum=azurelogicapps
- https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-resource-manager-templates-overview#authenticate-connections
- Azure Logic App with SharePoint Connection
- ARM template Office 365 connection for logic apps
- https://blogs.msdn.microsoft.com/logicapps/2016/02/23/deploying-in-the-logic-apps-preview-refresh/
- http://blog.davidebbo.com/2015/01/azure-resource-manager-client.html
- Azure Logic App - Office365 connection creation by ARM template
- https://github.com/logicappsio/LogicAppConnectionAuth (For authorize to a connection, but it authorize if and only if it is internal or external cloud)
- How to deploy Logic App with o365 Connector within ARM template
After hit and try above solutions, I come to know all solutions are correct but it wouldn't work in my case because I am using hybrid connection in a logic app. There are couple of questions also
When MFA enabled. do I need manual authentication in logic app every time after deployment?
When I deploy the arm template via DevOps and perform execution of the logic app then connection says unauthorize and give me following error.
{ "error_description": "Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown." }
Please let me know if anyone has a solution of this issue.
...ANSWER
Answered 2020-Aug-26 at 10:53If the execution is failing for the share point online connector, in PowerAutomate or LogicApps scenario, connection is created before it is possible to know what tenant user is going to access so the only option defaults to the user’s home tenant as today. By default, the token generated for authentication will correspond to user’s root site – both audience and tenantId. Later, connector can exchange the token for different audience (for X-Geo scenarios) but tenantId will remain same. That is how it works today and there is no workaround. As of now, there is no way to access non-home tenants from PowerAutomate/LogicApps. We are currently taking this up with the concerned team to check we can get this added in the document
QUESTION
I am having a difficult time getting a Microsoft Graph API call to work. Specifically, I am having a hard time with the authentication process working. I followed the directions in this article
http://martink.me/articles/using-microsoft-graph-in-logic-apps
However, when I make the api call of https://graph.microsoft.com/v1.0/me/messages/{id}, I get the error:
Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user. Acquire a token on behalf of a user to make requests to these endpoints. Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.
I then added an oAuth token call to get a token. Then I used that token in the Authorization header when making the Microsoft Graph Api call. I still get the same error.
Can anyone provide guidance on how best to make an Graph Api call in LogicApps? Do I only need the authentication discussed in the article? Or, do I need to call the Graph Api with an Authorization token? Do I need to make an oAuth authorization call before I make the oAuth token call?
...ANSWER
Answered 2020-Aug-12 at 05:48This exception is caused by the token acquired using the client credentials flow. In this flow, there is no context for /Me.
This type of grant is commonly used for server-to-server interactions that must run in the background, without immediate interaction with a user(no user logged in).
For your problem, you are using client credential flow and you are granting application permissions, so you should request /users.
QUESTION
I'm looking for a way to dynamically choose an ApiConnection in a "SQL GET ROWS" connector (but could be applied to any other connectors of course). As a simple example, I have this workflow:
What I want to achieve is: inside the HTTP request (in the body or as a header) I'm sending "France" => so in the end the connector 'GET ROWS from PostgreSQL table" must target an ApiConnection "P01". If I'm sending "Germany", the connector must target an ApiConnection "P02". And so on.
I was unable to find something that fulfill my needs. I found this link https://social.msdn.microsoft.com/Forums/azure/en-US/22b83226-e7a4-4168-bd31-3547367f4959/choose-api-connection-dynamically-in-logic-app?forum=azurelogicapps but it seems your ApiConnection has to be defined in this part of the LogicApp code below:
Otherwise it won't work :( I even tried to write code below but I met an error:
...ANSWER
Answered 2020-Aug-07 at 07:52The feature is not support now.
You can give your voice to Support Dynamic API connection in Logic app designer and vote up this feedback to prompt the feature to be achieved as soon as possible.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install logicapps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page