azure-functions 相关问题

Azure Functions是一种事件驱动的按需计算体验,它扩展了现有Azure应用程序平台,具有实现由Azure或第三方服务以及本地系统中发生的事件触发的代码的功能。

如何从逻辑应用程序在函数应用程序中传递uri参数

我创建了一个带有 URI 参数的函数应用程序 然后我创建了一个逻辑应用程序,从逻辑应用程序我想调用函数应用程序,但不确定如何在此处传递 URI 参数 我不是...

回答 1 投票 0

发布时未列出 Azure FunctionApp 函数

我有一个在本地运行良好的 Azure Functionapp,但将其发布到 Azure 时遇到问题。 我正在使用 Python v2 编程模型。我的项目文件夹如下所示: 项目文件夹 ├── .

回答 1 投票 0

当我的响应数据是通过 webhook 获取时,如何从 Azure Function 同步响应?

我有一个 HTTP 触发的 Azure 函数(函数 A),用于响应 Webhook。 我现在遇到的问题是,现在在我的 Azure 函数中,我需要调用 API 来获取响应...

回答 1 投票 0

Azure Function App 不会将日志转发到 AppInsight

我遇到了 Azure Function App 未将日志转发到 AppInsight 的问题。我检查了函数应用程序上的文件系统日志,它们工作正常且完整。另外,我确定...

回答 1 投票 0

Azure Function - 创建一个文件夹并在其中存储 csv 文件

我有一个azure函数,应该创建一个文件夹,在其中写入一些csv文件。 这些文件将在进一步的步骤中进行处理,然后文件/文件夹将被删除。 字符串

回答 1 投票 0

具有手动触发器的独立工作线程模型中的 C# Azure 函数

曾经有过这样的情况(在之前的 Azure Functions 进程内模型中),可以使用 [NoAutomaticTrigger] 属性修饰没有输入绑定的函数,然后调用

回答 1 投票 0

如何防止AzureFunction在执行IO操作后退出

我有一个 HttpTrigger AzureFunction 来运行命令行工具 (.exe) 并将输出返回给调用者。 作为该过程设置的一部分,我创建一个目录并复制一些文件;一个直接...

回答 1 投票 0

“系统找不到指定的文件。”发布到 Azure Function 时从 Blob 容器读取时出错

我们面临的问题是,当我们尝试从存储帐户读取文件时,它返回错误“系统找不到指定的文件”。这只有在我们发布后才会发生...

回答 1 投票 0

“Workflows”或“WorkflowTemplates”等类名称未公开

我在 Azure Functions 中遇到一个问题,其中 Workflows 或 WorkflowTemplates 等类名似乎会导致问题。具体来说,这些类中的函数没有被公开或

回答 1 投票 0

使用正确的行对齐方式替换多个文件中的文本使用-powershell.ps1

输出没有得到相同的行对齐替换..但它没有得到相同的对齐(它应该替换3行。但它会进行之字形替换..看起来很难看,有什么帮助吗 输出没有得到相同的行对齐替换..但它没有得到相同的对齐(它应该替换3行。但它会进行之字形替换..看起来很难看,有什么帮助吗 发票 世界 你好 `$configFiles = Get-ChildItem . *.csconfigini -rec foreach ($file in $configFiles) { try { Write-Host "Processing $($file.FullName)" $content = Get-Content $file.PSPath -Raw -ErrorAction Stop if ($content -match "(<BatchReleaseType>datacenter</BatchReleaseType>)") { Write-Host "Match found in $($file.FullName)" $leadingWhitespace = $matches[1] -replace '<String>Invoice</battery>.*', '' $replacement = @" ${leadingWhitespace}<Hello world=""`'$($Apple)'=='Hero'"">Invoice</battery> ${leadingWhitespace} <Sunday>World</Sunday> ${leadingWhitespace} <battery>Hello</battery> "@ $content = $content -replace "<String>Invoice</battery>", $replacement $content | Set-Content $file.PSPath -ErrorAction Stop Write-Host "Replacement done for $($file.FullName)" } else { Write-Host "No match found in $($file.FullName)" } } catch [System.UnauthorizedAccessException] { Write-Host "Skipping file $($file.PSPath) due to permission issue." } catch { Write-Host "Error occurred while processing $($file.PSPath): $_" } } ` 我尝试使用下面的Azure Functions Powershell http trigger代码和替换已成功完成,请参阅下面:- using namespace System.Net # Input bindings are passed in via param block. param($Request, $TriggerMetadata) # Write to the Azure Functions log stream. Write-Host "PowerShell HTTP trigger function processed a request." # Define the PowerShell script $script = @' $configFiles = Get-ChildItem . *.csconfigini -rec foreach ($file in $configFiles) { try { Write-Host "Processing $($file.FullName)" $content = Get-Content $file.PSPath -Raw -ErrorAction Stop if ($content -match "(<BatchReleaseType>datacenter</BatchReleaseType>)") { Write-Host "Match found in $($file.FullName)" $leadingWhitespace = $matches[1] -replace '<String>Invoice</battery>.*', '' $replacement = @" ${leadingWhitespace}<Hello world=""`'$($Apple)'=='Hero'"">Invoice</battery> ${leadingWhitespace} <Sunday>World</Sunday> ${leadingWhitespace} <battery>Hello</battery> "@ $pattern = "<String>Invoice</battery>" $content = $content -replace $pattern, $replacement $content | Set-Content $file.PSPath -ErrorAction Stop Write-Host "Replacement done for $($file.FullName)" } else { Write-Host "No match found in $($file.FullName)" } } catch [System.UnauthorizedAccessException] { Write-Host "Skipping file $($file.PSPath) due to permission issue." } catch { Write-Host "Error occurred while processing $($file.PSPath): $_" } } '@ # Execute the PowerShell script Invoke-Expression $script # Interact with query parameters or the body of the request. $name = $Request.Query.Name if (-not $name) { $name = $Request.Body.Name } $body = "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response." if ($name) { $body = "Hello, $name. This HTTP triggered function executed successfully." } # Associate values to output bindings by calling 'Push-OutputBinding'. Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK Body = $body }) 输出:- 替换内容:- <BatchReleaseType>datacenter</BatchReleaseType> <BatchReleaseType>datacenter</BatchReleaseType><Hello world=""''=='Hero'"">Invoice</battery> <BatchReleaseType>datacenter</BatchReleaseType> <Sunday>World</Sunday> <BatchReleaseType>datacenter</BatchReleaseType> <battery>Hello</battery> <AnotherTag>SomeValue</AnotherTag>

回答 1 投票 0

为什么我的连接字符串通过 ARM 和 CICD 部署为空白?

我的azure函数有一个带有connectionStrings部分的arm模板: ], “连接字符串”:[ { “名称”:“连接字符串”,...

回答 1 投票 0

Azure 函数拒绝作为 .NET 隔离工作线程运行? (例外:Microsoft.Azure.Functions.Worker.FunctionInputConverterException)

我在.NET 4.8中有一个Azure函数(由于WCF而卡在这个框架上)。 该函数正在尝试使用 ServiceBusTrigger 从 Azure Servicebus 接收消息。 我得到一个例外: 无法转换...

回答 1 投票 0

需要在具有开放 API Post 请求的 Azure Function Http 触发器中显示下拉列表

我需要在下面的下拉列表中显示选项 Hostname1、Hostname2 和 Hostname3,但它显示的是选项 0、1 和 2。代码是使用 Open API、.NET 6 的 Azure Function Http Trigger 编写的

回答 1 投票 0

Azure 函数拒绝作为 .NET 隔离工作线程运行?

我在.NET 4.8中有一个Azure函数(由于WCF而卡在这个框架上)。 该函数正在尝试使用 ServiceBusTrigger 从 Azure Servicebus 接收消息。 我得到一个例外: 无法转换...

回答 1 投票 0

我可以通过 Azure Dev Ops Pipeline 将新环境值添加到 Azure Function App 吗?

我有一个 Azure Dev Ops Pipeline,第一次运行部署任务 (AzureFunctionApp@2) 时,会添加并设置环境值,如果我之前在管道中设置了值,则它们是 c...

回答 1 投票 0

无法从程序集“Microsoft.Azure.WebJobs.Host”加载类型“Microsoft.Azure.WebJobs.Host.Scale.ConcurrencyManager”

应用程序位于 Azure Functions 中, 我们从容器 Pod 日志中收到的错误是“无法从程序集“Micr...”加载类型“Microsoft.Azure.WebJobs.Host.Scale.ConcurrencyManager”...

回答 4 投票 0

如何使用按钮颤动来触发函数中的http触发器?

我目前正在azure函数中尝试http触发器。但是,如果我单击 flutter Web 应用程序上的按钮,就会发生触发。我应该使用 REST API 或任何其他方式来执行此操作。 网址...

回答 1 投票 0

使用 Microsoft.Azure.WebJobs.QueueAttribute 迁移 NET 8 隔离进程

我在将 Azure Functions 迁移到 .NET 8 独立进程模型时遇到多个触发错误。我一直在尽我最大的能力进行故障排除,但一直无法找到...

回答 1 投票 0

使用单个虚拟网络集成的多个 Azure 功能应用程序

我在 Azure 上有一个带有 VPN S2S 连接的 VNET,我可以从客户端下载数据。我有一个 IP 范围较小的白名单子网。 我们已经开始使用 Function Apps,但出现了问题

回答 1 投票 0

.NET 8 独立函数在不运行函数代码的情况下触发

我最近使用 .NET 6 创建了一个 Azure Function 应用程序 (BlobTrigger),并且运行良好。然后我决定迁移到 .NET 8 并开始遇到以下问题。我尝试过各种

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.