使用Keyvault for valeus在逻辑应用程序中触发 [英] Using Keyvault for valeus to trigger in logic apps
问题描述
我是azure的新手,并创建了sftp连接,但是硬代码无法使用这些参数,它们存在于keyvault中.那么如何在逻辑应用程序中使用密钥库uri.
Iam new to azure and created a sftp connection, but the parameters are not available to hard code,they are present in keyvault. so How to use key vault uri in logic apps.
请帮助我.
预先感谢.
推荐答案
你好 Azure Key Vault连接器目前不存在,但是我们可以使用REST API通过Key Vault访问 受管身份
Azure Key Vault connector doesn’t exist at this time, but we can access to Key Vault through REST API using Managed Identities in Logic Apps.
schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#" , 操作":{ "HTTP":{ 输入":{ 身份验证":{ 受众":"https://vault.azure.net", 类型":"ManagedServiceIdentity"; }, "method":"GET", 查询":{ "api-version":"2016-10-01"; }, "uri":"https://< yourkeyvault> .vault.azure.net/secrets/< name>"" }, " runAfter":{}, "type":"Http" }, " Parse_JSON" ;: { 输入":{ "content":"@ body('HTTP')", 模式":{ 属性":{ 属性":{ 属性":{ 创建":{ "type":"integer" }, 启用":{ 类型":布尔" }, "recoveryLevel":{ "type":"string" }, 已更新":{ "type":"integer" } }, 类型":对象" }, "id":{ "type":"string" }, 值":{ "type":"string" } }, 类型":对象" } }, " runAfter" ;: { "HTTP":[ 成功";成功". ] }, 类型":"ParseJson" }, 响应":{ 输入":{ " body":"@ body('Parse_JSON')?['value']", "statusCode":200 }, 种类":"http", " runAfter" ;: { " Parse_JSON":[ 成功";成功". ] }, "type":"Response" } }, "contentVersion":"1.0.0.0", 输出":{}, "parameters":{}, 触发器":{ 手册":{ 输入":{ 模式":{} }, "kind":"Http", 类型":请求" } } } }schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "HTTP": { "inputs": { "authentication": { "audience": "https://vault.azure.net", "type": "ManagedServiceIdentity" }, "method": "GET", "queries": { "api-version": "2016-10-01" }, "uri": "https://<yourkeyvault>.vault.azure.net/secrets/<name>" }, "runAfter": {}, "type": "Http" }, "Parse_JSON": { "inputs": { "content": "@body('HTTP')", "schema": { "properties": { "attributes": { "properties": { "created": { "type": "integer" }, "enabled": { "type": "boolean" }, "recoveryLevel": { "type": "string" }, "updated": { "type": "integer" } }, "type": "object" }, "id": { "type": "string" }, "value": { "type": "string" } }, "type": "object" } }, "runAfter": { "HTTP": [ "Succeeded" ] }, "type": "ParseJson" }, "Response": { "inputs": { "body": "@body('Parse_JSON')?['value']", "statusCode": 200 }, "kind": "http", "runAfter": { "Parse_JSON": [ "Succeeded" ] }, "type": "Response" } }, "contentVersion": "1.0.0.0", "outputs": {}, "parameters": {}, "triggers": { "manual": { "inputs": { "schema": {} }, "kind": "Http", "type": "Request" } } } }查看以下博客以供参考:
Checkout the below blogs for reference:
https://www.serverless360.com/blog /managing-secrets-azure-逻辑应用程序中使用托管身份
https://devkimchi.com/2018/10/24/access-key-vault-from-logic-apps-with-managed-identity/ 已开始实施Azure KeyVault连接器的工作.您可以查看 UserVoice .
这篇关于使用Keyvault for valeus在逻辑应用程序中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!