Copy data from Azure Service Bus Topic to a Storag

2019-08-27 07:01发布

问题:

I need to move data received in my Service Bus Topic to a Storage Account inside Azure. I believe Azure Function is one of the good ways to achieve this. Please share suitable example if you have one.

Regards, Surya

回答1:

Fire up an Azure Functions project, create a function with a Service Bus trigger binding (if you're in the portal or Visual Studio then it'll offer you a template) and add a storage output binding for blob, queue or table as appropriate. Then in the function code just copy the relevant data from your trigger parameter to your output parameter.