Reputation:
I am new to azure app service, i have used visual studio to deploy my web api to azure api management. i am doing a mobile application project, I need to make local ssms database data sync to azure cloud. because my web api is connect to ssms database, and it has error when i am testing it in azure api management, it response 500 internal server error, but i have the weatherforecast GET Sample, and this api work normal, it response 200 ok. i don't know what i have done wrong to the web api or i set up wrong in the azure.
ScreenShots:
Upvotes: 0
Views: 431
Reputation: 7297
Check the below steps to deploy sync the local DB to Azure SQL Server.
I need to make local ssms database data sync to azure cloud.
Azure Portal
=> Create a new SQL Database Server
.In Local DB
=> Right click on the DB
=> Tasks
=>select Deploy Database to Microsoft Azure SQL Database
.
Connect
, provide the Server name
from Azure Portal
(SQL Server Overview page).Initially I got the below error.
To access/ Connect Azure SQL DB
, we need to enable Public network access
and add Firewall rules
in Azure SQL Server
.
Azure SQL server
and deployed local DB Test
to Azure SQL Server
without any issues.Azure SQL DB
and make required changes.Azure SQL DB
, you can see the changes in portal.Azure SQL Connection string
in the Web.config
file of the ASP.Net Web API
.Azure SQL DB
and paste it in the Web.config
file.Upvotes: 0