I would suggest you to use azure table storage
REST API for your case.
You could also Use SDK for that. Please take a look below.
Class
public class Item : TableEntity
{
public Item()
{
PartitionKey = "YourPartionKey";
RowKey = "YourRowKey";
}
public string Message{ get; set; }
public string Description { get; set; }
}
Inside Function Using SDK
Item entity = new Item("YourPartionKey", "YourRowKey")
{
Message= "I am From IOT Device",
Description = "I am from IOT and Want to go to Storage"
};
// My Storage operation
var client = new CloudTableClient(new Uri("https://YourTableStorageAccountName.table.core.windows.net/"),
new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials("YourTableStorageAccountName", "YourStorageKey"));
var table = client.GetTableReference("YourTableName");
TableOperation insertOperation = TableOperation.Insert(entity);
var insertOnstorage = await table.ExecuteAsync(insertOperation);
Console.WriteLine("Entity inserted!");
REST API Reference
URL:
https://YourAccount.table.core.windows.net/YourTableThatYouWantedToInsertMessase
Method:
POST
Request Body:
{
"Message":"IOT Message",
"Description":"I am from IOT and Want to go to Storage",
"PartitionKey":"Yourpartitionkey",
"RowKey":"YourRowkey"
}
Note: For more details you could refer here
If you have any more query feel free to share. Thank you and happy coding!