ZORAN BARAC DATA ARCHITECT at CIN7

Slides:



Advertisements
Similar presentations
What’s New: Windows Server 2012 R2 Tim Vander Kooi Systems Architect
Advertisements

Intro to SharePoint 2013 Architecture Liam Cleary.
SQL Server AlwaysOn.
“It’s going to take a month to get a proof of concept going.” “I know VMM, but don’t know how it works with SPF and the Portal” “I know Azure, but.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
Partner Practice Enablement - Overview This session will focus on integration strategies for applications deployed using Microsoft Azure Websites and Microsoft.
System Center Lesson 4: Overview of System Center 2012 Components System Center 2012 Private Cloud Components VMM Overview App Controller Overview.
Complete VM Mobility Across the Datacenter Server Virtualization Hyper-V 2012 Live Migrate VM and Storage to Clusters Live Migrate VM and Storage Between.
(re)-Architecting cloud applications on the windows Azure platform CLAEYS Kurt Technology Solution Professional Microsoft EMEA.
How To Build a Production-Ready SP 2013 Farm Martin Cox SharePoint / O365 Architect SharePoint 2013 BI Farm Setup Best Practices.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
Azure SQL Database Lori Clark SQL Saturday 10/17/2015.
All the things you need to know before setting up AlwaysOn Michael Steineke SQL & BI Solution Lead Enterprise Architect Concurrency, Inc.
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
Redmond Protocols Plugfest 2016 Kevin Farlee Senior Program Manager SQL Server AlwaysOn in SQL Server 2016.
Microsoft Dynamics NAV Dynamics NAV 2016 one Azure SQL Dmitry Chadayev Microsoft.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Migrate SQL Server Apps to SQL Azure Cloud DB
Calgary Oracle User Group
Energy Management Solution
SQL Database Management
Managing a database environment in the cloud
Azure SQL Database Updates
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Use relational database as a service
Dev and Test Solution reference architecture.
1/26/2018 Hosting Windows Desktops and Applications Using Remote Desktop Services and Azure Windows Server Azure Resource Manager © 2014 Microsoft.
Azure Site Recovery For Hyper-V, VMware, and Physical Environments
100% Exam Passing Guarantee & Money Back Assurance
Execution Monitoring Notification Aychin Gasimov DOAG 2016.
Dev and Test Solution reference architecture.
Dev and Test Solution reference architecture.
Lead SQL BankofAmerica Blog: SQLHarry.com
Migrating SQL Server to Azure the Right Way
Dev and Test Solution reference architecture.
Example of a page header
Feiping Li Jingjing Yang CSS534
Logo here Module 3 Microsoft Azure Web App. Logo here Module Overview Introduction to App Service Overview of Web Apps Hosting Web Applications in Azure.
Exam in just 24 hours!!! Pass your exam in first attempt by the help of our latest braindumps
Dev and Test Solution reference architecture.
Power BI Security Best Practices
Deploying and Configuring SSIS Packages
Design and Implement Cloud Data Platform Solutions
Energy Management Solution
Design and Implement Cloud Data Platform Solutions
Contained DB? Did it do something wrong?
Configuring the network environment
AlwaysOn Availability Groups 101
02 | Design and implement database
SQL Azure Database – High Availability
Capitalize on modern technology
Introduction to Azure SQL Database
Azure Automation and Logic Apps:
SQL On Azure Parikshit Savjani, Sr. Premier Field Engineer.
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
SQL Server on Linux: High Availability And Disaster Recovery
Dev and Test Solution reference architecture.
AlwaysOn Availability Groups
Power BI with Analysis Services
High Availability/Disaster Recovery Solution
Windows Azure Hybrid Architectures and Patterns
*AZs available across US, Europe and Asia
Michelle Haarhues Keeping up with SSMS.
Ready Pre-day Azure Monitoring Workshop
Setting up PostgreSQL for Production in AWS
Azure SQL Database for Business Critical Cloud Applications
Microsoft Azure Services Platform
06 | SQL Server and the Cloud
Designing Database Solutions for SQL Server
Presentation transcript:

ZORAN BARAC DATA ARCHITECT at CIN7 Use PowerShell to deploy and configure Azure SQL Database (PaaS) with good resilience to outages and with integrated Azure SQL Analytics monitoring solution

Thanks to our great Sponsors

About me Zoran Barac Data Architect @ CIN7 MCT, MCSE zoran.barac.zof@gmail.com blog.sqlserveronline.com www.linkedin.com/in/zoran-barac/ www.meetup.com/Auckland-SQL-User-Group/

HA and Azure SQL Database - Standard availability model - Premium availability model

Two high-availability architectural models that are used in Azure SQL Database: Standard availability model that is based on a separation of compute and storage. It relies on high availability and reliability of the remote storage tier. This architecture targets budget-oriented business applications that can tolerate some performance degradation during maintenance activities. Premium availability model that is based on a cluster of database engine processes. It relies on the fact that there is always a quorum of available database engine nodes. This architecture targets mission critical applications with high IO performance, high transaction rate and guarantees minimal performance impact to your workload during maintenance activities.

Service Tiers and HA - General Purpose/Standard - Business Critical/Premium

Basic, Standard, and General Purpose service tier availability The standard availability model includes two layers: Stateless compute layer that runs the sqlserver.exe process (contains only transient and cached data on the attached SSD, such as TempDB, model database, plan cache, buffer pool ). A stateful data layer with the database files (.mdf/.ldf) that are stored in Azure Blob storage. Azure blob storage has built-in data availability and redundancy feature.

Premium and Business Critical service tier availability Premium and Business Critical service tiers leverage the Premium availability model, which integrates compute resources (SQL Server Database Engine process) and storage (locally attached SSD) on a single node. High availability is achieved by replicating both compute and storage to additional nodes creating a three to four-node cluster. By default, the cluster of nodes for the premium availability model is created in the same datacenter. With the introduction of Azure Availability Zones, SQL Database can place different replicas in the cluster to different availability zones in the same region.

Azure SQL Database DR Architecture

Powershell script

PowerShell Script Connect to Azure Account, Use existing or create new Resource Group, Create primary Azure Logical SQL Server, Set an admin login and password for your server, Set Firewall Settings (IP address range), Create Azure SQL Database, Create a new login for the Azure SQL Server, Create a new DB user for the created login, Create failover Azure Logical SQL Server, including admin login, password and firewall rules (Optional), Create Failover Group Name (Optional), Add Database to the existing Failover Group (Optional), Create a new login for the Failover Azure SQL Server with matching SID (Optional), Create the workspace, enable diagnostics and configure data collection, Add the Azure SQL Analytics (Preview) solution to Log Analytics workspace, Send Email notification with connection string parameters.

Manage Credentials Connect-AzureRmAccount Connect to Azure with an authenticated account for use with Azure Resource Manager cmdlet request Get-AzureRmSubscription Get subscriptions that the current account can access. Select-AzureRmSubscription Select a subscription and account to target in Azure PowerShell cmdlets Get-AzureRmContext The Get-AzureRmContext cmdlet gets the current metadata used to authenticate Azure Resource Manager requests. This cmdlet gets the Active Directory account, Active Directory tenant, Azure subscription, and the targeted Azure environment.

PowerShell Script – Resource Group Script Parameters / Arguments Comma separated list of variables, optionally prefixed with a [data type] and/or with = default values. New-AzureRmResourceGroup Azure resource group is a collection of Azure resources that are deployed as a unit. The New-AzureRmResourceGroup cmdlet creates an Azure resource group. You can create a resource group by using just a name and location.

PowerShell Script – Azure SQL New-AzureRmSqlServer The New-AzureRmSqlServer cmdlet creates an Azure SQL Database server New-AzureRmSqldatabase The New-AzureRmSqlDatabase cmdlet creates an Azure SQL database. You can also create an elastic database by setting the ElasticPoolName parameter to an existing elastic pool. New-AzureRMSqlDatabaseFailoverGroup Creates a new Azure SQL Database Failover Group for the specified servers. If the primary server is affected by an outage, automatic failover of the endpoints and databases will be triggered as dictated by the Failover Group's failover policy and grace period. Newly created Failover Groups do not contain any databases. Add-AzureRmSqlDatabaseToFailoverGroup Adds one or more databases on a Azure SQL Database Failover Group's primary server to to that Failover Group. The databases must not be secondary databases in existing replication relationships. The command will start geo-replication of any added databases to the Failover Group's secondary server.

PowerShell Script – Operational Insights New-AzureRmOperationalInsightsWorkspace The New-AzureRmOperationalInsightsWorkspace cmdlet creates a workspace in the specified resource group and location. Set-AzureRmOperationalInsightsIntelligencePack The Set-AzureRmOperationalInsightsIntelligencePack cmdlet enables the specified Intelligence Pack. In this case AzureSQLAnalytics’ Set-AzureRmDiagnosticSetting The Set-AzureRmDiagnosticSetting sets the logs and metrics settings for the resource.

Azure SQL Analytics - Cloud Monitoring Solution

Azure SQL Analytics Azure SQL Analytics is an advanced cloud monitoring solution for monitoring performance of Azure SQL databases, elastic pools, and Managed Instances at scale and across multiple subscriptions through a single pane of glass. It collects and visualizes important Azure SQL Database performance metrics with built-in intelligence for performance troubleshooting. It uses Azure Diagnostic metrics along with Azure Monitor views to present data about all your Azure SQL databases, elastic pools, and databases in Managed Instances in a single Log Analytics workspace.

Thank you…

Resources https://docs.microsoft.com/en-us/azure/sql-database/sql-database-high-availability https://docs.microsoft.com/en-us/azure/azure-monitor/insights/azure-sql https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/?view=azurermps-6.13.0#profile https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/new-azurermresourcegroup?view=azurermps-6.13.0 https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/new-azurermsqldatabase?view=azurermps-6.13.0 https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/new-azurermsqlserver?view=azurermps-6.13.0 https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/new-azurermsqldatabasefailovergroup?view=azurermps-6.13.0 https://docs.microsoft.com/en-us/powershell/module/azurerm.operationalinsights/set-azurermoperationalinsightsintelligencepack?view=azurermps-6.13.0