An Azure service that automates the access and use of data across clouds without writing code.
Yes. That behavior is consistent with how unresolved Key Vault references behave: when a reference is not resolved properly, the platform passes the literal @Microsoft.KeyVault(...) string through, and consumers then treat it as the setting value. In this case, the SQL built-in connector is parsing that literal text as a SQL connection string, which produces Keyword not supported: '@microsoft.keyvault(secreturi'.
The supported facts in the documentation are:
- Key Vault references can be used as app settings or connection strings for App Service, Azure Functions, and Logic Apps (Standard).
- If a Key Vault reference is not resolved properly, the literal reference string is used instead.
- For Azure Functions SQL bindings, a connection setting can point to a Key Vault reference, but the provided material does not state the same support model for the Logic Apps Standard built-in SQL Server connector connection-creation experience.
Based on the available documentation, there is no documented supported pattern here showing that the Logic Apps Standard built-in SQL Server connector’s Connection String field resolves an @appsetting(...) value that itself contains a Key Vault reference during connection creation in the designer.
For the specific questions:
- Is this expected?
The observed failure is consistent with the documented behavior for unresolved Key Vault references: the literal@Microsoft.KeyVault(...)value is used. That matches the error returned by the connector. - Is there a supported way, from the provided documentation, to make this built-in SQL connector consume a Key Vault-backed connection string through that designer field?
No supported pattern is documented in the provided material for this connector scenario.
What can be verified from the available guidance:
- Logic Apps Standard supports Key Vault references in app settings generally.
- If the reference resolves, app code can use it like a normal app setting.
- If it does not resolve, the raw reference string is passed through.
- The built-in SQL connector error shows it is receiving the raw reference string at connection creation time.
To validate whether the app setting itself is resolving correctly in the Logic App resource, check the Key Vault reference status in Azure portal:
- Go to the Logic App Standard app resource.
- Open Application Settings.
- Select Edit for
MSSQL_CONNECTION_STRING. - Review the status/error details for that Key Vault reference.
If the status is missing, the syntax is invalid. If the syntax is valid, the portal shows resolution status and errors. The built-in diagnostics can also help:
- Go to the app.
- Select Diagnose and solve problems.
- Use the Key Vault application settings diagnostics detector.
If the app setting resolves successfully there, the remaining gap is still that the provided documentation does not describe a supported designer-time pattern for the built-in SQL connector to consume that Key Vault-backed app setting indirectly.
- Use Key Vault references as app settings in Azure App Service, Azure Functions, and Azure Logic Apps (Standard)
- Use Key Vault references as app settings in Azure App Service, Azure Functions, and Azure Logic Apps (Standard)
- Azure SQL bindings for Azure Functions overview (programming-language-powershell)