官术网_书友最值得收藏!

How it works...

Azure Functions allows us to easily integrate with other Azure services just by adding an output binding to the trigger. For this example, we have integrated the HTTP trigger with the Azure Storage table binding and also configured the Azure Storage account by providing the storage connection string and the Azure Storage table name in which we would like to create a record for each of the HTTP requests received by the HTTP trigger.

We have also added an additional parameter for handling the table storage named objUserProfileTable, of type CloudTable, to the Run method. We can perform all the operations on the Azure Table storage using objUserProfileTable.

For the sake of explanation the input parameters are not validated in the code sample. However, in your production environment, it's important that you should validate them before storing in in any kind of persist medium.

We have also created an object of UserProfile, and filled it with the values received in the request object, and then passed it to a table operation. You can learn more about handling operations on Azure Table storage service from the URL https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-tables.

主站蜘蛛池模板: 黔西县| 和平区| 阜南县| 收藏| 连江县| 灵山县| 庆安县| 伊通| 九江县| 云阳县| 汽车| 凤城市| 商城县| 秦安县| 秭归县| 屯门区| 湖北省| 哈密市| 寿阳县| 泸定县| 平顺县| 镇沅| 嘉义县| 澜沧| 绍兴县| 阳东县| 九寨沟县| 横峰县| 乃东县| 海城市| 西和县| 含山县| 阆中市| 屏边| 克拉玛依市| 汶川县| 大港区| 密云县| 法库县| 犍为县| 临邑县|