Azure / azure-functions-sql-extension

Azure SQL bindings for Azure Functions ⚡️ supports Azure SQL Database, Azure SQL Managed Instance, and SQL Server 2016+
https://aka.ms/sqlbindings
MIT License
120 stars 61 forks source link
azure azure-functions azure-sql

Azure SQL bindings for Azure Functions

Table of Contents

Introduction

This repository contains the Azure SQL bindings for Azure Functions extension code as well as a quick start tutorial and samples illustrating how to use the binding in different ways. The types of bindings supported are:

For a more detailed overview of the different types of bindings see the Bindings Overview.

For further details on setup, usage and samples of the bindings see the language-specific guides below:

Further information on the Azure SQL binding for Azure Functions is also available in the docs.

Supported SQL Server Versions

This extension uses the OPENJSON statement which requires a database compatibility level of 130 or higher (2016 or higher). To view or change the compatibility level of your database, see this documentation article for more information.

Databases on SQL Server, Azure SQL Database, or Azure SQL Managed Instance which meet the compatibility level requirement above are supported.

Known/By Design Issues

Below is a list of common issues that users may run into when using the SQL Bindings extension.

Note: While we are actively working on resolving the known issues, some may not be supported at this time. We appreciate your patience as we work to improve the Azure Functions SQL Extension.

Output Bindings

Trigger Bindings

Telemetry

This extension collects usage data in order to help us improve your experience. The data is anonymous and doesn't include any personal information. You can opt-out of telemetry by setting the AZUREFUNCTIONS_SQLBINDINGS_TELEMETRY_OPTOUT environment variable or the AzureFunctionsSqlBindingsTelemetryOptOut app setting (in your *.settings.json file) to '1', 'true' or 'yes';

Troubleshooting

For troubleshooting SQL Client issues, You can enable verbose logging by setting the AzureFunctions_SqlBindings_VerboseLogging app setting (in your *.settings.json file) to '1', 'true' or 'yes';

Logs

Logs for function apps deployed in Azure can be viewed in the function's Monitor tab. If logs are not showing in the Monitor tab, they can also be found in the function app's Log Stream or in Application Insights. More information on logging can be found here.

Privacy Statement

To learn more about our Privacy Statement visit this link.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.