QuestionQ25

Secure, optimize, and deploy database solutions

You have an Azure SQL database.

You deploy Data API builder (DAB) to Azure Container Apps using the mcr.microsoft.com/azure-databases/data-api-builder:latest image.

You have the following Container Apps secrets:

  • MSSQL_CONNECTION_STRING, which maps to the SQL connection string
  • DAB_CONFIG_BASE64, which maps to the DAB configuration

You need to initialize the DAB configuration so that it reads the SQL connection string.

Which command should you run?

Explanation

Data API builder supports @env('VARIABLE_NAME') in the --connection-string value and resolves it from the process environment when the configuration loads. MSSQL_CONNECTION_STRING is the environment variable mapped to the Azure SQL connection string; DAB_CONFIG_BASE64 is for the DAB configuration itself. Initialize a config with the DAB CLI

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!