admin管理员组文章数量:1392073
I'm trying to use VS Code for developing a logic app that uses service bus trigger. When creating the connection can we use Managed identity in local that would use my creds similar to the Default Credentials using my token in case of Visual Studio in case of Azure Functions? I've contributor access on the service bus but still getting an error on VS Code.
This is Standard Logic app extension that I've used and want to develop the Single tenant Std Logic App
I'm trying to use VS Code for developing a logic app that uses service bus trigger. When creating the connection can we use Managed identity in local that would use my creds similar to the Default Credentials using my token in case of Visual Studio in case of Azure Functions? I've contributor access on the service bus but still getting an error on VS Code.
This is Standard Logic app extension that I've used and want to develop the Single tenant Std Logic App
Share Improve this question asked Mar 11 at 16:47 aravindaravind 151 silver badge4 bronze badges 1 |1 Answer
Reset to default 0Using Managed Identity in Visual Studio Code for Connection to Service Bus in Azure Logic App Standard
Logic Apps do not support using Managed Identity locally the same way Azure Functions do with DefaultAzureCredential
.
Thanks @ARINCO for his clear explanation.
The Visual Studio Code extension only supports Connection String
or Azure AD OAuth
authentication for Logic Apps. However, after deploying to Azure, we can use Managed Identity for connecting Service Bus.
To manage authentication both locally and Azure for connecting logic app to Azure Service bus use parameters.json
or connection.json
file to parameterize your app so that the app uses connection string for auth locally and then have Managed Identity After deploying to Azure.
For local development, set AzureWebJobsServiceBus
in local.settings.json
with a Service Bus connection string
.
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsServiceBus": "Endpoint=sb://your-servicebus.servicebus.windows/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=your-key"
}
}
Refer this MS Doc for Managed Identity After Deployment.
本文标签:
版权声明:本文标题:Using Managed Identity in Visual Studio Code for Connection to Service Bus in Azure Logic App Standard - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744781504a2624743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
DefaultAzureCredential
. – Aslesha Kantamsetti Commented Mar 12 at 6:02