首页 > 解决方案 > 如何将多个新函数触发器发布到现有 Azure Functions App?

问题描述

我有一个带有触发器 (trigger1) 的现有 Azure Function 应用程序。我当前的代码有 5 个触发器。当我使用 Visual Studio 2019 发布到 Function App 时,我可以看到它已成功发布到 Function App 的开发槽。但是当我进入 azure 门户中的函数应用程序时,我看不到新的触发器。可能是什么问题呢?

当我在 VS Cloud Explorer 中查看 dev 槽下的 Function 资源时,我也可以看到那里的文件。

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    <AzureFunctionsVersion>v1</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="EntityFramework" Version="6.2.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.ServiceBus" Version="2.2.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.24" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Business\blankblank.csproj" />
    <ProjectReference Include="..\Types\blank2.csproj" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Microsoft.CSharp" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

标签: functionazurepublish

解决方案


推荐阅读