Cannot connect to Azure from VS 2013 - azure

I am just getting started with Azure and one of the things I want to do is connect from VS 2013 to my Azure account in order to publish my web app. Unfortunately every time I try to connect I get back a long error message which is in HTML format but within a dialog box. The error starts with
An error occurred during the sign in process: The Service Management
operation could not be authenticated
I tried everything but so far there is no way I can connect to Azure. Any ideas of what is going wrong?

Related

Azure Devops release pipeline unauthorized for some projects

I am trying to release multiple projects in 1 solution using Azure Release pipeline
They are all connected to the same Azure Subscription, but some do deploy to the given app service while others give an unauthorized error.
Ive looked into it and i read that adding website_webdeploy_use_scm to the app service should help the Unauthorized error, but this didnt help for me.
What else could i look at? I connect through Azure Devops so i just selected the subscription from the list it automatically gathers from Azure because im logged in using the same logins as i use for Azure Portal
the full error is:
Connected to the remote computer ("xxxx.azurewebsites.windows.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.
according to the error I'd suggest you check service principal permissions. it probably lacks the permissions required to manage those webapps.
So after refresh publishing profile in Azure Portal and trying it again it fixed itself so im not sure if that caused it or not but it worked!
another fix is to delete the slot and make it again

SQL Azure DB throws error 'login failed for user' during web app backup

I have a sql azure web app with a connected database. When I try to automate a daily backup of my web app including the database I get the following error:
'login failed for user ******'
The asp.net web app is connecting and getting data from the database without error. This error only happens during the web app backup process.
I have checked the connection string in both the web app PROPERTIES and the DATA CONNECTIONS blades.
The connection strings are the same in both blades and look like:
Server=tcp:****.database.windows.net,1433;Database=****;User ID=****;Password=****;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
If I open SSMS and use the server, password, and user from my connection string I can connect without any issue.
Also, when I got to the Blade for the database in question and click on the activity log, I get no entries and don't see any connection errors
Can someone help me figure out why my azure web app cannot backup the database during its backup operation
EDIT 1:
The activity log linked to an error log file and this is what it contained
<Error>
<Code>AuthenticationFailed</Code>
<Message>
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:f85ceeef-0001-00de-1a27-6cbdab000000 Time:2017-01-11T16:26:09.4122657Z
</Message>
<AuthenticationErrorDetail>
Signature did not match. String to sign used was rwdl 2017-01-08T16:16:47Z 2290-10-23T15:16:47Z /blob/******/$root 2015-04-05
</AuthenticationErrorDetail>
</Error>
I hate these kind of answers,
but after getting no help from microsoft RANT BEGIN other than googling my question and returning stack exchange answers to me then suggesting I open a support ticket - which of course is a paid feature... RANT END
SOLUTION
My best guess is that there was an issue with the backup configuration because I deleted the existing backup configuration and recreated it with the same values and now it works. Maybe I should have created the Blob container before rather than during the backup setup. I don't know but it is working now.
Did you verify that Azure resources are whitelisted in your Azure SQL Server firewall settings?

Server error in '/' Application Visual Studio 2015 community

Need your help on this.I'm a newbie to the C# visual studio domain.
I was going over the tutorial on Microsoft site to create App and deploy on Azure. Here is the link below:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/
After completing every single step .I have this annoying error message that keeps popping up whenever I try to access/ login-in - by using the google account or using the default user name and password on the site. Screenshot here
I've gone line by line checking my steps and codes ;my azure server, app and database is running perfectly. Google API and app is running - no errors.
On my local machine it is works fine. But, when I publish the code to Azure - the home page comes up and I can navigate to the login page but - I just can't login-in using the google AuthOut nor the default login page using the default credentials on line.
For the life of me - can't understand why its not working. Need help people.
The error means that your site is trying to talk to your database (SQL Server) but it can't connect to it. You probably don't have a SQL server database setup.
Look at step 11 in the instructions:
11.Select Create new server, enter a server name, user name, and password.
I'm guessing that you didn't create the database when you were creating your web app.

Unable to connect to azure sql server

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.

Deploying Database To SQL Azure Error

I'm trying to publish a website to Azure, The publish settings were carefully reviewed, the files get published but the database is not, I'm getting this error.
Error 1 Web deployment task failed. (Could not complete an operation
with the specified provider ("dbFullSql") when connecting using the
Web Management Service. This can occur if the server administrator has
not authorized the user for this operation. dbFullSql
http://go.microsoft.com/fwlink/?LinkId=178034 Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_DBFULLSQL.)
Any help would be appreciated!

Resources