azure sql
775 TopicsMI link support for multiple databases in an Always On availability group is now generally available
We are excited to announce the general availability of multi-database mode for MI link, which enables you to replicate multiple databases in an Always On availability group between SQL Server and Azure SQL Managed Instance through a single MI link. Managed Instance link provides near-real-time database replication between SQL Server and Azure SQL Managed Instance, helping you modernize to Azure at your own pace. Built on distributed availability group technology, MI link provides a secure and reliable connection between SQL Server and Azure SQL Managed Instance and can be used for migration, disaster recovery, and hybrid scenarios. With multi-database mode, you can extend an existing Always On availability group to Azure SQL Managed Instance and replicate all databases in that availability group through a single MI link. You can also start with standalone databases. When standalone databases are selected in SQL Server Management Studio (SSMS), the wizard creates a single-node availability group and adds the selected databases to it. With general availability, multi-database mode makes it easier to manage scenarios involving multiple databases while maintaining the flexibility and near-real-time replication provided by MI link. What’s new with general availability General availability introduces these important updates compared with the public preview: All Azure SQL Managed Instance update policies are now supported, including the SQL Server 2022 update policy, which was not supported during the public preview. You can now set up bidirectional multi-database MI link mode between SQL Server 2022 and Azure SQL Managed Instance using the SQL Server 2022 update policy. Note that SQL Server 2025 and Managed Instances using the SQL Server 2025 update policy have been supported since public preview. Managed Instances deployed in instance pools are now also supported with MI link multi-database mode. With SQL Server 2022 CU11 and SQL Server 2025 CU28 as a part of the general availability release, we are introducing three new stored procedures to improve supportability and troubleshooting of MI link in multi-database mode: sys.sp_milink_check - provides information about the replication health of individual databases in multi-database mode. Use this stored procedure to determine whether an individual database is stuck in seeding or replication. sys.sp_milink_reseed - restarts seeding for individual databases that are stuck in seeding in multi-database mode without requiring you to remove and re-add the database to the availability group. sys.sp_milink_repair - repairs an unhealthy replication for an individual database in multi-database mode link. Use SQL Server Management Studio (SSMS) 22.12.1 when configuring and managing MI link in multi-database mode. This version includes a number of experience improvements and bug fixes. We are also introducing better support for multiple SQL Server nodes in Always On availability groups (optional): Multi-node availability group support in the MI link wizard (preview) enables automatic configuration of all server nodes in an Always On availability group with MI link, allowing the link to persist after an availability group failover. Instead of configuring each server node yourself, the MI link wizard can configure all server nodes for you. This optional SSMS feature is in preview and must be enabled by selecting Tools > Manage Preview Features in SSMS. Support for the SQL Server 2022 update policy expands the range of SQL Managed Instance environments that can take advantage of multi-database mode and provides greater flexibility when planning migrations and hybrid configurations. Multi-node availability group support in the MI link wizard (preview) eliminates the need to manually configure each server node, saving time and helping ensure that the MI link persists across local availability group failovers. How multi-database mode works With multi-database mode, MI link extends an Always On availability group between SQL Server and Azure SQL Managed Instance. A single link replicates multiple databases in the availability group to the target replica. The link uses a distributed availability group to replicate changes in near real time from the current primary replica to database copies on the secondary replica, keeping the databases synchronized. You can: Extend an existing Always On availability group to Azure SQL Managed Instance. Start with standalone SQL Server databases and let SSMS create the availability group. Add or remove databases from the availability group as your environment evolves. Fail over or cut over the availability group to Azure SQL Managed Instance when you are ready. This approach simplifies working with applications that rely on multiple databases because the databases can be managed and migrated together through a single MI link rather than through separate links for each database. Supportability Requirement Details SQL Server SQL Server 2022 with CU28 and later or SQL Server 2025 with CU11 and later. Enterprise or Developer edition. Standard edition is not supported for multi-database mode because Basic availability groups support only a single database. Azure SQL Managed Instance All service tiers, General Purpose, Next-Gen and Business Critical are supported. Use the following Azure SQL Managed Instance update policy for the following configurations: For one-way replication from SQL Server to Azure SQL Managed Instance: For one-way replication from SQL Server 2022, use Azure SQL Managed Instance with update set to SQL Server 2022, SQL Server 2025, or Always-up-to-date. For one-way replication from SQL Server 2025, use Azure SQL Managed Instance with update policy set to SQL Server 2025, or Always-up-to-date. SQL Server 2022 update policy is not supported. For two-way replication and bidirectional failover (role-reversal) between SQL Server and Azure SQL Managed Instance, the update policy must match the exact version of your SQL Server: For bidirectional replication and failover between SQL Server 2022 and Azure SQL Managed Instance, use SQL Server 2022 update policy only. Other update policies are not supported. For bidirectional replication and failover between SQL Server 2025 and Azure SQL Managed Instance, use SQL Server 2025 update policy only. Other update policies are not supported. SSMS SSMS 22.12.1 or later for the multi-database link capability. Automation Az module 16.3.0 or later and Az.Sql 7.1.0 or later, or the corresponding Azure APIs. One link for an existing multi-database availability group If you already use an Always On availability group, multi-database link mode lets you extend the complete database group to Azure SQL Managed Instance without creating a separate availability group for every database. All databases in the link move together as one managed group. Databases on the primary are read-write, while their copies on the secondary are read-only. Use of your existing Always On AG listener endpoint is supported with multi-database mode MI link, allowing the link to remain operational after a local AG failover. : A multi-database Always On availability group replicated to Azure SQL Managed Instance through one Managed Instance link. The diagram illustrates the availability group relationship rather than a specific Azure SQL Managed Instance service-tier replica count. Managed Instance link is supported across all Azure SQL Managed Instance service tiers. Run multiple links in different directions A single SQL Server instance can participate in multiple links. Each link can carry a different availability group, and supported links can replicate in different directions at the same time. In the following example, AG1 (containing DB1, DB2, and DB3) replicates from SQL Server to Azure SQL Managed Instance through MI link 1. AG2 (containing DB4, DB5, and DB6) replicates from Azure SQL Managed Instance to SQL Server through MI link 2. Both links can operate at the same time between the two instances. : Two multi-database availability groups using separate links with opposite replication directions. Important: Database names must be unique in this configuration. A database cannot be renamed on the secondary while it is participating in replication to resolve a naming conflict. Replicate one availability group to multiple managed instances Multi-database mode also supports fan-out topologies. You can replicate multiple availability groups to one managed instance, or replicate the same availability group to different managed instances. For example, separate links can target managed instances in different Azure regions. : One multi-database availability group replicated through separate links to two Azure SQL managed instances. Get started To use MI link multi-database mode, install SSMS 22.12.1 and make sure that your SQL Server and Azure SQL Managed Instance environments meet the requirements for the scenario you want to configure. To enable automatic configuration of multiple server nodes in your availability group, in SSMS select Tools > Manage Preview Features, and select "Enable multi-node availability group support in the Managed Instance link wizard." Learn more about configuring MI link with multiple databases in an Always On availability group. Share your feedback We would love to hear about your experience with multi-database mode. Please share questions, feedback, and feature suggestions through the Managed Instance link feedback form.379Views0likes0CommentsMultiple secondaries for failover groups is now in public preview
Failover groups for Azure SQL Database is a business continuity solution that lets you manage the replication and failover of databases to another Azure SQL logical server. With failover groups, you get automatic endpoint redirection, so you don't have to change the connection string for your application after a geo-failover—connections are automatically routed to the current primary. Until now, Azure SQL failover groups have only supported one secondary. We're excited to announce that Azure SQL Database failover groups support for up to four secondaries is now available in public preview. This enhancement gives you greater flexibility for disaster recovery, regional read scale-out, and complex high-availability scenarios. What's New? Create up to four secondaries for each failover group, deployed across the same or different Azure regions. Use the additional secondaries to add read scale-out capabilities to additional regions, adding flexibility for read-only workloads. Greater flexibility for disaster recovery planning with multiple failover targets. Improved resilience by distributing secondaries across multiple geographic regions. Facilitate migration to another region without sacrificing existing disaster recovery protection. How to Get Started Getting started with multiple secondaries in Azure SQL failover groups is straightforward. In the Azure Portal, the process to create a failover group remains the same. You can add additional secondaries using the process below. Adding Additional Secondary Servers to a Failover Group in the Portal Go to your Azure SQL Database logical server in the Azure portal. Open the "Failover groups" blade under "Data management". Select an existing failover group. Click the "Add server" menu item to add additional secondary servers. A side panel opens displaying the list of secondary servers and a dropdown to select which server should operate as the read-only listener endpoint target. The additional secondary server can be in the same or different Azure region as the primary. NOTE: The read-only listener endpoint dropdown lists all existing secondary servers as well as the secondary server being added. This allows you to designate which secondary server should receive read-only traffic routed through the `<fog-name>.secondary.database.windows.net` endpoint. However, the server selected as the read-only listener endpoint target should not be in the same region as the primary server if you intend to serve read workloads with that endpoint. After selecting the additional secondary and specifying your read-only listener endpoint target, click "Select" on the side panel and click "Save" in the main menu to apply your failover group configuration. The additional secondary will be added and seeding of databases in the failover group will begin to that additional secondary. You can modify your read-only listener endpoint target with the "Edit configuration" menu option. TIP: If you want zone redundancy enabled for the secondary databases, ensure that the secondary servers are in regions that support availability zones and configure the zone redundancy setting appropriately. Using PowerShell Creating a failover group with multiple secondaries can also be done with PowerShell. Example - Create a failover group with multiple secondaries: New-AzSqlDatabaseFailoverGroup ` -ResourceGroupName "myrg" ` -ServerName "primaryserver" ` -PartnerServerName "secondaryserver1" ` -FailoverGroupName "myfailovergroup" ` -FailoverPolicy "Manual" ` -PartnerServerList @("secondary_uri_1", "secondary_uri_2", "secondary_uri_3", "secondary_uri_4") ` -ReadOnlyEndpointTargetServer "secondary_uri_1" where "secondary_uri_n" is in the form below and secondaryserver1 is also included in the list "/subscriptions/your_sub_guid/resourceGroups/your_resource_group/providers/Microsoft.Sql/servers/your_server_name" Example - Add additional secondary servers to an existing failover group: Set-AzSqlDatabaseFailoverGroup ` -ResourceGroupName "myrg" ` -ServerName "primaryserver" ` -FailoverGroupName "myfailovergroup" ` -FailoverPolicy "Manual" ` -PartnerServerList @("secondary_uri_1", "secondary_uri_2", "secondary_uri_3", "secondary_uri_4") ` -ReadOnlyEndpointTargetServer "secondary_uri_1" where "secondary_uri_n" is in the form below and secondaryserver1 is also included in the list "/subscriptions/your_sub_guid/resourceGroups/your_resource_group/providers/Microsoft.Sql/servers/your_server_name" Performing a Failover With multiple secondaries, you can choose which secondary to promote to primary during a failover. Using the Portal Navigate to your SQL server's Failover groups blade. Select the failover group you want to fail over. In the servers list, locate the secondary server you want to promote. Click the ellipsis menu (...) next to the server. Select Failover for a planned failover (with full data synchronization) or Forced failover for an unplanned failover (potential data loss). TIP: The ellipsis menu also includes a Remove server option, allowing you to remove a secondary server from the failover group. Using PowerShell For PowerShell, use the `Switch-AzSqlDatabaseFailoverGroup` cmdlet to perform a failover. Example: Switch-AzSqlDatabaseFailoverGroup ` -ResourceGroupName "myrg" ` -ServerName "secondaryserver1" ` -FailoverGroupName "myfailovergroup" Key Benefits Enhanced Disaster Recovery - Multiple geo-secondaries provide additional failover targets, reducing the risk of total service disruption. Regional Read Scale-Out - Distribute read-only workloads across multiple regions. Flexible HA/DR Architecture - Design your high-availability architecture based on your specific business requirements. Ease migrations to another region - Leverage the additional secondary to migrate to a different Azure region while maintaining DR protection. Limitations & Notes You can create up to four secondaries per failover group. Each secondary must be hosted on a different logical server from the primary. Secondary servers can be in the same region as the primary or in different regions. The read-only listener endpoint target must be in a different region from the primary if you want to make use of the read-only listener for read workloads. The failover group name must be globally unique within the `.database.windows.net` domain. Chaining (creating a geo-replica of a geo-replica) is not supported. Secondary databases in a failover group inherit the backup storage redundancy and zone redundancy configuration from the primary, depending on the service tier. For non-Hyperscale databases: Secondary databases will not have high availability (zone redundancy) enabled by default. Enable it after the failover group is created. For Hyperscale databases: Secondary databases inherit the high availability settings from their respective primary databases. Best Practices Use paired regions when possible—failover groups in paired regions have better performance compared to unpaired regions. Test your failover procedures regularly using planned failovers to ensure your disaster recovery plan works as expected. Monitor replication lag using `sys.dm_geo_replication_link_status` or the Replication Lag metric in Azure Monitor to ensure your secondaries are synchronized. Consider your RTO and RPO requirements when designing your failover group architecture. Use the read-write listener (`<fog-name>.database.windows.net`) for write workloads and the read-only listener (`<fog-name>.secondary.database.windows.net`) for read workloads to take advantage of the automatic endpoint redirection after failovers. Use customer-managed failover group policy to ensure your RTO and RPO are in your control. Frequently Asked Questions What services tiers are supported for multiple secondaries in failover group? The following service tiers are supported: Standard General Purpose Premium Business Critical Hyperscale When there is more than one secondary, how does read only endpoint work? While creating a failover group with more than one secondary you must designate one of the secondaries as the read only endpoint target. All read only connections will be routed to the designated secondary. If a failover group is created with just one secondary, then the read only endpoint will default to the only available secondary. If I have created multiple secondaries for failover group, can I update the read only endpoint at any time? Yes, you can "Edit configuration" in the portal or use PowerShell to change the read-only listener endpoint target. How does Auto DR work when multiple secondaries exist for a failover group? The primary server (read write endpoint) and secondary server (designated as read only endpoint) will be used as a pair for Auto DR failover and endpoints will be swapped upon failover. Learn More Failover groups overview & best practices - Azure SQL Database | Microsoft Learn Configure a failover group for Azure SQL Database | Microsoft Learn Active Geo-Replication - Azure SQL Database | Microsoft Learn Business continuity overview - Azure SQL Database | Microsoft Learn PowerShell - New Failover Group PowerShell - Modify Failover Group PowerShell - Perform a failover1.3KViews0likes2CommentsFrom Discovery to Defense: Advancing Security Across Azure Databases with AI
Organizations rely on Azure Databases to power critical applications and protect valuable data. Securing these workloads means finding potential vulnerabilities early, validating them rigorously, and delivering reliable protections. AI-assisted tools support our security researchers and engineers in examining code, identifying complex patterns, and investigating potential issues. This expanded visibility helps our teams identify and address potential risks and apply what they learn to strengthen security throughout the product lifecycle. Our responsibility remains clear: combine AI-assisted analysis with human expertise to turn credible findings into dependable protection for customers. AI-assisted vulnerability discovery Our engineering teams are using automation and AI to support vulnerability discovery. We are evaluating the latest cyber-capable models to help researchers identify potential security issues and focus on findings that warrant deeper investigation. This proactive discovery gives experts more opportunities to investigate potential vulnerabilities and take action to help reduce customer risk. More broadly, Microsoft participated in the initial cohort of Project Glasswing, an industry initiative focused on applying advanced AI capabilities responsibly to identify and mitigate vulnerabilities and coordinate defensive response. Building on that work, we continue to develop our vulnerability-scanning capabilities by evaluating newer AI models for defensive security research. These capabilities complement established security practices such as static and dynamic analysis, fuzzing, defensive security testing, and research from the global security community. We are using AI to expand the reach of these efforts and direct experts to areas that warrant deeper investigation. Finding a potential issue, however, is only the first step. Our experts validate findings, assess the associated risks, and determine the appropriate response. When remediation is needed, engineers develop and test fixes to address the identified vulnerability and check for regressions before delivery. Turning findings into protection We use AI and automation throughout the vulnerability response lifecycle, from investigating potential findings to applying lessons that help prevent similar issues (Figure 1). Figure 1. The AI-assisted vulnerability discovery and response lifecycle. AI supports analysis throughout this lifecycle. Our security researchers, developers, and service engineers remain accountable for validating findings, making risk-based decisions, and ensuring the quality of proposed fixes. Coordinating a reliable response through MSRC Faster discovery must be matched by remediation that is both responsive and dependable. The Microsoft Security Response Center (MSRC) coordinates vulnerability response across Microsoft, helping move credible findings through assessment, validation, prioritization, remediation, and disclosure. The response may differ across database products and services. For installed software such as SQL Server, remediation may require customers to install a security update for the applicable supported version. Customers can find the current general distribution release (GDR) and cumulative updates on the maintained Latest updates and version history for SQL Server page. For managed services such as Azure Databases, Microsoft may deploy a service-side mitigation or engineering change without customer action. Microsoft publishes information about critical cloud-service vulnerabilities in accordance with its cloud-service Common Vulnerabilities and Exposures (CVE) disclosure practices. Our security work extends beyond Azure through upstream contributions to PostgreSQL and its extension ecosystem. For example, Microsoft engineers authored fixes for encryption and type-confusion vulnerabilities in the August 2026 PostgreSQL update and contributed fixes to pg_squeeze and pg_background. Whether a fix is contributed upstream or deployed in an Azure service, addressing the reported vulnerability is only part of the work. Our engineers also review and test proposed fixes to assess their effectiveness and broader impact across relevant products and configurations before release. AI assists their investigations and assessment of possible remediations, while human validation and the coordinated MSRC response process remain central. Turning lessons into prevention The value of vulnerability discovery extends beyond resolving an individual issue. A validated finding can reveal broader patterns in code, architecture, testing, or development practices. We feed these lessons into the Security Development Lifecycle and engineering systems. A single investigation can improve analysis rules, expand test coverage, and inform new detection techniques. These improvements can also help teams identify and address similar weaknesses elsewhere, including in related SQL Server components. Where database products and services share technologies or engineering practices, we can apply those lessons more broadly. The goal is to address not only the reported vulnerability, but also the conditions that allowed it to occur, helping prevent similar issues in future releases. From discovery to defense Our experts validate findings, coordinate the response through MSRC, and test proposed fixes before delivery. Lessons from these investigations also inform how we build and secure our products. We will continue strengthening this work across Azure Databases, using AI where it helps and keeping people accountable for decisions and quality. Our measure of progress is not simply how much we discover, but how effectively we reduce risk for customers.201Views4likes0CommentsAzure SQL Hyperscale Cross-database querying: now in limited preview
Azure SQL Database Hyperscale now supports cross-database queries in limited preview. Use familiar [database].[schema].[object] names to query across databases in the same Hyperscale elastic pool from a single connection, with no external tables or extra network setup. It's built to simplify migrations of SQL Server apps that rely on cross-database queries, and to replace app-side joins and duplicated data. Sign up at aka.ms/azuresql-crossdb-prpr.1KViews0likes0CommentsCan Azure SQL Handle Your Database When Traffic Suddenly Doubles?
Hi everyone, Imagine your application is running smoothly, but suddenly the number of users doubles. Queries become slower, response times increase, and users start experiencing delays. How would you handle this situation in Azure SQL Database? I've been exploring different database concepts and using resources like Certs4All to support my certification preparation, but I'd love to hear how experienced professionals approach real-world scenarios like this. A few questions I'm curious about: Would you scale up the database or focus on query optimization first? How would you identify the biggest performance bottleneck? Can automatic tuning make a noticeable difference? What monitoring tools would you use to catch these issues early? It would be interesting to hear some real-world experiences from people working with Azure SQL. Thanks!25Views0likes0CommentsAI-assisted Query Performance Tuning comes to SSMS GitHub Copilot Agent mode (in Preview)
Hi there, and thanks for stopping by. Let me start with a question. When was the last time a single query ruined your afternoon? Maybe it was a high-CPU alert that popped up right after a release. Maybe a report that used to come back in two seconds suddenly took two minutes, or maybe you were simply staring at an execution plan, scrolling left and right across a sea of operators, trying to figure out which one was the real villain. If any of that sounds familiar, this post is for you. Let me tell you about something our team has been working on for a while, and why I'm genuinely excited that you can now try it yourself. So, what is it? GitHub Copilot in SSMS 22.12.1 Release Notes onwards can now help you understand why a query is slow or resource-intensive, and how to improve it. In Agent mode, Copilot uses query performance tuning skills to analyze your query and its execution plan, help identify likely root cause, and recommend potential fixes ordered by expected impact. Here are few things you can ask it to do: Help improve this query Suggest a rewritten version of a query that's expected to run faster Recommend any missing index that can help improve the query execution time Recommend query hints, and explain the trade-offs What a conversation actually looks like Let me walk you through how this feels in practice, and the experience that you see while this improvement is in Preview. You open a query editor in SSMS. Connect to a dev or test copy of the database where you want to analyze the query and paste the slow or high CPU query in the query editor. You open Copilot Chat in SSMS and switch to Agent mode, pick a model, and simply ask: Why is this query slow? or can you improve this query? By default, the agent starts with a quick triage and gives you a first answer: the most likely cause and potential recommendations. If that's enough, great. If you want to go deeper, just keep talking to it: Rewrite this query to make it run faster. Is there an index that would further improve the rewritten query? Do the plan analysis and identify the cause of slowness. For plan analysis, you can open the estimated or actual execution plan in the query editor in SSMS and ask the agent to analyze it. Do a full analysis of this query and its execution plan. A full analysis comes back as a report you can actually read: baseline metrics from the plan, the root cause (an anti-pattern, an implicit conversion blocking an index seek, a bad cardinality estimate and so on), ordered recommendations with their reasoning and estimated improvement. You stay in control. Always. I want to be very clear about this part, because trust matters more than speed. Copilot recommends changes, but it doesn't apply them to your database. By default, it analyzes the estimated execution plan and doesn't run the user query. If a step needs to run something, for example to collect actual runtime statistics or actual execution plan, the agent asks for your permission first. When you get a potential recommendation, you like: review the reasoning, copy the script into a query editor, test it in a dev or test database with representative data, compare duration, CPU time and logical reads, and then roll it out through your normal change management process. And please, always review scripts before you run them. AI can make mistakes, and you know your system better than any model does. Let's get you started Refer Query performance tuning in SSMS GitHub Copilot Agent mode for detailed instructions. Here's what you need at a high-level: SSMS 22.12.1 or later Release Notes for SQL Server Management Studio (SSMS) | Microsoft Learn , with the AI Assistance workload installed A GitHub account with Copilot Agent mode access Preview features turned on for the SQL tools MCP server: go to Tools > Options > Preview Features and select Turn on Preview Features for SQL tools MCP server Restart the sql-tools MCP server from the tools list in Copilot Chat (or just close and reopen SSMS) Type #improve-query-performance in the chat to confirm the skill is loaded and if the skill is visible you are ready to test this functionality A few tips from our preview participants that I'd pass on to you: Connect to the database where the problem is potentially reproducible or, so Copilot has the right context Include the full query text and describe the symptom: high CPU, long duration etc. Start with a quick analysis, then go deeper when you need to Test this functionality outside your production environment during the Preview phase. What it doesn't do In preview, the agent analyzes one query at a time, not a batch or whole workload. Estimated improvements can differ from actual results. By default, the agent analyzes the estimated execution plan, so it doesn't need to execute the user query. For more accurate results, you can prompt it to use the actual execution plan instead. Because this requires running the actual query, the agent asks for your permission first. New indexes cost storage and can slow down writes, so weigh that before creating them. Tell us what you think and how you want us to improve it We'd love to hear from you. Try it on a query that has been troubling you. Then tell us how it went. Use the thumbs-up and thumbs-down buttons in the chat, report a problem or submit new ideas here Developer Community for SQL Server Management Studio. Learn more Query performance tuning in SSMS GitHub Copilot Agent mode | Microsoft Learn Get Started - GitHub Copilot in SQL Server Management Studio | Microsoft Learn GitHub Copilot Agent Mode - GitHub Copilot in SQL Server Management Studio | Microsoft Learn Troubleshoot GitHub Copilot - GitHub Copilot in SQL Server Management Studio | Microsoft Learn Review a Database Agents performance issue (Preview) - Microsoft Fabric | Microsoft Learn543Views1like0CommentsWhat's new in Azure database security: stronger encryption, simpler identity, and networking
At Microsoft Ignite 2026, we announced nine security enhancements across Azure SQL Database, Azure Database for PostgreSQL, and Azure HorizonDB, covering encryption, identity, and networking. Azure SQL Database: Stronger Encryption, More Control We're continuing to invest in making Azure SQL Database more secure, flexible, and easier to manage. AES-256 customer-managed keys for TDE | Generally Available Azure SQL Database now supports AES-256 customer-managed keys for Transparent Data Encryption (TDE), providing a modern alternative to traditional RSA-based encryption protectors. Our recommendation: migrate your TDE protectors from RSA keys to AES-256 keys. Moving to AES-256 gives you greater cryptographic flexibility and is an important step in Microsoft's broader post-quantum cryptography journey. Learn more about customer-managed keys for TDE Suspend and resume TDE scans | Public Preview Encryption operations can consume significant resources, particularly for large databases. With the new ability to suspend and resume TDE encryption scans, customers have more control over when encryption work takes place, helping reduce the impact on business-critical workloads during busy periods. Explore TDE scan management Regular expression-based Dynamic Data Masking | Generally Available Protecting sensitive information just got more flexible. Dynamic Data Masking now supports regular expressions, enabling more precise masking rules for sensitive data patterns without requiring application changes. Discover regex-based Dynamic Data Masking Database-level managed identity | Public Preview Managing access to external resources is becoming simpler and more secure. With database-level managed identities, individual databases can authenticate to supported Azure services without managing credentials, enabling more granular access control and reducing reliance on shared identities. Learn about database-level managed identities Azure Database for PostgreSQL: Greater Networking Flexibility Private networking enhancements | Generally Available Secure connectivity is essential, but networking requirements can evolve as applications grow. Azure Database for PostgreSQL Flexible Server now supports migrating VNet-integrated servers to a private endpoint-capable configuration. This gives customers greater flexibility to adopt Azure Private Link connectivity while maintaining private access to their databases. Learn how to migrate to private endpoint-capable networking Azure HorizonDB: Enterprise-Ready Security Azure HorizonDB continues to expand its security capabilities, bringing more options for protecting data, securing connectivity, and simplifying identity management. Azure Private Link | Generally Available Keep database traffic on private network paths with Azure Private Link. Customers can connect securely to HorizonDB clusters through private endpoints and disable public network access when required. Explore Azure Private Link for HorizonDB Encryption at rest with customer-managed keys | Public Preview Organizations that require greater control over encryption keys can now use customer-managed keys with Azure HorizonDB. This capability enables customers to manage their own encryption keys through Azure Key Vault, helping meet organizational security and compliance requirements. Learn more about customer-managed keys for HorizonDB Microsoft Entra authentication | Generally Available Simplify database authentication with Microsoft Entra ID. By integrating with Microsoft Entra, organizations can centrally manage identities and reduce their reliance on traditional database passwords. Explore Microsoft Entra authentication User-assigned managed identities | Generally Available Managed identities help eliminate the need to manage credentials manually. With support for user-assigned managed identities, Azure HorizonDB makes it easier to securely integrate with supported Azure services and manage identity lifecycles independently of database resources. Learn about managed identities in HorizonDB Building a more secure future for Azure databases These announcements highlight our continued commitment to making security a core part of the Azure database experience. Whether you're looking to strengthen encryption, prepare for emerging cryptographic threats, simplify identity management, or secure database connectivity, these capabilities give you more options to protect your data while reducing operational complexity. We encourage you to explore these new capabilities, check out the detailed documentation, and share your feedback.435Views1like1CommentStrengthening Ransomware Resilience with Immutable Backups in Azure SQL DB and Azure SQL MI
Ransomware attacks are becoming increasingly sophisticated. Attackers no longer focus only on encrypting or stealing production data. They also target backups, knowing that eliminating an organization's recovery options can turn a security incident into a prolonged business disruption. Imagine discovering that your database has been compromised, only to find that the backups you were counting on have also been deleted. Even with a comprehensive backup strategy, recovery becomes significantly more challenging when attackers can tamper with the very data needed to restore business operations. That's why backup immutability matters. We're continuing to strengthen data protection in Azure SQL Database and Azure SQL Managed Instance with a consistent set of backup immutability capabilities spanning both point-in-time restore (PITR) and long-term retention (LTR) backups. Whether you're protecting recent transactions, maintaining historical backups for years, or preserving data for regulatory requirements, Azure SQL provides multiple layers of protection to help ensure your recovery points remain available when you need them most. What makes immutable backups different? Traditional backup retention policies define how long backups should be kept. But retention alone doesn't necessarily prevent someone with sufficient privileges from deleting backups before they expire. Backup immutability adds another layer of defense. With immutability, protected backups cannot be modified, overwritten, or deleted during their immutability period, even by administrators with elevated privileges. This is particularly valuable when attackers gain access to privileged accounts. While compromised credentials may allow attackers to disrupt production environments, immutable backups help prevent them from destroying protected recovery points. Think of it as adding a safety barrier around your backups, one that helps preserve your ability to recover even when other defenses have been compromised. 1. Built-in protection for your recent backups, automatically One of the simplest ways to improve security is to make protection automatic. Azure SQL Database and Azure SQL Managed Instance now provide immutable protection for up to the most recent seven days of PITR backups by default. The best part? There's nothing you need to do to get started. No additional configuration. No separate storage accounts to manage. No immutability policies to create. No changes to existing backup and restore workflows. No additional charge for the default immutability protection. This capability is integrated directly into the Azure SQL managed backup service. For customers, that means an additional layer of protection is already working behind the scenes, helping safeguard recent recovery points against accidental deletion, malicious activity, and compromised administrative credentials. Whether you're running a business-critical application or a smaller operational database, this built-in protection provides a stronger starting point for your recovery strategy. 2. Need longer protection? Lock immutability to your PITR retention period Seven days of automatic protection is a great starting point, but every organization has different recovery requirements. Some businesses need additional time to detect security incidents, investigate suspicious activity, and determine when their data was last known to be healthy. For these scenarios, Azure SQL offers the option to extend immutable protection across the entire configured PITR backup retention period, up to 35 days where supported. For example, if your database is configured to retain 35 days of PITR backups, you can lock immutability to that retention period, protecting those recovery points against deletion or modification. Once enabled, the lock is permanent. The configured retention period can be increased, but it cannot be shortened. This provides an important safeguard against attempts to weaken backup protection, including those made using compromised administrative credentials. With this capability, organizations can align their backup protection with their recovery requirements, rather than relying solely on the default protection window. The experience is consistent across Azure SQL Database and Azure SQL Managed Instance, making it easier to establish a common data protection strategy across your Azure SQL environment. 3. Protect your long-term backups for years, not just days Recovering from a recent incident is only one part of a comprehensive data protection strategy. Many organizations also need to preserve historical backups for business continuity, regulatory compliance, internal governance, or audit requirements. Azure SQL long-term retention (LTR) supports retaining backups for up to 10 years. With LTR backup immutability, customers can go beyond simply retaining those backups and protect them against unauthorized modification or deletion. Time-based immutability allows organizations to specify how long backups must remain protected. Once immutability is enabled and locked, affected backups cannot be deleted until their retention period expires, even if an administrator later changes or removes the retention policy. Consider a financial services organization that needs to preserve database backups for seven years. By configuring locked time-based immutability, the organization can help ensure those backups remain protected throughout the required retention period. The same approach is valuable for healthcare organizations, enterprises with strict governance requirements, and businesses seeking additional safeguards against ransomware. With a consistent LTR immutability experience across Azure SQL Database and Azure SQL Managed Instance, customers can apply the same protection principles regardless of which service hosts their databases. 4. Preserve critical backups with legal holds Not every data preservation requirement has a predictable end date. An organization may need to retain a specific backup while responding to an audit, conducting an internal investigation, or addressing a legal matter. In these situations, a fixed retention period may not be sufficient. Azure SQL LTR backup immutability also supports legal holds, allowing customers to protect specific existing backups until the hold is explicitly removed. For example, if an organization needs to preserve a database backup associated with an ongoing investigation, it can apply a legal hold to prevent that backup from being deleted while the investigation continues. Legal holds can coexist with time-based immutability, providing flexibility for organizations that need both predictable retention policies and event-driven preservation requirements. This makes immutable backups valuable not only for ransomware resilience, but also for meeting evolving business and governance needs. 5. Consistent protection across Azure SQL Database and Azure SQL Managed Instance For organizations operating both Azure SQL Database and Azure SQL Managed Instance, consistency matters. Security and compliance teams shouldn't have to build entirely different backup protection strategies depending on where a database runs. With a consistent immutability experience across both services, customers can adopt a common approach to protecting recent and historical backups. Here's how the capabilities work together: Capability Customer benefit Default PITR immutability Automatic protection for up to seven days of recent backups Locked PITR immutability Extended protection aligned with configured PITR retention, up to 35 days Time-based LTR immutability Protect historical backups for their configured retention period, up to 10 years LTR legal holds Preserve selected backups until the hold is explicitly removed Together, these capabilities provide flexibility to address different recovery and retention requirements, from recovering a database to a recent point in time to preserving historical backups for years. And because the protection is integrated into Azure SQL's managed backup experience, customers don't need to build or maintain separate immutable backup storage infrastructure. 6. Building a stronger defense against ransomware Let's revisit a common ransomware scenario. An attacker gains access to a privileged account and attempts to disrupt business operations by modifying production data and deleting available backups. Without immutability, the attacker may be able to eliminate critical recovery options. With immutable backups, the story changes. Recent recovery points are protected: Default PITR immutability helps preserve backups from the most recent seven days. Extended recovery history can be safeguarded: Locked PITR immutability can protect a longer recovery window, giving organizations more options when investigating an incident. Historical backups remain protected: Locked LTR immutability helps prevent attackers from deleting backups that organizations need to retain for months or years. Critical records can be preserved: Legal holds provide additional protection for specific backups that must remain available during investigations or audits. While backup immutability doesn't prevent ransomware attacks or guarantee that every restore point is free from compromise, it makes it significantly harder for attackers to eliminate protected backups. That distinction is important. A strong ransomware recovery strategy isn't just about having backups. It's about being able to trust that your backups will still be there when you need them. Immutable backups complement other security and resilience practices, including identity protection, least-privilege access, monitoring, appropriate backup retention, and regular recovery testing. 7. Get started with immutable backups in Azure SQL Getting started is straightforward. If you're using a supported Azure SQL Database or Azure SQL Managed Instance database, you already benefit from default PITR backup immutability for up to seven days. From there, consider your organization's recovery and compliance needs: Review your PITR retention settings. Determine whether the default protection window meets your recovery objectives or whether you need a longer immutable retention period. Consider locked PITR immutability. For databases requiring extended protection, align immutability with your configured PITR retention. Evaluate your long-term backup requirements. Configure LTR immutability for backups that must remain protected for extended periods. Use legal holds when needed. Preserve specific historical backups for audits, investigations, or legal requirements. Test your recovery procedures. Validate that your organization can restore the right data when an incident occurs. Before applying permanent retention locks, carefully evaluate your requirements, because locked protection cannot be removed early. Also remember that backup immutability protects backups, not the database resource itself, so resource deletion protection and recovery planning remain important. Protecting your data. Preserving your ability to recover. As cyber threats continue to evolve, organizations need confidence not only that their data is protected, but also that they can recover when something goes wrong. With backup immutability spanning PITR and LTR backups across Azure SQL Database and Azure SQL Managed Instance, we're making it easier for customers to build stronger, more consistent data protection strategies. From automatic protection for recent backups to long-term immutable retention and legal holds, these capabilities help organizations safeguard critical recovery points, reduce ransomware-related risks, and strengthen their overall resilience. Because when the unexpected happens, the most important backup is the one you can still recover from. Learn more: PITR backup immutability for both Azure SQL DB and Azure SQL MI - Automatic backup immutability for Azure SQL Database and Azure SQL Managed Instance - Azure SQL | Microsoft Learn Azure SQL DB LTR backup immutability - Backup Immutability for Long-Term Retention Backups - Azure SQL Database | Microsoft Learn Azure SQL MI LTR backup immutability - LTR backup immutability - Azure SQL Managed Instance | Microsoft Learn My colleague SudhanshuKhera authored a comprehensive ransomware recovery plan for Azure SQL DB and Azure SQL MI - Overview: Recover Azure SQL Database and Azure SQL Managed Instance from a ransomware attack - Azure SQL Database | Microsoft Learn413Views0likes3CommentsGive each Azure SQL database its own identity for storage access (Preview)
Azure SQL Database can now draw that boundary at the database level. In this public preview, CREATE DATABASE SCOPED CREDENTIAL can use a managed identity that belongs to a single database, with external tables and OPENROWSET as the first features that use it. Software providers and enterprises can keep many databases on a shared logical server and still give each one its own storage permissions. A scoped credential isn’t a scoped identity Server-level managed identity already gives a database password-less access to storage. The catch is that every database on the server uses the same principal to connect to the Azure Storage, so they all share one set of permissions. A database-scoped credential lives inside one database, but the identity it selects can still be the server’s. The credential is database-scoped; the identity behind it may not be. One workaround was a dedicated logical server per customer, created solely to get a distinct identity. One identity per database Give each customer’s database its own user-assigned managed identity (UAMI), then grant each identity the Storage Blob Data Reader role on that customer’s container only. In each database, create the credential: CREATE DATABASE SCOPED CREDENTIAL CustomerStorageCredential WITH IDENTITY = 'DATABASE MANAGED IDENTITY'; The external data source references the credential. The SQL is identical in both databases, but each one resolves its own assigned identity, so there’s no stored secret and no database master key to manage. Here’s what that buys the assistant. Three independent checks sit between a question and Customer B’s files: the application decides who’s asking, SQL permissions decide what they can run, and Azure Storage decides whether this database’s identity can read this container. If the first two let something through, whether it’s a bug, an over-broad role, or a prompt that talks the app into something it shouldn’t, the third still refuses, because Customer A’s identity has no role on Customer B’s container. If you need to cut one customer off, you remove that identity’s storage role without touching anyone else’s. That’s defense in depth, and it only works as layers. It doesn’t replace SQL permissions, application authorization, or network controls. The last layer also holds only if grants are scoped per identity: reuse one identity across databases, or leave another broadly authorized path to storage, and you’ve rebuilt the shared boundary. For container-scoped grants, see Assign an Azure role for access to blob data. When the customer’s storage is in another tenant If a customer keeps storage in its own Microsoft Entra tenant, use IDENTITY = 'DATABASE FEDERATED CLIENT IDENTITY' instead. You register a multitenant application in the database’s tenant, configure it to trust the database UAMI, and set its application ID as the database’s federated client ID. The customer consents to the application and grants storage access to the application’s service principal in the storage tenant, not directly to your managed identity. No customer storage secret is stored in the database. For the setup, see Configure an application to trust a managed identity. What’s in the preview, and what isn’t Works with external tables and OPENROWSET with DATA_SOURCE against Azure Blob Storage and Azure Data Lake Storage Gen2. Each user database gets one user-assigned managed identity in the same subscription; system-assigned identities aren’t supported. It’s only available in Azure SQL Database (not in master). It doesn’t change how users and applications sign in to the database, and it doesn’t update existing credentials on its own. If you’re building AI apps, this is the line to watch: the preview covers the data your app reads from storage through SQL. REST calls, AI embeddings, auditing, and import/export aren’t included in this preview, and an assistant reading files isn’t the same as a database using this identity to call a model. If one of those matters to you, tell us which service you need to reach and what permissions it requires through Azure SQL feedback. Please leave out secrets and customer data. Already using database-level customer-managed keys? This preview reuses the identity settings from transparent data encryption. Grant storage access to the existing identity or federated application, then create a database-scoped credential that uses it. Where to start Follow Use database-level managed identity with Azure SQL Database for setup and troubleshooting. Creating a credential doesn’t prove it can reach storage, so test an allowed read and a denied read against another customer’s container before you rely on it.252Views0likes0Comments🔐 Public Preview: Backup Immutability for Azure SQL Database LTR Backups
The Ransomware Threat Landscape Ransomware attacks have become one of the most disruptive cybersecurity threats in recent years. These attacks typically follow a destructive pattern: Attackers gain unauthorized access to systems. They encrypt or delete critical data. They demand ransom in exchange for restoring access. Organizations without secure, tamper-proof backups are often left with no choice but to pay the ransom or suffer significant data loss. This is where immutable backups play a critical role in defense. 🛡️ What Is Backup Immutability? Backup immutability ensures that once a backup is created, it cannot be modified or deleted for a specified period. This guarantees: Protection against accidental or malicious deletion. Assurance that backups remain intact and trustworthy. Compliance with regulatory requirements for data retention and integrity. 🚀 Azure SQL Database LTR Backup Immutability (Public Preview) Microsoft has introduced backup immutability for Long-Term Retention (LTR) backups in Azure SQL Database, now available in public preview. This feature allows organizations to apply Write Once, Read Many (WORM) policies to LTR backups stored in Azure Blob Storage. Key Features: Time-based immutability: Locks backups for a defined duration (e.g., 30 days). Legal hold immutability: Retains backups indefinitely until a legal hold is explicitly removed. Tamper-proof storage: Backups cannot be deleted or altered, even by administrators. This ensures that LTR backups remain secure and recoverable, even in the event of a ransomware attack. 📜 Regulatory Requirements for Backup Immutability Many global regulations mandate immutable storage to ensure data integrity and auditability. Here are some key examples: Region Regulation Requirement USA SEC Rule 17a-4(f) Requires broker-dealers to store records in WORM-compliant systems. FINRA Mandates financial records be preserved in a non-rewriteable, non-erasable format. HIPAA Requires healthcare organizations to ensure the integrity and availability of electronic health records. EU GDPR Emphasizes data integrity and the ability to demonstrate compliance through audit trails. Global ISO 27001, PCI-DSS Require secure, tamper-proof data retention for audit and compliance purposes. Azure’s immutable storage capabilities help organizations meet these requirements by ensuring that backup data remains unchanged and verifiable. 🕒 Time-Based vs. Legal Hold Immutability ⏱️ Time-Based Immutability Locks data for a predefined period (e.g., 30 days). Ideal for routine compliance and operational recovery. Automatically expires after the retention period. 📌 Legal Hold Immutability Retains data indefinitely until the hold is explicitly removed. Used in legal investigations, audits, or regulatory inquiries. Overrides time-based policies to ensure data preservation. Both types can be applied to Azure SQL LTR backups, offering flexibility and compliance across different scenarios. 🧩 How Immutability Protects Against Ransomware Immutable backups are a critical component of a layered defense strategy: Tamper-proof: Even if attackers gain access, they cannot delete or encrypt immutable backups. Reliable recovery: Organizations can restore clean data from immutable backups without paying ransom. Compliance-ready: Meets regulatory requirements for data retention and integrity. By enabling immutability for Azure SQL LTR backups, organizations can significantly reduce the risk of data loss and ensure business continuity. ✅ Final Thoughts The public preview of backup immutability for Azure SQL Database LTR backups is a major step forward in ransomware resilience and regulatory compliance. With support for both time-based and legal hold immutability, Azure empowers organizations to: Protect critical data from tampering or deletion. Meet global compliance standards. Recover quickly and confidently from cyberattacks. Immutability is not just a feature—it’s a foundational pillar of modern data protection. Documentation is available at - Backup Immutability for Long-Term Retention Backups - Azure SQL Database | Microsoft Learn967Views4likes2Comments