简体   繁体   English

我可以在没有存储帐户的情况下使用带有HTTP触发器的Azure功能吗

[英]Can I have Azure Function with HTTP trigger without Storage Account

I am confused is it possible to have Azure Function with HTTP trigger without Storage Account. 我很困惑是否可以在没有存储帐户的情况下使用带有HTTP触发器的Azure功能。 I saw in msdn this info: "An HTTP trigger doesn't use the Storage account connection. All other trigger types require a valid Storage account connection string." 我在msdn中看到了以下信息:“ HTTP触发器不使用存储帐户连接。所有其他触发器类型都需要有效的存储帐户连接字符串。” But If I try to publish by VisualStudio a project with such Azure Function,Http trigger it still asked me to create a Storage Account. 但是,如果我尝试通过VisualStudio发布具有此类Azure函数的项目,则Http触发器仍会要求我创建一个存储帐户。

But If I try to publish by VisualStudio a project with such Azure Function,Http trigger it still asked me to create a Storage Account. 但是,如果我尝试通过VisualStudio发布具有此类Azure函数的项目,则Http触发器仍会要求我创建一个存储帐户。

When you publishing the Http trigger to azure, it asks you to create the storage account to the Function App, the storage account is required by the Functions runtime. 当您将Http触发器发布到Azure时,它会要求您为Function App创建存储帐户,Functions运行时需要该存储帐户。 See Storage account requirements . 请参阅存储帐户要求

In the official doc : 官方文档中

AzureWebJobsStorage AzureWebJobsStorage

The Azure Functions runtime uses this storage account connection string for all functions except for HTTP triggered functions. Azure函数运行库将此存储帐户连接字符串用于除HTTP触发函数以外的所有函数。

The storage is for Function App runtime not the http trigger, the storage account is also for other thing, like storing logs . 存储用于功能应用程序运行时,而不是http触发器,存储帐户也用于其他用途,例如存储日志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM