小编Tec*_*uru的帖子

通过 ARM 模板对 EndpointType 为 AzureFunction 的主题进行事件订阅

我正在尝试使用"endpointType": "AzureFunction"创建事件网格主题订阅。它给出以下错误:-

"error": { "code": "InvalidRequest", "message": "无效的事件订阅请求:提供的 URL 无效。它不能为 null 或为空,并且应该是正确的 HTTPS URL,例如https://www.example。 com。” }

我的 ARM 模板如下:-

{
      "name": "[concat(variables('eventGridTopicName'), '/Microsoft.EventGrid/', variables('myFuncName'))]",
      "type": "Microsoft.EventGrid/topics/providers/eventSubscriptions",
      "apiVersion": "2019-01-01",
      "location": "[parameters('location')]",
      "properties": {
        "topic": "[concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('resourceGroupName'), '/providers/Microsoft.EventGrid/topics/', variables('eventGridTopicName'))]",
        "destination": {
          "endpointType": "AzureFunction",
          "properties": {
            "resourceId": "[resourceId('Microsoft.Web/sites/functions/', variables('funcAppName'), variables('myFuncName'))]",
            "maxEventsPerBatch": 1,
            "preferredBatchSizeInKilobytes": 64
          }
        },
        "filter": {
          "advancedFilters": [
            {
              "operatorType": "StringIn",
              "key": "eventType",
              "values": [
                "xyzEvent"
              ]
            },
            {
              "operatorType": "StringIn",
              "key": "subject",
              "values": [
                "xyzEventReceived"
              ] …
Run Code Online (Sandbox Code Playgroud)

azure azure-resource-manager azure-rm-template azure-functions azure-eventgrid

5
推荐指数
1
解决办法
4685
查看次数

Azure Linux Web 应用程序-读取目录时出现错误 eisdir 非法操作

我的 Linux 应用服务计划上托管的 Web 应用程序出现问题。它是一个静态的 gatsby 站点,在 kubernetes 中运行得非常好。我想在 Azure Web 应用程序(Linux 应用程序服务计划)中运行它,但除了主页之外刷新不起作用。这在我当地也很有效。我的网络应用程序中有以下设置:-

在此输入图像描述

假设我的网站主页 URL 是 abcd.com,当我导航到帮助页面 (abcd.com/help) 时,它工作正常。但是,如果我刷新页面或尝试直接访问 URL,则会出现错误:-“抱歉,请与站点管理员联系以获取错误:EISDIR ..”。我检查了 kudu 控件,可以看到相同的错误。我将 Web 应用程序的 zip 部署文件与 Kubernetes 版本进行了比较,两者看起来相同。我不确定这里的问题是什么。有人可以帮忙吗?

azure reactjs kubernetes azure-app-service-plans azure-web-app-service

5
推荐指数
0
解决办法
1337
查看次数

升级到 Angular 9 后指令不适用于 FormControl

我已经使用指令来启用和禁用表单。这是在一个单独的打字稿文件中。代码如下: -

import { NgControl } from '@angular/forms';
import { Directive, Input } from '@angular/core';

@Directive({
    selector: '[disableControl]'
})
export class DisableControlDirective {
    @Input('disableControl') set disableControl( condition : boolean ) {
        const action = condition ? 'disable' : 'enable';
        this.ngControl.control[action]();
    }
    constructor (private ngControl : NgControl){}
}
Run Code Online (Sandbox Code Playgroud)

HTML:-

<div class="card" *ngIf="commentsFormEnable">
    <div class="card">
      <h3 class="mb-0">
        <button class="btn  btn-primary btn-sm" aria-expanded="false">
          Comments
        </button>
      </h3>
      <form [formGroup]="commentsForm" data-target="comments" id="commentsForm" (ngSubmit)="onSubmit($event)">
        <div class="row">
          <div class="col">
            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span class="input-group-text">Comments</span>
              </div> …
Run Code Online (Sandbox Code Playgroud)

angular-directive angular angular9

2
推荐指数
1
解决办法
3090
查看次数