Azure SQL database failover - sql-server

We are looking at setting up a high availability solution for a web application using Azure.
Azure SQL database has the Geo-Replication options to sync data to secondary copies of the database in a separate region.
If there is a failure in the primary region does the Azure SQL database automatically fail over to the secondary or is this something that has to be
done manually or by a custom monitoring tool not provided by Azure?
Thanks for your help
Gavin

It is provided by Azure automatically
Reference:
https://azure.microsoft.com/en-us/blog/fault-tolerance-in-windows-azure-sql-database/

Related

How to get SQL Database Status in Azure with Log Analytics

I would like to show whether an Azure SQL database is online or not in an Azure Workbook.
Is this information available to resource metric/log analytics workspace so that I can show it in an Azure Workbook.
Could you provide me a hint?
There isn't a feature or function to check the Azure SQL database Status.
Once the Azure SQL database created, it will be alive or online all the time. Unless you manually delete or pause it(Elastic pool).
HTH.

Master Data Service in Azure

I am looking for "Master Data Management" in Azure and seeing SQL Data Sync (Preview) looks similar to the MDM functionalities, not sure though. Any leads here would be appreciated.
Azure SQL Database (PaaS) does not have a Master Data Management solution, but you can vote here for this feature to be included as part of the service in the future. SQL Server on-premises does have Master Data Services (MDS) as solution for master data management, and you can install this on an Azure VM.
If you are looking for Master Data Management functionality that is native to Azure, then I would recommend you take a look at CluedIn. CluedIn is a recommended MDM solution from Microsoft themselves (you can see the reference here: https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/data/cluedin)
Azure Data Sync has some of the capabilities you would want as part of an MDM project, however it does not have features you would expect from an MDM system like:
Deduplication
Entity Enrichment
Data Cleaning Tools
Business Glossary

Sync data from on prem SQL Server to Azure to be consumed in Azure Search Service

I am working on a POC that needs the data to be moved to Azure so that Azure Search Service always provide me the latest data.
Here is my situation:
SQL Server deployed on-premises has a database that has few tables that always gets updated by user inputs. Tables are having millions of records and new records gets added/old data gets updated every day depending upon transactions
Planning to leverage Azure Search Service capabilities to search the data in my website
What is the best way to achieve the functionality regarding data sync between an on-premises SQL Server database and Azure? Any good architecture direction would help me in my decision making.
What is the best way to achieve the functionality regarding data sync between an on-premises SQL Server database and Azure?
I'd say the best option given the information you have provided is to use Azure SQL Data Sync.
You can setup a sync group and have Azure pull your data at regular intervals from your on-prem database to an Azure SQL database.

Make SQL databases go automatically into elastic pools

I'm having some trouble using Azure's elastic pool feature. Right now, I have a SQL server with a bunch of databases that I want to store in an elastic pool to cut costs. My problem is that right now, everything is deployed in a very specific, non-negotiable way. Resource groups, storage accounts, and SQL servers are spun up with ARM templates and databases are added to the server with Microsoft's Azure SQL Database Deployment function in VSTS. Everything I do should be automated for disaster recovery.
Is there a way to configure the server on creation so everything goes automatically into the elastic pool? Is there a way to change the Azure SQL Database Deployment step so it adds the db to the pool and not just the server?
Thanks in advance.
Edit: I ended up adding a powershell task to VSTS and running a simple json+script that took in the resource group, server name, pool name, and database names, then ran Set-AzureRmSqlDatabase.
You can manage SQL Database elastic pools using PowerShell (e.g. Set-AzureRmSqlDatabase: Sets properties for a database, or moves an existing database into, out of, or between elastic pools.), so you can try to use Azure PowerShell step/task to move database to elastic pool.
Regarding ARM template, you can get it when creating SQL Database in azure portal:
On the other hand, there is an article about a template allows to deploy a new SQL Elastic Pool with its new associated SQL Server and new SQL Databases to assign to it: Deploy a new SQL Elastic Pool
I solved it with a custom build step. Included the required parameters in a json and ran a powershell script that connected with
Initialize-AzurePowershellSupport -ConnectedServiceName $ConnectedServiceName -ErrorAction SilentlyContinue
$subscription = (Get-AzureRmContext).Subscription.SubscriptionName #(Get-AzureRmContext).Subscription.SubscriptionName
and then used Set-AzureRmSqlDatabaseto move the database to an elastic pool.

Azure Virtual Machine and Azure SQL Database: optimal deployment for performance

The solution consists of an SQL Database and desktop application working hard with that DB. DB Deployed as Azure SQL Database, application running on Azure Virtual Machine with Windows Server onboard. What is the deployment guidelines for this two services in Azure? I want to achieve max performance. Should they both be located in same resource group?
You will need to get your app and the database located as close as possible so yes the same resource group.
Make sure you do not have Mars enabled (MultipleActiveResultSets in connection string).
Make sure you do use connection pooling.
Read this to understand what you are dealing with:
https://www.simple-talk.com/sql/learn-sql-server/improving-the-quality-of-sql-server-database-connections-in-the-cloud/
Ed

Resources