首页 > 解决方案 > Azure rest api 相当于 az sql db show-connection-string -s myserver -n mydb -c ado.net

问题描述

我找不到与 az sql db show-connection-string -s myserver -n mydb -c ado.net 等效的 rest api 调用。任何帮助表示赞赏。

标签: azurerestazure-web-app-serviceazure-sql-databasecommand-line-interface

解决方案


通常,我们只需要将--debug参数附加到 CLI 命令即可查看命令调用的 REST API。对于这个命令,我们很容易发现它并没有通过--debug参数调用任何 REST API,它只是对你输入的参数进行了拼接,因为连接字符串的格式是静态的。

在此处输入图像描述

参考 - https://www.connectionstrings.com/azure-sql-database/


推荐阅读