从门户创建逻辑应用程序时出现以下错误。
“创建存储文件共享失败,原因是:‘远程服务器返回错误:(403) 禁止。’。请检查存储帐户是否可访问。”
在选择初始逻辑应用配置时,我选择一个现有存储帐户,该帐户应允许从 azure 可信服务进行访问(配置如下)。
如果存储帐户中定义了专用终结点(如下图所示),但又未定义专用终结点,则此操作将会失败。由于“允许 Azure 可信服务”设置已打开,我相信这些不应禁止公共流量,并且可信服务应该能够通过 Azure 主干网与存储帐户进行通信。正确的?
但假设 Azure 资源管理器不是受信任的 Azure 服务,我将 Azure 资源管理器IP 地址列入白名单,结果仍然相同。
知道这里可能存在什么问题吗?
我想通过Azure Logic App获取ADP客户端的令牌信息。我拥有 ADP 的客户端证书,因此我决定使用逻辑应用程序中的 HTTP 触发器并选择身份验证类型“客户端证书”。由于我无法直接在逻辑应用程序中使用证书,因此我将证书转换为 base64Encoded .pfx 格式,并且证书没有任何密码。以下是请求的示例代码
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"HTTP": {
"inputs": {
"authentication": {
"pfx": "convertedbase64string",
"type": "ClientCertificate"
},
"body": "grant_type=client_credentials&client_id=ClientId&client_secret=client_secret",
"headers": {
"content-type": "application/x-www-form-urlencoded"
},
"method": "POST",
"uri": "https://accounts.adp.com/auth/oauth/v2/token"
},
"recurrence": {
"frequency": "Month",
"interval": 15
},
"type": "Http"
}
}
},
"kind": "Stateful"
}
Run Code Online (Sandbox Code Playgroud)
上面的请求返回了错误的请求,任何人都可以帮助我这里出了什么问题吗?
For converting into base64 I used below steps in power shell
$pfx_cert = get-content 'C:\sample\adpcertificate.pfx' -Encoding Byte
$output …Run Code Online (Sandbox Code Playgroud) 我有一个HTTP侦听器,我正在发送一个JSON帖子体.
{
"recipient":"bob@example.com",
"subject":"this is a test subject",
"body":"this is a test body email"
}
Run Code Online (Sandbox Code Playgroud)
我试图在下一个流程中提取这些单独的参数,但它会出错!
我希望实现的结果是将"bob@example.com"作为下一个操作的输入
我尝试过类似的东西
"@{triggers().outputs.body.Content.recipient}"
Run Code Online (Sandbox Code Playgroud)
和各种变化,但我怀疑我错过了什么!
编辑添加
我目前正在通过Powershell发送帖子请求,尽管它最终会超过c#
$a = @"
{"recipient":"bob@example.com","subject":"this is a test subject","body":"this is a test body email"}
"@
Invoke-WebRequest -Uri https://httplistenerc743421edf234899a1315aa38c6398bc.azurewebsites.net/listen -Method POST -Body $a
Run Code Online (Sandbox Code Playgroud) 我已经设置了一个逻辑应用程序来将我的FTP服务器上的新文件移动到我的azure存储容器中,该容器具有我的文件的blob.我找到了一种使用存储资源管理器创建新文件夹的方法,但有没有办法可以使用逻辑应用程序自动执行此操作?例如,如果在我的FTP中创建了一个新文件夹并添加了文件,我想创建一个blob文件夹并将这些文件移动到该blob中.
是否可以在使用 Azure 逻辑应用程序时将 HTTP 请求(第一步)的响应保存到 Blob 存储(第二步)中。
谢谢你。
我在下面有从外部实体收到的 JSON。如您所见,requestbody参数显示为string即使它是 JSON。那么我该如何转义它以便我可以正确地解析它下游呢?
{
"emailaddress": "174181@mycomp.com",
"requestbody": "{\"Id\":\"57518139-687c-4223-b08b-342f4ff426ca\",\"Properties\":{\"PrincipalId\":\"d701e7aa-5a0a-4c4a-81be-4c4b7a3967ce\",\"RoleDefinitionId\":\"/subscriptions/64ba3e4c-45e3-4d55-8132-6731cf25547f/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635\",\"Scope\":\"/subscriptions/64ba3e4c-45e3-4d55-8132-6731cf25547f\"}}"
}
Run Code Online (Sandbox Code Playgroud) 所以我正在尝试创建一个 Azure 逻辑应用程序,它将在 Cosmos DB 集合中创建一个新记录来存储审查结果。
我创建了一个 Cosmos DB 数据库(称为icecream)+ 集合(称为reviews)。reviews集合的 PartitionKey是/flavorIdentifier。
代码看起来像这样。
"Create_review": {
"inputs": {
"body": {
"flavor": "@{body('JSON_parseren_2')?['flavor']}",
"flavorIdentifier": "@{body('JSON_parseren')?['itemOrdered']}",
"id": "@{guid()}",
"review": "@{body('E-mail_met_opties_verzenden')?['SelectedOption']}"
},
"headers": {
"x-ms-documentdb-raw-partitionkey": "@body('JSON_parseren')?['itemOrdered']"
},
"host": {
"connection": {
"name": "@parameters('$connections')['documentdb']['connectionId']"
}
},
"method": "post",
"path": "/dbs/@{encodeURIComponent('icecream')}/colls/@{encodeURIComponent('reviews')}/docs"
},
"runAfter": {
"E-mail_met_opties_verzenden": [
"Succeeded"
]
},
"type": "ApiConnection"
},
Run Code Online (Sandbox Code Playgroud)
所以,我将消息发布到 Cosmos DB
{
"flavor": "My flavor",
"flavorIdentifier": "3",
"id": "4927042a-faa1-4e09-9c6d-d038ef659b25",
"review": "Very satisfied"
} …Run Code Online (Sandbox Code Playgroud) I understand that Azure Functions are potentially open endpoints on the internet if I read Microsoft’s documentation correctly and per conversations with a friend who has some experience working with web development paradigms that Azure Functions leverages. A cursory reading of security forums and stack overflow questions on the topic leads me to understand at least a couple options of securing them namely
Context/ What does my Azure …
security azure azure-active-directory azure-logic-apps azure-functions
我正在使用逻辑应用程序创建一个 webhook(在日志搜索警报中使用),然后将警报负载推到松弛状态。我正在尝试将警报有效负载数据(以松弛)一个 url 发送到实际警报详细信息页面,而不是使用内置字段linkToSearchResults,因为该 url 很大,因为我的查询很长。我本质上想要一个友好的 url,类似于 azure 用于在 Azure Monitor 中查看警报的电子邮件模板中提供的 url 。我无法找到将这个链接放在一起的方法,我知道我可以在我的网络钩子的警报上使用自定义 json 有效负载,但是我将如何生成这个友好的 url?
我有以下 json 数组输入 -
"results": [
{ "tableName" : "ABC","id":"11"},
{ "tableName" : "ZX","id":"11"},
{ "tableName" : "ABC","id":"11"}
]}
Run Code Online (Sandbox Code Playgroud)
在逻辑应用程序中,我使用了 `` inFor_each我能够成功附加字符串,但如何避免添加已经存在的字符串?就像上面的例子,我当前的输出是 -
ABC,ZX,ABC
我想要 -ABC,ZX
