I've followed this tutorial https://docs.kentico.com/k12sptutorial/mvc-development and successfully run it on localhost, however when I try to publish to Azure app service the connection string doesn't seem to work at all and I've tried all the fixes including changing region of all services to be in one region, whitelist IP addresses.
here is the link of the site:
https://adia.azurewebsites.net
connection string:
Data Source=tcp:adiadb.database.windows.net,1433;Initial Catalog=adia;User Id=sqladmin#adiadb;Password=password
Please advice when went wrong. Thanks.
It looks like the DB is not available to other resources within Azure. You’re able to connect with SQL Management Studio, but not the Web application. When you create the database, there is a checkbox to make it available to other resources within Azure. By default this is disabled. I’m not at my computer just now, but I’ll update this when I am with a screenshot of where to check.
Related
In the older management portal I was able to do SQL Server database management tasks but in the new portal (green and blue) that functionality seems to be removed. In fact the older Azure portal does not seem to have that functionality more as the always dumps me to the add Silverlight screen (I have added 3 times).
I have a simple datafix but I can not get to the server from my current location.
This functionality has be deprecated and removed.
(http://yourservername.database.windows.net)
Azure SQL Database Management portal:
Cannot manage V12 servers.
ref: https://azure.microsoft.com/en-us/documentation/articles/sql-database-v12-plan-prepare-upgrade/
If your client is not on Windows see suggestion #01 below.
If you are on Windows probably a good route to managing your Azure database is to download the free SQL Server Management Studio (SSMS) from [ https://msdn.microsoft.com/library/mt238290.aspx ] . You wind up wired into your cloud based SQL Server same as you would with an on-premise.
CAVEAT - due to the hardening of Azure SQL Database on firewall rules, you may find yourself going to the Azure Portal a great deal to open the firewall between your local client and your Azure SQL Database.
SUGGESTION #01 - Create a 'dev vm' in Azure and install the SSMS into it. Azure <-> Azure connections do not get firewall dinged every time the client IP changes. Shut down the 'dev vm' when you aren't using the tools and save some $s. Great option for folks who don't use a Windows desktop as well.
SUGGESTION #02 - still want to run SSMS local and hate the firewall restriction. Open it from 0.0.0.0 to 255.255.255.255 . I've done this on occasion but only temporarily, and removed the rule very quickly after I was done.
Hope this helps. Healy in Tampa
I created a new Azure Mobile App and set up my Sql Server database with it. I use an email address as the username, and then assigned a password.
Once the Mobile App and the Sql Server db setup completed, I was able to get my iOS app to target it and use the Azure authentication services without any issue. I then inserted some data in to a table in the iOS app, without any errors.
Now, I want to open the database and verify the data. Anytime I try to connect to the server using SSMS or Visual Studio 2015, I am told that the login failed.
I use an email address like Johnathon#MyCompany.com. When the sign-in fails, it says:
Login failed for user 'Johnathon'.
Is it the email address for a login causing issues? My ISP blocks port 1433, so I thought that maybe that was the issue initially. So instead of using VS or SSMS, I moved to the web-designer on the Azure portal. When I sign in there, I receive the same error. This has occured across three different App Services setups. I tried using the older Mobile Services, and had this issue. I then moved to the newly released Mobile App Service but have the same issue. Each time I deleted the database and recreated it and the server.
I have also added my client IP to the azure sql server firewall.
I'm at a loss at this point.
Update
I have managed to sign in to the server within the Azure portal designer by omitting the database name. However, when I select the Design option, and then click the Design button on the database, I receive a Failed to create context error. I assume this is related to why I can't connect to the server when I specify a database name in the Azure portal.
As a note, having the # symbol in the SQL Azure login tends to cause a number of headaches and it is not recommended to have it in there. What you will notice is that SSMS and other applications try to use it as part of the server name which then causes context and other failures.
The easiest fix for this is to roll up another SQL Azure server with a login name that doesn't use the # symbol, you will have a better experience overall.
After yesterday's announcement of BizTalk Service GA on Windows Azure, I'm trying to create a new Development instance so I can start migrating my on premises BizTalk projects to there.
After I fill the wizard and start waiting for the instance creation, I get the following error:
Could not connect to the Tracking Database. Confirm that the SQL Database details are correct and that Windows Azure Services is enabled on the SQL Database. (RDFE - Operation ID = fcc014e60cea345c9e03dcd2dca787d3 )
What is happening?
Make sure DB allows Azure services to access it
Possibly the internal DNS problems are affecting it.
The Register Microsoft pulls its crowd-control tech from out of the shadows
a variety of Microsoft services including Windows Azure and Xbox became unavailable due to an as-yet-unspecified problem with Microsoft's global DNS configuration
or
Xbox One site BELLY-UP in GLOBAL Microsoft cloud catastrophe
Initial reports seem to indicate the problem stems from an internal DNS issue, as both the page and various Azure services are throwing DNS errors. Azure may be working, but reaching it is difficult.
3 questions about Windows Azure Website Preview service (placing my website into cloud):
1. A little embarrassing, but I can't find my FTP credential. I tried my website setup credential as well as the data source string. Both are not applicable. So where is it?
2. I also need database access too, but can't seem to find the entry URL for that as well. Any inputs are appreciated.
3. Finally, I bought my own domain. How can I do an alias (maybe from Apache or IIS, not sure though) so that users only see example.com instead of example.azurewebsites.net?
You'll find the FTP credentials in the publish profile. In the Windows Azure portal, simply open the dashboard of that site and choose Download publish profile. Open that file with any text editor and you'll see the FTP credentials.
If you want to use a database, go to the dashboard of that site and choose to add a linked resource. There you'll be able to add an SQL Database. Once you've done that you'll see the connection string under Quick Glance > View connection strings
Using your own domain with Windows Azure Web Sites is only possible with reserved instances with a CNAME.
If you want to deploy your application to Windows Azure Websites over FTP, you can take a look at my blog here which explains most of the info related to FTP deployment.
As Sandrino explained you can look at View Connections Settings at Quick Glance, also if you look at following sections in the article here you will get more on this regard:
How to: Configure a website to use a SQL database
How to: Configure a website to use a MySQL database
Rest is already answered for you.
I have created my first app for azure. It's has an MVC3 web role which writes some data to table storage.
It also has a worker role that does some work behind the scenes to the same data.
It all works fine in the emulator.
I've uploaded it all to Azure as a staging deployment, the hosted service it is reports all roles as "ready". The health for all roles is "healthy", though the worker role appears to crash and goes to "degraded" and then resets itself (I assume this is what is happening).
So what now? I have found a "DNS Name" on my Web Role in the form "http://{guid}.cloudapp.net/"
Clicking on that link just gives me a network access error, http://www.downforeveryoneorjustme.com/ can't find it either.
What am I missing? Where can I see diagnostics similar to the emulator? I've set "Enable Diagnostics" to use my Azure storage account in each role. How do I get into the storage to see if it has traced anything? Can this be done through the Management Portal?
I've tried searching through MSDN, but I can't find a page that says "and then you click the DNS name link and your website will launch. I'm sure there is a lovely page like that but I can't find it.
thanks in advance!
In August 2011, the Windows Azure role templates were updated to work with the ASP.NET Universal Providers. As such, when you create a new project, the session state provider is backed by SQL Express by default. If you don't change this to SQL Azure or Cache (or disable session state), you'll run into issues.
I'm not sure this is exactly the issue you're running into, but it's a common one. See Nate Totten's blog post for more information about this (Nate calls out this issue a few pages down, under IMPORTANT NOTE).
You can access diagnostics data directly from Visual Studio Server Explorer.
Here you have all necessary information: Browsing Storage Resources with Server Explorer http://msdn.microsoft.com/en-us/library/windowsazure/ff683677.aspx
Personally I use Azure Diagnostics Manager from Cerebrata http://www.cerebrata.com/products/AzureDiagnosticsManager/ that is easy and has a good dashboard