I am new to Azure & have searched everywhere but here for help. I have a local MVC 5 app w/ simple database. I am using VS 2015 Community w/ all updates.
Problem: Using visual studio, my web app works perfectly in Azure, BUT my local database will not deploy. The db works perfect locally, but when I deploy, only the web app shows up...the database is not there in Azure. I get a generic message saying "There was an error processing your request". I have tried creating the db in Azure and connecting w/ no luck. Everything but the database deploys. Any suggestions are appreciated. Thanks, everybody.
Jeff
You do not deploy the database in Azure. Instead, you create a database in Azure, and then, under deployment, you point your app's connectionstring to that instead.
Related
I know that question is rather amateur but I hope someone will give me a hint what I did it wrong.
I'm using:
Azure SQL Server database - I can access it from Azure db instance from my local SSMS
Azure App Service - also created, up and running
VS22 deployment => Publish => connect to my Azure account, and imported publish profile.
Deployment went well: and the code in release mode is published to Azure App Service.
But I can't see my Swagger page on my Azure website.
I'm using .NET 7
Maybe you can tell me what I'm missing here? Maybe I need to wait for instance of azure app service to be created? although I can access it and use all features that I paid.
Also, my logs are empty
I created a sample webapp in visual studio 2022 using .net 7
Image for reference:
I connected to my Azure sql database from SSMS to the webapp using visual studio.
Image for reference:
It connected successfully. I published it to Azure through Visual studio 2022.
For that I created an app service in azure.
Image for reference:
published into that APP.
Image for reference:
It published successfully.
Image for reference:
It run successfully after deployment.
In portal I go to API-->Api management and created new api for my app.
Image for reference:
I linked the Api Management and click on the Api which I created I got the swagger page
Image for reference:
In this way we can find the swagger page for an App in azure portal.
I have an azure web app and an azure sql instance that I need both to be talking to each other. At run time with the connection string it works great. the only issue is when doing auto "EF Migrations". I used the "context.Database.Migrate()" on startup to do this automatically and on my local computer it worked fine however when deploying the azure web app it would throw an IIS error.
I finally found the solution and I wanted to share with the community in case anyone is having the same issue with their deployments. Make sure to enable "Allow Azure Services and resources to access this server".
I have release azure function app from VSO Azure App Service Deploy release task,
it gives:
System.Nets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions I searched on google, people say the sockets get expired but i am using S3 pricing tier
I have then released the same function app from Visual Studio 2017 which runs perfectly fine without any exceptions.
I am attaching the artifacts, build assets, release pipeline details, please help. I will not be able to move to production unless this issue is resolved.
Structure of Artifacts which is not working
Structure of artifacts which is working fine-published from VS2017
Here is the github link for more details regarding the issue.
https://github.com/microsoft/azure-pipelines-tasks/issues/11345
I had to give a proper storage connection string for the following, instead of UseDevelopmentStorage=true,
I'm new to Azure and I have a requirement to deploy Windows Desktop Application that runs on IIS server and also has a SQL DB that needs to be deployed to Azure Cloud to prove that Elasticity is possible, as we are having our own DataCenters and we wanted to move to cloud.
I figured we need to create Docker Image for App Server and DB and this app will run only in Windows IIS server.
We have Azure SQL DB service, but what should be my approach for Windows App.
Does Azure provide any service that can help me achieve my requirement?
Any guidance is appreciated. I wanted to get started in right direction.
Not easy to guess what you need exactly when you say "Desktop App on IIS" :( but first things who come in my mind as an Azure user :
"App who run on IIS" -> Asp.Net on Azure WebApp for example
"Azure SQL DB service, what should be my approach for Windows App" -> connect your WebApp to your Azure SQL DB which you can reach technically following this link for example, but I would recommend you to first get a better understanding of WebApp if it's a WebApp that you need and how use the connection string that you set on the Azure Portal in the app that you deploy on Azure.
A quick look on this Azure resources should tell you if it can match your goal.
Is there a way to test the Azure Search in local development environment? Without actually connecting to Azure. That would work offline.
I'm thinking of a something like the Azure Storage emulator.
There is a simulator published here - https://github.com/simonedeponti/AzureSearchEmulator which exposes REST APIs, which can help you test it on your local.