azure sql
774 TopicsAzure 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.933Views0likes0CommentsMultiple 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.2KViews0likes1CommentCan 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!6Views0likes0CommentsAI-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 Learn452Views1like0CommentsWhat'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.361Views0likes1CommentStrengthening 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 Learn363Views0likes3CommentsGive 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.224Views0likes0Comments🔐 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 Learn943Views4likes2CommentsAzure SQL Managed Instance Next-gen: Severe Slowdowns During Backups
We recently upgraded our Azure SQL Managed Instance from legacy General Purpose to Next-gen General Purpose. Afterward, automatic full backups caused severe application slowdowns. I’m sharing our experience so others can evaluate this before upgrading. We had used legacy General Purpose for more than three years without SQL performance problems. We never paid attention to when the automatic backups ran because they had no noticeable impact. After upgrading, we experienced three consecutive Thursday afternoon slowdowns during full backups, severe enough that multiple customers asked whether we were having an outage. The important difference is how storage performance is allocated. On legacy General Purpose, each database file receives IOPS and throughput based on its allocated size. On Next-gen, IOPS are configured at the instance level, and the allocated IOPS also determine throughput. Our configuration is 4 vCores with 832 GB of reserved storage, primarily supporting one large production database. Its data file is approximately 703 GiB. Under legacy General Purpose, that file falls in the published tier providing 5,000 IOPS and 210 MB/s. After upgrading, the default Next-gen allocation was 2,496 IOPS, calculated as three IOPS per GB of reserved storage. Using Microsoft’s throughput formula of IOPS divided by 30, that provides approximately 83.2 MB/s shared across the instance. In other words, we went from an allowance of approximately 210 MB/s for our main data file alone to approximately 83 MB/s for the instance. Our backups typically run near 100 MB/s, so the reduced allowance left no room for application traffic and caused severe slowdowns. Reverting to legacy restored normal application performance. This will not necessarily affect every workload the same way. Instances with smaller databases may benefit from the different allocation model. Next-gen also allows additional IOPS to be purchased. However, Microsoft’s positioning of the upgrade as having no additional cost needs an important qualification: the upgrade itself may leave the bill unchanged, but maintaining comparable storage performance can require additional spending. Moreover, purchasing additional Next-gen IOPS alone would not restore our previous throughput allowance. Our 4-vCore Next-gen configuration has a maximum throughput of 145 MB/s, regardless of how many additional IOPS we purchase, compared with approximately 210 MB/s for our main data file on legacy. Reaching comparable throughput would therefore require increasing the vCore count as well. In our case, reverting restored acceptable performance, so we plan to remain on legacy for now. Before upgrading, compare your existing per-file IOPS and throughput allowances with the proposed Next-gen instance-wide allocation. Include automatic full backups in that assessment, even if ordinary application traffic is light and CPU utilization is low. The IOPS allocation rules are documented, but we did not find a clear warning that upgrading with the default settings could substantially reduce available throughput for an existing workload and turn previously unobtrusive backups into a major performance event. If anyone from Microsoft is reading, please make this tradeoff explicit in the upgrade guidance. An upgrade assessment that compares existing file-level allowances with the proposed instance-level limits would help customers avoid discovering this in production.128Views1like1CommentGenerally Available: Azure SQL Managed Instance Next-gen General Purpose
Overview Next-gen General Purpose is the evolution of General Purpose service tier that brings significantly improved performance and scalability to power up your existing Azure SQL Managed Instance fleet and helps you bring more mission-critical SQL workloads to Azure. We are happy to announce that Next-gen General Purpose is now Generally Available (GA) delivering even more scalability, flexibility, and value for organizations looking to modernize their data platform in a cost-effective way. The new #SQLMINextGen General Purpose tier delivers a built-in performance upgrade available to all customers at no extra cost. If you are an existing SQL MI General Purpose user, you get faster I/O, higher database density, and expanded storage - automatically. Summary Table: Key Improvements Capability Current GP Next-gen GP Improvement Average I/O Latency 5-10 ms 3-4 ms 2x lower Max Data IOPS 30-50k 80k 60% better Max Storage 16 TB 32 TB 2x better Max Databases/Instance 100 500 5x better Max vCores 80 128 40% better But that’s just the beginning. The new configuration sliders for additional IOPS and memory provide enhanced flexibility to tailor performance according to your requirements. Whether you require more resources for your application or seek to optimize resource utilization, you can adjust your instance settings to maximize efficiency and output. This release isn’t just about speed - It’s about giving you improved performance where it matters, and mechanisms to go further when you need them. Customer story - A recent customer case highlights how Hexure reduced processing time by up to 97.2% using Azure SQL Managed Instance on Next-gen General Purpose. What’s new in Next-gen General Purpose (Nov 2025)? 1. Improved baseline performance with the latest storage tech Azure SQL Managed Instance is built on Intel® Xeon® processors, ensuring a strong foundation for enterprise workloads. With the next-generation General Purpose tier, we’ve paired Intel’s proven compute power with advanced storage technology to deliver faster performance, greater scalability, and enhanced flexibility - helping you run more efficiently and adapt to growing business needs. The SQL Managed Instance General Purpose tier is designed with full separation of compute and storage layers. The Classic GP version uses premium page blobs for the storage layer, while the Next-generation GP tier has transitioned to Azure’s latest storage solution, Elastic SAN. Azure Elastic SAN is a cloud-native storage service that offers high performance and excellent scalability, making it a perfect fit for the storage layer of a data-intensive PaaS service like Azure SQL Managed Instance. Simplified Performance Management With ESAN as the storage layer, the performance quotas for the Next-gen General Purpose tier are no longer enforced for each database file. The entire performance quota for the instance is shared across all the database files, making performance management much easier (one fewer thing to worry about). This adjustment brings the General Purpose tier into alignment with the Business Critical service tier experience. 2. Resource flexibility and cost optimization The GA of Next-gen General Purpose comes together with the GA of a transformative memory slider, enabling up to 49 memory configurations per instance. This lets you right-size workloads for both performance and cost. Memory is billed only for the additional amount beyond the default allocation. Users can independently configure vCores, memory, and IOPS for optimal efficiency. To learn more about the new option for configuring additional memory, check the article: Unlocking More Power with Flexible Memory in Azure SQL Managed Instance. 3. Enhanced resource elasticity through decoupled compute and storage scaling operations With Next-gen GP, both storage and IOPS can be resized independently of the compute infrastructure, and these changes now typically finish within five minutes - a process known as an in-place upgrade. There are three distinct types of storage upgrade experiences depending on the kind of storage upgrade performed and whether failover occurs. In-place update: same storage (no data copy), same compute (no failover) Storage re-attach: Same storage (no data copy), changed compute (with failover) Data copy: Changed storage (data copy), changed compute (with failover) The following matrix describes user experience with management operations: Operation Data copying Failover Storage upgrade type IOPS scaling No No In-place Storage scaling* No* No In-place vCores scaling No Yes** Re-attach Memory scaling No Yes** Re-attach Maintenance Window change No Yes** Re-attach Hardware change No Yes** Re-attach Update policy change Yes Yes Data copy * If scale down is >5.5TB, seeding ** In case of update operations that do not require seeding and are not completed in place (examples are scaling vCores, scaling memory, changing hardware or maintenance window), failover duration of databases on the Next-gen General Purpose service tier scales with the number of databases, up to 10 minutes. While the instance becomes available after 2 minutes, some databases might be available after a delay. Failover duration is measured from the moment when the first database goes offline, until the moment when the last database comes online. Furthermore, resizing vCores and memory is now 50% faster following the introduction of the Faster scaling operations release. No matter if you have end-of-month peak periods, or there are ups and downs of usage during the weekdays and the weekend, with fast and reliable management operations, you can run multiple configurations over your instance and respond to peak usage periods in a cost-effective way. 4. Reserved instance (RI) pricing With Azure Reservations, you can commit to using Azure SQL resources for either one or three years, which lets you benefit from substantial discounts on compute costs. When purchasing a reservation, you'll need to choose the Azure region, deployment type, performance tier, and reservation term. Reservations are only available for products that have reached general availability (GA), and with this update, next-generation GP instances now qualify as well. What's even better is that classic and next-gen GP share the same SKU, just with different remote storage types. This means any reservations you've purchased automatically apply to Next-gen GP, whether you're upgrading an existing classic GP instance or creating a new one. What’s Next? The product group has received considerable positive feedback and welcomes continued input. The initial release will not include zonal redundancy; however, efforts are underway to address this limitation. Next-generation General Purpose (GP) represents the future of the service tier, and all existing classic GP instances will be upgraded accordingly. Once upgrade plans are finalized, we will provide timely communication regarding the announcement. Service update Nov 2026: Zone-redundancy for Next-gen General Purpose is generally available!. Conclusion Now in GA, Next-gen General Purpose sets a new standard for cloud database performance and flexibility. Whether you’re modernizing legacy applications, consolidating workloads, or building for the future, these enhancements put more power, scalability, and control in your hands - without breaking the bank. If you haven’t already, try out the Next-gen General Purpose capabilities for free with Azure SQL Managed Instance free offer. For users operating SQL Managed Instance on the General Purpose tier, it is recommended to consider upgrading existing instances to leverage the advantages of next-gen upgrade – for free. Welcome to #SQLMINextGen. Boosted by default. Tuned by you. Learn more What is Azure SQL Managed Instance Try Azure SQL Managed Instance for free Next-gen General Purpose – official documentation Analyzing the Economic Benefits of Microsoft Azure SQL Managed Instance How 3 customers are driving change with migration to Azure SQL Accelerate SQL Server Migration to Azure with Azure Arc7KViews5likes4Comments