- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我们的部署环境中,我们将有一个通过 ServiceBus 触发的 Azure Function,这非常棒。但对于本地测试,我希望能够利用 following article 中的以下建议:
For all kinds of functions other than HTTP triggers and webhooks, you can test your functions locally by calling an administration endpoint. Calling this endpoint with an HTTP POST request on the local server triggers the function. You can optionally pass test data to the execution in the body of the POST request. This functionality is similar to the Test tab in the Azure portal.
但是,当我向 localhost:7071/admin/functions/NameOfMyFunction
发送请求时,Azure 代码中会引发以下异常:
System.InvalidOperationException: 'No authentication handler is configured to authenticate for the scheme: ArmToken'
对于带有 ServiceBusTrigger
的函数,是否需要在此测试 HTTP 帖子上放置一些身份验证 header ?
最佳答案
For functions with ServiceBusTrigger on them, is there some Authentication header that I need to put on this test HTTP post?
很奇怪你得到这个错误。根据我的测试,不需要为其添加身份验证 header 。我用VS 2017测试了一下,在我这边工作正常。
以下是我的详细步骤,您可以引用:
1.创建一个azure函数应用并添加服务总线触发器。
2.用postman测试
post localhost:7071/admin/functions/{functionName}
body
{"input":"Service Bus Message"}
关于azure - 通过 HTTP 使用 ServiceBusTrigger 调用 Azure 函数会抛出 InvalidOperationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50672496/
我有一个带有部署槽的函数应用程序,用于开发测试(例如 azure/绿色) 其中一个函数设置为绑定(bind)到服务总线队列的 ServiceBusTrigger。 我不希望开发部署槽中的功能被服务总线
我的 Azure 函数项目中有 4 个配置文件,代表 4 个环境。 我有以下代码来根据 ASPNETCORE_ENVIRONMENT 红色特定于环境的文件 var executionC
需要使用我的 Azure Function 的服务总线触发器(主题)定义什么连接? 运行看起来像这样 public static void Run([ServiceBusTrigger("testto
遵循 best practices for reuse of Service Bus factories and clients ,建议复用ServiceBusReceiver。 This great
我正在开发微服务(使用 Azure Function Apps),其中包含基于 ServiceBusTrigger 的 Azure Functions,当消息插入服务总线队列时会触发服务总线队列。 我
根据documentation 、服务总线触发器提供了几个元数据属性。这些属性可以用作其他绑定(bind)中的绑定(bind)表达式的一部分或用作代码中的参数。这些属性是 Message 类的成员。示
我想将项目添加到服务总线主题,然后取消“实时”订阅并发送到实时站点,然后取消“开发”订阅并发送到开发站点。 [FunctionName("AddFoo")] public static async T
根据documentation 、服务总线触发器提供了几个元数据属性。这些属性可以用作其他绑定(bind)中的绑定(bind)表达式的一部分或用作代码中的参数。这些属性是 Message 类的成员。示
我想将项目添加到服务总线主题,然后取消“实时”订阅并发送到实时站点,然后取消“开发”订阅并发送到开发站点。 [FunctionName("AddFoo")] public static async T
我有一个 WebJob,它从事件主题读取消息,处理它们,然后创建关于不同主题的消息。 我可以使用服务总线触发器轻松实现这一点。 public void EventSubscriptionToNotif
我已安装 NuGet 包 Micorosft.Azure.WebJobs.ServiceBus,版本 1.0.1(2015 年 3 月 19 日)。我的 WebJob 被服务总线队列上的新消息完美触发
我有一个解析 ServiceBus 主题订阅的 WebJob。 现在我阅读了几个使用WebJob绑定(bind)机制使代码更简洁的示例。 https://github.com/Azure/azure-
我有一个带有服务总线触发器的 Azure 函数: public static async Task Run([ServiceBusTrigger( "%inputTopicName%",
嘿,我正在使用 ServiceBusTrigger azure 函数来获取队列中收到的消息,然后将它们发送到我的 webapi,该 webapi 将对该内容执行一些操作 [FunctionName("
嘿,我正在使用 ServiceBusTrigger azure 函数来获取队列中收到的消息,然后将它们发送到我的 webapi,该 webapi 将对该内容执行一些操作 [FunctionName("
为什么serviceBus会多次触发同一条消息?相同的触发器由服务总线上的相同消息执行: [FunctionName("ProcessOrderFromServiceBusQueue")]
C# .NET Core Azure Functions v2; Microsoft.Azure.ServiceBus 3.2.0、Microsoft.Azure.WebJobs 3.0.2、Micr
Azure WebJobs SDK 的 ServiceBusTrigger 的有害消息处理如何工作?我希望将已出列超过“x”次的服务总线队列消息推送到不同的 ServiceBus(或)存储队列 在线文
我一直在使用 Azure 存储队列通过 QueueTrigger 属性来提供 WebJob。我将 QueueTrigger 配置为将多个项目出队以进行并发处理,如下所示: public static
直到最近它才似乎随机损坏了。 按照指南操作here我之前已经让信号器和服务总线在本地工作得很好。 似乎在我不改变任何我所知道的情况下就以某种方式破坏了,我的 host.json 在其历史记录中没有差异
我是一名优秀的程序员,十分优秀!