是否可以从 Kudu REST API 检索 Azure 环境连接字符串?

Is it possible to retrieve Azure environment connection strings from the Kudu REST API?

我正在访问 Kudu 的 REST API,如 https://github.com/projectkudu/kudu/wiki/REST-API 中所述。

使用 GET /api/settings 端点,我能够检索在 Azure 门户中配置的应用程序设置,但它不包括在 Azure 门户中配置的连接字符串。

我没有看到包含此​​信息的任何其他端点 - 是否有任何方法可以检索连接字符串?

没有 Kudu API 可以做到这一点。但是,获取 APP 设置和连接字符串的推荐方法是通过 Azure ARM API.

例如获取连接字符串:

POST https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{appname}/config/connectionstrings/list?api-version=2016-08-01