Import bacpac file to existing WASD on Azure portal - azure

I have followed the steps mentioned on this link and i have created new DB successfully on azure portal. However i would like to know how can i import that on existing database using .bacpac file?

Currently the given answer won't work because as of now, the interface of the Azure portal has changed significantly. You won't find the import button that easily!
Supposing that you have clicked SQL databases from the navigation panel, then at the bottom, click "New". Then you will find Import button. The rest is easy.
It took me around 2 hours to figure out what Microsoft wrote in their documentation and what I am visualizing in their portal! It doesn't match and Microsoft forgot to update their documentations!

If you want to import the bacpac file through the Windows Azure portal you'll need to go to SQL Databases and press the Import button. You will be able to choose a bacpac from one of your storage accounts (you can upload bacpac files to your storage account with a free tool like CloudXplorer).
Note: The import process does not allow you to import into an existing database. You'll get the option to create a new database.

Related

How to export DB of a specific time?

I want to check how was my data 2 days ago and to do that I though of exporting a back up that Azure take every hour. But I cannot find it.
I've found this page on Microsoft that talks about exporting a DB but it is for the current data.
Azure SQL Database automatically creates database backups and writes them to read-access geo-redundant storage (RA-GRS) for geo-redundancy. Frequency depends on what kind of load the service is dealing with, duration backups are kept depends on the tier you've purchased.
To recover to a point in time using the Azure portal, open the page for your database and click Restore on the toolbar.
You cannot overwrite an existing database during restore, so you need to create a new instance for the point-in-time restore, and you'll pay for that. You can also do the restores programmatically using PowerShell.
Further details here.
I suggest to execute a restore, with a specific time, on a temporary DB then export it to a bacpac file. You can use Azure CLI for that:
az sql db restore with -time option for restoring
az sql db export for exporting
az sql db delete for deleting the temporary database
https://learn.microsoft.com/en-us/cli/azure/sql/db
The same can be also achieved using Azure Portal.

How to get data from Azure Table Storage to SharePoint Online

I need to get data from Azure table storage and populate in SharePoint O365 site as a list. I found a way to achieve if it's from SQL Azure but couldn't able to find for Azure Tables. Kindly share your inputs.
Azure Table and SharePoint both have APIs, so in the base case you can import from one and export to others using their APIs. However, it seems you are looking for a tool, not to write code.
To export from Azure Tables you can use the AzCopy Tool (http://aka.ms/azcopy) to export the contents into a Json-formatted local file. Then, you can use whatever tool you use to import into SharePoint, as long as it understands Json files.

How to import .bacpac to Azure Sql Database (not Sql Azure!)

I've created a 2GB Azure SQL Database instance and I want to import my local database to it. When I connect via SSMS to my Azure DB and attempt to Import Data-tier Application from the context menu it wants me to create a new instance on SQL Azure, which isn't what I want..?
How can I import my current database from my local machine to the Azure SQL Database one?
Ok, realized that this was asked a while ago, but since I bumped into the problem myself the other day...
The way to do it now is to place the bacpac file in Azure Blob Storage (using f.ex. Visual Studio). Then use the Import function on the database server from portal.azure.com. The database is created as part of this process, and you can also choose the size.
If the db is large, choose something powerful for a start, so that the import doesn't take ages...
SSMS does not support directly importing from a database. You will need to export your database to a bacpac and then import the bacpac to your Microsoft Azure SQL database.

How do I backup my azure search index?

I am using Azure search and would like to make sure I can recover from a self inflicted disaster before I push more docs in there. How do I backup my index?
Is creating Azure Search replicas equivalent to making a backup?
How would one restore that?
Thanks
Microsoft have released a console app on github that can be used to backup and restore Azure Search Indexes - its not perfect, but I use it almost daily for backup and restores from prod to CI/QC/Dev instances
https://learn.microsoft.com/en-us/samples/azure-samples/azure-search-dotnet-samples/azure-search-backup-restore-index/
Right now you can't do that from the API or the portal, just save a copy of the JSON schema to a .js file, for example. See the Get Index API.
Normally you don't need to touch the index very often, only add, update or remove documents.
You would need to use an indexer from an external source to push the data into Search and be able to create backups at the same time.
If its an AzureSQL database, this may do it for you automatically, depending on your subscription
Create a table with the same fields in the Azure Search Index and add a deleted flag and a last update date, then import all of your data into the database. Set the date flag to the time that you imported the data.
At the top of the azure search bar, there is an option to 'Import Data'. This will allow you to connect the data source, this way you can create an index which will look at the last modified data and deleted flag when you create the connection.
The wizard will take you through all of the options
From there, just update the SQL table with your changes and the indexer will automatically push them to Azure search.
Thank you for an answer about https://learn.microsoft.com/en-us/rest/api/searchservice/Get-Index
Sometimes Azure Search index it's an only source to restore data.
For example in Microsoft QnA maker - if you will delete azure web app or azure app service- you no longer can even export Knowledge base from QnA maker.
To somehow restore data from QnA maker- I used Azure Search index.

How to perform a Windows Azure Backup?

I'm starting using Windows Azure to manipulate my azure databases. I don't have experienced in IT world, I'm just looking a way to backup my database (preferibly in a local computer) and restore it.
I started reading from here:
http://msdn.microsoft.com/en-us/library/jj650016.aspx#copy
And I ran this code:
CREATE DATABASE destination_database_name
AS COPY OF [source_server_name].source_database_name
But I'm not sure if it's working, in the next image, contoso2 is my original database and the another is the copy, and this one does not have any table from the original source.
So, please guide about how to backup my datases not using commercial products.
If you need additional data, please let me know.
I recommend reading Business Continuity in Windows Azure SQL Database which explains the underlying infrastructure available to you and the two main mechanisms for backup - ocpy database and export/import
You have third party products available; some of which don't require you to purchase anything. Here is a good summary which is still valid. You can also use the Export/Import feature available right off the management portal of Windows Azure.
Well it is easy if you are using Sql Server 2012. If you are not then you can install the express version.
Select the database you want to back up in new portal of windows azure https://manage.windowsazure.com
In the footer you will have an option to import/export. Click export. This opens a modal popup. Select the storage account you want to use and type in a appropriate name to save the *.bacpac file.
Once the file is saved to storage, download it to local, open sql server 2012 management studio. Select the database server. Right click on it and in the context menu you will find Import Data-Tier Application. Select the bacpac file from you local and follow the settings.
At the end you will have your data residing on your local machine.

Resources