是否可以通过编程方式为 Azure 函数创建连接字符串?

Is it possible to create a connection string for an Azure function programmatically?

我想知道是否有人知道如何使用 Powershell 脚本将连接字符串添加到 Azure 函数?可能与此类似:

az functionapp config appsettings set --name FunctionName --resource-group MyResourceGroup --settings "ConnectionStrings=connection_value_here"

此命令确实创建了一个应用程序设置。我没能找到类似的连接。

TIA

其实我找到了一个更简单的解决方案:

az webapp config connection-string set -g "$ResourceGroup" -n "$FunctionAppName" -t custom --settings SchedulerServiceBusConnection="$FunctionConnectionString"

只需替换引号中的值即可。