我正在尝试将Azure Webapp连接到通过Azure REST API提供的SQL数据库。因此,我正在尝试实现此请求:https://docs.microsoft.com/en-us/rest/api/appservice/webapps/updateconnectionstrings。
但是我没有成功创建请求的正文
答案 0 :(得分:0)
我相信您设置了错误的json主体数据。以下是我的测试连接字符串,connections
是字符串名称,而connections
包含ConnStringValueTypePair。
{"properties": {
"connections": {
"value": "test1",
"type": "SQLAzure"
}
}
}
它也可以将字符串更新为Azure。