Azure functions 使用PowerShell创建无应用程序洞察的Azure函数

Azure functions 使用PowerShell创建无应用程序洞察的Azure函数,azure-functions,azure-powershell,Azure Functions,Azure Powershell,我正在尝试在没有创建/连接Application Insights实例的情况下部署Azure函数。假设使用“DisableApplicationInsights”可以做到这一点: New-AzFunctionApp -ResourceGroupName $ResourceGroupName -Name $FunctionAppName -Runtime $Runtime -StorageAccountName $StorageAccountName -PlanName $AppServicePl

我正在尝试在没有创建/连接Application Insights实例的情况下部署Azure函数。假设使用“DisableApplicationInsights”可以做到这一点:

New-AzFunctionApp -ResourceGroupName $ResourceGroupName -Name $FunctionAppName -Runtime $Runtime -StorageAccountName $StorageAccountName -PlanName $AppServicePlanName -RuntimeVersion $RuntimeVersion -DisableApplicationInsights
但是,它确实创建了Application Insights实例,但没有将其连接到函数。我希望没有创建任何Application Insights实例。不确定它为什么被创建并且没有连接到函数。

目前有一个正在为下一个主要版本准备的待办事项。在此之前,您需要在创建函数后删除已创建的application insights资源

Remove-AzApplicationInsights $ResourceGroupName -Name $FunctionAppName