I just signed up with Microsoft Azure. I want to upload my existing database onto the cloud. I don't see any create any server instance in the Sql Server menu. I have tried using the add new database procedure. I have completed all the steps but the process keeps failing. This is my status error message:
{"error":{"code":"DisallowedProvider","message":"The operation is not
permitted for namespace 'Microsoft.Sql'. List of permitted provider
namespaces is
'Microsoft.Resources,Microsoft.Authorization, Microsoft.Insights, Microsoft.Web, Microsoft.Support, Microsoft.VisualStudio, SuccessBricks.ClearDB, Microsoft.NotificationHubs'."}}
Can anyone please help me?
If you are using dreamspark account that currently Microsoft don't support SQL for dreamspark account users.
What version of the portal are you using? Since there are a few different ways you can proceed about creating a SQL database, I recommend following this tutorial to start with Azure SQL Database: https://azure.microsoft.com/en-us/documentation/articles/sql-database-get-started/
If you have an existing SQL Server database and would like to migrate it to SQL Azure you can use SQL Migration Wizard, or script your existing database and execute the script with SSMS. A few more alternatives can be found here: https://azure.microsoft.com/en-us/documentation/articles/sql-database-cloud-migrate/
Hope this helps!
Thanks,
Luis
Related
net core and azure sql. I am trying to connect to azure sql from my local visual studio. If I am deploying app in app service I can make use of managed identities. Currently I am app in local environment. I do not want to store any password in local ystem like appsettings.json. I am curious to know is there any way where I can connect to azure sql without storing password in local visual studio. Can someone help me if there is any other way? Thank you for help.
You can make use of Azure AD based authentication for SQL Databases. Assuming you are signed-in into Visual Studio using your Azure AD credentials, you can assign yourself a database role in the SQL Database using a command like:
CREATE USER [<Azure_AD_principal_name>] FROM EXTERNAL PROVIDER;
ALTER ROLE [<databse-role-name e.g. dbmanager>] ADD MEMBER [AzureAD_object]
Once you do that, you should be able to connect to your SQL Database using a connection string like the following:
Server=tcp:<db-server-name>.database.windows.net,1433;Authentication=Active Directory Default;Database=<db-name>;TrustServerCertificate=true;
Please see these links for more details:
https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-configure?view=azuresql&tabs=azure-powershell
https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-azure-ad-logins-tutorial?view=azuresql
There is Azure SQL server with name xxxdb10.database.windows.net that is up and running. I am trying to create DB there and I have to use specifics application in order to have proper DB structure. Everything works with SQL Server Express as you can see below, program add file location automatically. But when I try to point to Azure SQL server and do the same application does not recognizance path and I got this error below. What to use for database file location in case of Azure SQL server please, can you help?
With SQL Server Express:
With Azure SQL server:
• I would suggest you use Microsoft SSMS (SQL Server Management Studio) tool to connect to the Azure SQL Server created in Azure instead of SQL Express. Since SSMS is only a tool for managing various types of SQL Databases locally or in Azure, thus it should be promptly used for creating such Azure databases. Please refer the link below on detailed documentation and information regarding this as well as refer to the snapshots depicting the usage of SSMS as a prompt tool for connecting to Azure SQL databases and server.
https://learn.microsoft.com/en-us/azure/azure-sql/database/connect-query-ssms
In the above snapshots, you can see that we can connect to an Azure SQL Server and creating a database in it through SSMS.
I have created an MVC 5 web application. I have deployed it to azure but I can't seem to add the database that I am using. I know you can create a database on azure and link it to your website but is there a way to add an existing database?
There are several ways to migrate an existing SQL Server database to the Azure environment. See this Migration guide from Microsoft.
I have used the "Deploy Database to Microsoft Azure Database wizard" before and it worked very well and easy. Have a look at this guide.
I have completed with the process of creating webapp + mysql with different deployment slots. I have also configure bitbucket on Azure new portal (https://portal.azure.com). I have Linux system.
I want to import existing Database, from local to Azure. I have tried with Mysql workbench but its giving me Failed connection.
So my question is, How to import existing Database on Azure portal?
In regards to your comment from yesterday, you either try to connect to an Azure SQL Database with the MySQL Workbench, which will not work.
Use another tool like SQL Server Management Studio or JetBrains DataGrip for that.
Or you're using the ClearDB MySQL offer.
Then your connection string should look like this "Server=eu-cdbr-azure-north-b.cloudapp.net;Port=3306;Database=myDataBase;Uid=myUsername;Pwd=myPassword;", which I was assuming when you wrote that you used the webapp+mysql template.
Or you're hosting your own MySQL Server as a Virtual Maschine, which would also be a different server name, e.g. yourpublicipdnsname.northeurope.cloudapp.azure.com
I have signed up for Azure, created a SQL Server item, but cannot see how to, from there, create a DB (create and design the tables, IOW the DDL part of things). Is this something I need to do with the SQL Design Tools, and then export this from Visual Studio / import into the Azure account? Or how is it done?
If you don't want to use the SSMS as other have suggested you can use the silverlight management tool online to execute TSQL Commands; the upside of this is that you have designer support which SSMS lacks.
Once you have selected your DB in the Azure portal click the manage button:
From there a new window will open where you will have to log into the SQL Server.
Once you have logged into your SQL Server you will have the option to create new tables, create procedures etc.
One handy hint, if you go into your SQL Azure details screen you will notice a section to retrieve connection string snippets that may come in handy hooking up your back-end to your application:
You can install SQL Server Management Studio to connect with your SQL Azure database, and from there you can create tables in the designer, or by entering SQL queries.
Keep in mind that you have to whitelist your IP address in order to access the database. Azure uses whitelisting, meaning that only authorized IP addresses can connect to the database.
You can connect to your database in Azure through Visual Studio and/or SQL Server Management Studio (SSMS).
Check this link for details.
SQL Azure Management