1

I'm trying to bind data from AF to Azure SQL. It's easy to do in Azure Portal adding the binding params in function.json file

 {
  "type": "apiHubTable",
  "name": "outputTable",
  "dataSetName": "default",
  "tableName": "SpeechToText",
  "connection": "sql_SQL",
  "direction": "out"
}

But I cant do this in VS2017 preview( Binding to Azure SQL is unavailable)

enter image description here

1 Answer 1

2

You need to reference Microsoft.Azure.WebJobs.Extensions.ApiHub NuGet package

Install-Package Microsoft.Azure.WebJobs.Extensions.ApiHub -Version 1.0.0-beta3 -Pre

and then use ApiHubTable attribute for your binding

[ApiHubTable("sql_SQL", DataSetName = "default", TableName = "SpeechToText")]
Sign up to request clarification or add additional context in comments.

4 Comments

And what is the type for the parameter, then?
@bc3tech I assume ITable<MyRow>, see example in the docs
actually looks like IAsyncCollector<T>, because trying to use ITable in the portal is problematic due to reference library and namespace ambiguities
@Mikhail Where does one find the documentation for the ApiHubTableAttribute class? Is this open source? I only find an example of its usage from a GitHub search: github.com/PacktPublishing/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.