String query = request.getQueryParameters().get("name") HttpRequestMessage> = "msg", queueName = "outqueue",Ĭonnection = "AzureWebJobsStorage") OutputBinding msg,Ĭontext.getLogger().info("Java HTTP trigger processed a request.") Public HttpResponseData HttpResponse, authLevel = AuthorizationLevel.ANONYMOUS) Open the HttpExample.cs project file and add the following MultiResponse class: public class MultiResponse The Run method definition should now look like the following: In this case, you could omit StorageAccountAttribute because you are already using the default storage account. This attribute indicates the setting that contains the Storage account connection string and can be applied at the class, method, or parameter level. The connection string for the Storage account is set by the StorageAccountAttribute. In this case, the output is a storage queue named outqueue. The msg parameter is an ICollector type, which represents a collection of messages that are written to an output binding when the function completes. Open the HttpExample.cs project file and add the following parameter to the Run method definition: ICollector msg, You use the name AzureWebJobsStorage and the connection string in other sections of this article. Open and locate the value named AzureWebJobsStorage, which is the Storage account connection string. func azure functionapp fetch-app-settings This command will overwrite any existing values in the file. By downloading the setting into the file, you can use that connection write to a Storage queue in the same account when running the function locally.įrom the root of the project, run the following command, replacing with the name of your function app from the previous quickstart. The connection string for this account is stored securely in app settings in Azure. Retrieve the Azure Storage connection stringĮarlier, you created an Azure Storage account for use by the function app. If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure. Before you begin, you must complete the article, Quickstart: Create an Azure Functions project from the command line.